1 write to Status
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (1)
HealthReport.cs (1)
36Status = status;
17 references to Status
Aspire.Components.Common.Tests (1)
ConformanceTests.cs (1)
317Assert.Equal(expected, healthReport.Status);
HealthChecksSample (1)
CustomWriterStartup.cs (1)
46new JProperty("status", result.Status.ToString()),
Microsoft.AspNetCore.Diagnostics.HealthChecks (6)
HealthCheckMiddleware.cs (3)
49if (!_healthCheckOptions.ResultStatusCodes.TryGetValue(result.Status, out var statusCode)) 52$"No status code mapping found for {nameof(HealthStatus)} value: {result.Status}." + 54$"an entry for {result.Status}.";
HealthCheckOptions.cs (1)
69/// of <see cref="HealthReport.Status"/> as a string.
HealthCheckResponseWriters.cs (2)
19return result.Status switch 24_ => httpContext.Response.WriteAsync(result.Status.ToString())
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (1)
HealthCheckMiddlewareTests.cs (1)
307var json = JsonConvert.SerializeObject(new { status = r.Status.ToString(), });
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
70Log.HealthCheckProcessingEnd(_logger, report.Status, totalElapsedTime);
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (1)
HealthReport.cs (1)
50/// Gets a <see cref="HealthStatus"/> representing the aggregate status of all the health checks. The value of <see cref="Status"/>
Microsoft.Extensions.Diagnostics.HealthChecks.Common (4)
TelemetryHealthCheckPublisher.cs (4)
46if (report.Status == HealthStatus.Healthy) 50Log.Healthy(_logger, report.Status); 78Log.Unhealthy(_logger, report.Status, stringBuilder); 82_metrics.HealthCheckReportCounter.RecordMetric(report.Status);
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (1)
HealthReportTest.cs (1)
30Assert.Equal(status, result.Status);
Microsoft.Extensions.Diagnostics.Probes (1)
TcpEndpointProbesService.cs (1)
44if (report.Status == HealthStatus.Healthy)