| File: Health\HealthCheckConstants.cs | Web Access |
| Project: src\src\Aspire.Hosting\Aspire.Hosting.csproj (Aspire.Hosting) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Aspire.Hosting.Health; /// <summary> /// Constants used for health check data exchange between <see cref="AspireHttpHealthCheck"/> /// and <see cref="ResourceHealthCheckService"/>. /// </summary> internal static class HealthCheckConstants { /// <summary> /// Data dictionary keys used to pass expanded health check entries between components. /// </summary> internal static class DataKeys { /// <summary> /// Key for the dictionary of individual <see cref="AspireHealthCheckEntry"/> values parsed from an Aspire format response. /// </summary> public const string Entries = "__AspireHealthCheckEntries"; } /// <summary> /// JSON property names used when parsing Aspire health check responses. /// </summary> internal static class JsonProperties { public const string Status = "status"; public const string Entries = "entries"; public const string Description = "description"; public const string Exception = "exception"; } }