# ProbeAnnotation

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ProbeAnnotation.cs)
- Implements: [IResourceAnnotation](/reference/api/csharp/aspire.hosting/iresourceannotation.md)

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

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public abstract class ProbeAnnotation
    : Aspire.Hosting.ApplicationModel.IResourceAnnotation
{
    // ...
}
```

## Properties

- [FailureThreshold](/reference/api/csharp/aspire.hosting/probeannotation/properties.md#failurethreshold) : `int` `get; init` -- Number of failures in a row before considers that the overall check has failed.
- [InitialDelaySeconds](/reference/api/csharp/aspire.hosting/probeannotation/properties.md#initialdelayseconds) : `int` `get; init` -- The initial delay before the probe should be called.
- [PeriodSeconds](/reference/api/csharp/aspire.hosting/probeannotation/properties.md#periodseconds) : `int` `get; init` -- The period between each probe call.
- [SuccessThreshold](/reference/api/csharp/aspire.hosting/probeannotation/properties.md#successthreshold) : `int` `get; init` -- Minimum consecutive successes for the probe to be considered successful after having failed.
- [TimeoutSeconds](/reference/api/csharp/aspire.hosting/probeannotation/properties.md#timeoutseconds) : `int` `get; set` -- Number of seconds after which the probe times out.
- [Type](/reference/api/csharp/aspire.hosting/probeannotation/properties.md#type) : [ProbeType](/reference/api/csharp/aspire.hosting/probetype.md) `get; init` -- The type of this health probe (startup, readiness or liveness).
