# HealthReportSnapshot

- Kind: `record`
- 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/CustomResourceSnapshot.cs)
- Implements: `IEquatable<HealthReportSnapshot>`

A report produced by a health check about a resource.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed record HealthReportSnapshot
    : System.IEquatable<Aspire.Hosting.ApplicationModel.HealthReportSnapshot>
{
    // ...
}
```

## Constructors

- [HealthReportSnapshot(string, HealthStatus??, string?, string?)](/reference/api/csharp/aspire.hosting/healthreportsnapshot/constructors.md#constructor-string-healthstatus-string-string) -- A report produced by a health check about a resource.

## Properties

- [Description](/reference/api/csharp/aspire.hosting/healthreportsnapshot/properties.md#description) : `string?` `get; init` -- An optional description of the report, for display.
- [ExceptionText](/reference/api/csharp/aspire.hosting/healthreportsnapshot/properties.md#exceptiontext) : `string?` `get; init` -- An optional string containing exception details.
- [LastRunAt](/reference/api/csharp/aspire.hosting/healthreportsnapshot/properties.md#lastrunat) : `DateTime?` `get; init` -- The timestamp when this health check was last executed, or `null` if not available.
- [Name](/reference/api/csharp/aspire.hosting/healthreportsnapshot/properties.md#name) : `string` `get; init` -- The name of the health check that produced this report.
- [Status](/reference/api/csharp/aspire.hosting/healthreportsnapshot/properties.md#status) : `HealthStatus??` `get; init` -- The state of the resource, according to the report, or `null` if a health report has not yet been received for this health check.

## Methods

- [<Clone>$](/reference/api/csharp/aspire.hosting/healthreportsnapshot/methods.md#clone) : [HealthReportSnapshot](/reference/api/csharp/aspire.hosting/healthreportsnapshot.md)
- [Deconstruct(string, HealthStatus??, string?, string?)](/reference/api/csharp/aspire.hosting/healthreportsnapshot/methods.md#deconstruct-string-healthstatus-string-string)
- [Equals(object?)](/reference/api/csharp/aspire.hosting/healthreportsnapshot/methods.md#equals-object) : `bool` -- Determines whether the specified object is equal to the current object.
- [Equals(HealthReportSnapshot?)](/reference/api/csharp/aspire.hosting/healthreportsnapshot/methods.md#equals-healthreportsnapshot) : `bool` -- Indicates whether the current object is equal to another object of the same type.
- [GetHashCode](/reference/api/csharp/aspire.hosting/healthreportsnapshot/methods.md#gethashcode) : `int` -- Serves as the default hash function.
- [op_Equality(HealthReportSnapshot?, HealthReportSnapshot?)](/reference/api/csharp/aspire.hosting/healthreportsnapshot/methods.md#op-equality-healthreportsnapshot-healthreportsnapshot) : `bool` `static`
- [op_Inequality(HealthReportSnapshot?, HealthReportSnapshot?)](/reference/api/csharp/aspire.hosting/healthreportsnapshot/methods.md#op-inequality-healthreportsnapshot-healthreportsnapshot) : `bool` `static`
- [ToString](/reference/api/csharp/aspire.hosting/healthreportsnapshot/methods.md#tostring) : `string` -- Returns a string that represents the current object.
