# HealthCheckAnnotation Constructors

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [HealthCheckAnnotation](/reference/api/csharp/aspire.hosting/healthcheckannotation.md)
- Kind: `Constructors`
- Members: `1`

An annotation which tracks the name of the health check used to detect to health of a resource.

## HealthCheckAnnotation(string)

- Name: `Constructor(string)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/HealthCheckAnnotation.cs#L13)

An annotation which tracks the name of the health check used to detect to health of a resource.

```csharp
public class HealthCheckAnnotation
{
    public HealthCheckAnnotation(
        string key)
    {
        // ...
    }
}
```

## Parameters

- `key` (`string`)
  The key for the health check in the app host which associated with this resource.
