18 references to Degraded
Aspire.Dashboard (4)
Components\Pages\Resources.razor.cs (1)
220.Any(r => r.KnownState != KnownResourceState.Running || r.HealthStatus is HealthStatus.Unhealthy or HealthStatus.Degraded);
Model\ResourceIconHelpers.cs (1)
70HealthStatus.Degraded => (new Icons.Filled.Size16.HeartBroken(), Color.Warning),
Model\ResourceStateViewModel.cs (1)
84else if (resource.HealthStatus is HealthStatus.Unhealthy or HealthStatus.Degraded)
ServiceClient\Partials.cs (1)
71HealthStatus.Degraded => Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus.Degraded,
Aspire.Dashboard.Components.Tests (2)
Controls\ResourceDetailsTests.cs (1)
453new HealthReportViewModel("beta-check", HealthStatus.Degraded, "Warning", null),
Pages\ResourcesTests.cs (1)
135ImmutableArray.Create(new HealthReportViewModel("Degraded", HealthStatus.Degraded, "Description3", null))),
Aspire.Dashboard.Tests (1)
Model\ResourceViewModelTests.cs (1)
26[InlineData(KnownResourceState.Running, DiagnosticsHealthStatus.Degraded, new string?[] {"Healthy", "Degraded"})]
Aspire.Hosting (1)
Dashboard\proto\Partials.cs (1)
127Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus.Degraded => HealthStatus.Degraded,
Aspire.Hosting.Tests (1)
Health\HealthStatusTests.cs (1)
23[InlineData(RunningState, HealthStatus.Degraded, new string?[] {"Healthy", "Degraded"})]
HealthChecksSandbox.AppHost (1)
Program.cs (1)
15AddTestResource("degraded", HealthStatus.Degraded, "Had better days.", exceptionMessage: "Feeling degraded.");
Microsoft.AspNetCore.Diagnostics.HealthChecks (4)
HealthCheckOptions.cs (2)
30{HealthStatus.Degraded, StatusCodes.Status200OK}, 40/// <see cref="HealthStatus.Healthy"/> to 200 (OK), <see cref="HealthStatus.Degraded"/> to 200 (OK) and
HealthCheckResponseWriters.cs (2)
12private static readonly byte[] DegradedBytes = Encoding.UTF8.GetBytes(HealthStatus.Degraded.ToString()); 21HealthStatus.Degraded => httpContext.Response.Body.WriteAsync(DegradedBytes.AsMemory()).AsTask(),
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
237case HealthStatus.Degraded:
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (3)
TelemetryHealthChecksPublisherTests.cs (3)
34new List<HealthStatus> { HealthStatus.Degraded }, 39HealthStatus.Degraded.ToString() 66new List<HealthStatus> { HealthStatus.Healthy, HealthStatus.Degraded, HealthStatus.Unhealthy },