1 write to Status
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (1)
HealthReportEntry.cs (1)
43Status = status;
34 references to Status
Aspire.Components.Common.Tests (1)
ConformanceTests.cs (1)
319Assert.Contains(healthReport.Entries, entry => entry.Value.Status == expected);
Aspire.Hosting (2)
Health\ResourceHealthCheckService.cs (2)
109if (checkReportSnapshot.Status != value.Status 163var snapshot = new HealthReportSnapshot(key, entry.Status, entry.Description, entry.Exception?.ToString());
HealthChecksSample (1)
CustomWriterStartup.cs (1)
49new JProperty("status", pair.Value.Status.ToString()),
Microsoft.Extensions.Diagnostics.HealthChecks (4)
DefaultHealthCheckService.cs (4)
235switch (entry.Status) 238HealthCheckEndHealthy(logger, registration.Name, entry.Status, duration.TotalMilliseconds, entry.Description); 242HealthCheckEndDegraded(logger, registration.Name, entry.Status, duration.TotalMilliseconds, entry.Description, entry.Exception); 246HealthCheckEndUnhealthy(logger, registration.Name, entry.Status, duration.TotalMilliseconds, entry.Description, entry.Exception);
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (2)
HealthReport.cs (2)
66if (currentValue > entry.Status) 68currentValue = entry.Status;
Microsoft.Extensions.Diagnostics.HealthChecks.Common (3)
TelemetryHealthCheckPublisher.cs (3)
61if (entry.Value.Status != HealthStatus.Healthy) 63_metrics.UnhealthyHealthCheckCounter.RecordMetric(entry.Key, entry.Value.Status); 70.Append(entry.Value.Status.ToString())
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (21)
DefaultHealthCheckServiceTest.cs (21)
89Assert.Equal(HealthStatus.Degraded, actual.Value.Status); 98Assert.Equal(HealthStatus.Healthy, actual.Value.Status); 111Assert.Equal(HealthStatus.Unhealthy, actual.Value.Status); 143Assert.Equal(HealthStatus.Unhealthy, actual.Value.Status); 152Assert.Equal(HealthStatus.Unhealthy, actual.Value.Status); 191Assert.Equal(HealthStatus.Healthy, actual.Value.Status); 297Assert.Equal(HealthStatus.Unhealthy, actual.Value.Status); 304Assert.Equal(HealthStatus.Unhealthy, actual.Value.Status); 311Assert.Equal(HealthStatus.Healthy, actual.Value.Status); 353Assert.Equal(HealthStatus.Healthy, actual.Value.Status); 377Assert.Equal(HealthStatus.Healthy, actual.Value.Status); 401Assert.Equal(HealthStatus.Healthy, actual.Value.Status); 427Assert.Equal(HealthStatus.Healthy, actual.Value.Status); 432Assert.Equal(HealthStatus.Healthy, actual.Value.Status); 481Assert.Equal(HealthStatus.Healthy, actual.Value.Status); 524Assert.Equal(HealthStatus.Healthy, entry.Value.Status); 529Assert.Equal(HealthStatus.Healthy, entry.Value.Status); 555Assert.Equal(HealthStatus.Unhealthy, actual.Value.Status); 612Assert.Equal(HealthStatus.Degraded, actual.Value.Status); 617Assert.Equal(HealthStatus.Healthy, actual.Value.Status); 622Assert.Equal(HealthStatus.Unhealthy, actual.Value.Status);