31 references to Degraded
Aspire.Dashboard (1)
ResourceService\Partials.cs (1)
70HealthStatus.Degraded => Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus.Degraded,
Aspire.Dashboard.Tests (1)
Model\ResourceViewModelTests.cs (1)
27[InlineData(KnownResourceState.Running, DiagnosticsHealthStatus.Degraded, new string?[] {"Healthy", "Degraded"})]
Aspire.Hosting (1)
Dashboard\proto\Partials.cs (1)
97Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus.Degraded => HealthStatus.Degraded,
Aspire.Hosting.Tests (1)
Health\HealthStatusTests.cs (1)
23[InlineData(RunningState, HealthStatus.Degraded, new string?[] {"Healthy", "Degraded"})]
HealthChecksSample (1)
GCInfoHealthCheck.cs (1)
25builder.AddCheck<GCInfoHealthCheck>(name, failureStatus ?? HealthStatus.Degraded, tags);
HealthChecksSandbox.AppHost (1)
Program.cs (1)
14AddTestResource("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.AspNetCore.Diagnostics.HealthChecks.Tests (5)
HealthCheckMiddlewareTests.cs (5)
905Assert.Equal(StatusCodes.Status200OK, options.ResultStatusCodes[HealthStatus.Degraded]); 915Assert.Equal(StatusCodes.Status200OK, options.ResultStatusCodes[HealthStatus.Degraded]); 927[HealthStatus.Degraded] = 200, 940Assert.Contains($"{nameof(HealthStatus)}.{nameof(HealthStatus.Degraded)}", exception.Message); 957Assert.Contains($"{nameof(HealthStatus)}.{nameof(HealthStatus.Degraded)}", exception.Message);
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
241case 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 },
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (12)
DefaultHealthCheckServiceTest.cs (3)
89Assert.Equal(HealthStatus.Degraded, actual.Value.Status); 598b.AddCheck<FailCapturingCheck>("degraded", HealthStatus.Degraded); 612Assert.Equal(HealthStatus.Degraded, actual.Value.Status);
DependencyInjection\HealthChecksBuilderTest.cs (8)
27services.AddHealthChecks().AddCheck("test", failureStatus: HealthStatus.Degraded, tags: new[] { "tag", }, instance: instance); 37Assert.Equal(HealthStatus.Degraded, registration.FailureStatus); 47services.AddHealthChecks().AddCheck<TestHealthCheck>("test", failureStatus: HealthStatus.Degraded, tags: new[] { "tag", }); 57Assert.Equal(HealthStatus.Degraded, registration.FailureStatus); 70services.AddHealthChecks().AddCheck<TestHealthCheck>("test", failureStatus: HealthStatus.Degraded, tags: new[] { "tag", }); 80Assert.Equal(HealthStatus.Degraded, registration.FailureStatus); 92.AddTypeActivatedCheck<TestHealthCheckWithArgs>("test", failureStatus: HealthStatus.Degraded, tags: new[] { "tag", }, args: new object[] { 5, "hi", }); 102Assert.Equal(HealthStatus.Degraded, registration.FailureStatus);
HealthReportTest.cs (1)
16[InlineData(HealthStatus.Degraded)]