# ProbeAnnotation Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [ProbeAnnotation](/reference/api/csharp/aspire.hosting/probeannotation.md)
- Kind: `Properties`
- Members: `6`

Represents an annotation that specifies the probes (health, readiness, liveness, etc.) of a resource.

## FailureThreshold

- Name: `FailureThreshold`
- Modifiers: `get; init`
- Returns: `int`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ProbeAnnotation.cs)

Number of failures in a row before considers that the overall check has failed.

```csharp
public int FailureThreshold { get; init; }
```

## InitialDelaySeconds

- Name: `InitialDelaySeconds`
- Modifiers: `get; init`
- Returns: `int`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ProbeAnnotation.cs)

The initial delay before the probe should be called.

```csharp
public int InitialDelaySeconds { get; init; }
```

## PeriodSeconds

- Name: `PeriodSeconds`
- Modifiers: `get; init`
- Returns: `int`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ProbeAnnotation.cs)

The period between each probe call.

```csharp
public int PeriodSeconds { get; init; }
```

## SuccessThreshold

- Name: `SuccessThreshold`
- Modifiers: `get; init`
- Returns: `int`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ProbeAnnotation.cs)

Minimum consecutive successes for the probe to be considered successful after having failed.

```csharp
public int SuccessThreshold { get; init; }
```

## TimeoutSeconds

- Name: `TimeoutSeconds`
- Modifiers: `get; set`
- Returns: `int`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ProbeAnnotation.cs)

Number of seconds after which the probe times out.

```csharp
public int TimeoutSeconds { get; set; }
```

## Type

- Name: `Type`
- Modifiers: `get; init`
- Returns: [ProbeType](/reference/api/csharp/aspire.hosting/probetype.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ProbeAnnotation.cs)

The type of this health probe (startup, readiness or liveness).

```csharp
public ProbeType Type { get; init; }
```
