77 references to Healthy
Aspire.Components.Common.Tests (1)
ConformanceTests.cs (1)
315HealthStatus expected = CanConnectToServer ? HealthStatus.Healthy : HealthStatus.Unhealthy;
Aspire.Dashboard (5)
Model\ResourceStateViewModel.cs (3)
65else if (resource.HealthStatus is not HealthStatus.Healthy) 113else if (resource is { KnownState: KnownResourceState.Running, HealthStatus: not HealthStatus.Healthy }) 133{ KnownState: KnownResourceState.Running, HealthStatus: not HealthStatus.Healthy } => $"{resource.State.Humanize()} ({(resource.HealthStatus ?? HealthStatus.Unhealthy).Humanize()})",
Model\ResourceViewModel.cs (1)
91? Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus.Healthy
ResourceService\Partials.cs (1)
69HealthStatus.Healthy => Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus.Healthy,
Aspire.Dashboard.Tests (2)
Model\ResourceViewModelTests.cs (2)
24[InlineData(KnownResourceState.Running, DiagnosticsHealthStatus.Healthy, new string[]{})] 25[InlineData(KnownResourceState.Running, DiagnosticsHealthStatus.Healthy, new string?[] {"Healthy"})]
Aspire.Hosting (6)
ApplicationModel\CustomResourceSnapshot.cs (1)
123? Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus.Healthy
ApplicationModel\ResourceNotificationService.cs (1)
183return WaitForResourceAsync(resourceName, re => re.Snapshot.HealthStatus == HealthStatus.Healthy, cancellationToken: cancellationToken);
Dashboard\proto\Partials.cs (1)
96Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus.Healthy => HealthStatus.Healthy,
Health\ResourceHealthCheckService.cs (2)
76if (!resourceReadyEventFired && report.Status == HealthStatus.Healthy) 151while (timeProvider.GetUtcNow() < releaseAfter && _latestEvents[lastEvent.Resource.Name] == lastEvent && lastEvent.Snapshot.HealthStatus == HealthStatus.Healthy)
ResourceBuilderExtensions.cs (1)
671/// return <see cref="HealthStatus.Healthy"/>.</para>
Aspire.Hosting.Elasticsearch.Tests (1)
ElasticsearchFunctionalTests.cs (1)
237await rns.WaitForResourceAsync(resource.Resource.Name, (re => re.Snapshot.HealthStatus == Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus.Healthy), cts.Token);
Aspire.Hosting.Qdrant.Tests (1)
QdrantFunctionalTests.cs (1)
253await rns.WaitForResourceAsync(resource.Resource.Name, (re => re.Snapshot.HealthStatus == HealthStatus.Healthy), cts.Token);
Aspire.Hosting.Tests (3)
Health\HealthStatusTests.cs (2)
20[InlineData(RunningState, HealthStatus.Healthy, new string[]{})] 21[InlineData(RunningState, HealthStatus.Healthy, new string?[] {"Healthy"})]
Health\ResourceHealthCheckServiceTests.cs (1)
43Assert.Equal(HealthStatus.Healthy, healthyEvent.Snapshot.HealthStatus);
HealthChecksSample (1)
GCInfoHealthCheck.cs (1)
70var result = allocated >= options.Threshold ? context.Registration.FailureStatus : HealthStatus.Healthy;
HealthChecksSandbox.AppHost (2)
Program.cs (2)
12AddTestResource("healthy", HealthStatus.Healthy, "I'm fine, thanks for asking."); 44return new HealthCheckResult(HealthStatus.Healthy, "Healthy beginning second health check run.");
Microsoft.AspNetCore.Diagnostics.HealthChecks (4)
HealthCheckOptions.cs (2)
29{HealthStatus.Healthy, StatusCodes.Status200OK}, 40/// <see cref="HealthStatus.Healthy"/> to 200 (OK), <see cref="HealthStatus.Degraded"/> to 200 (OK) and
HealthCheckResponseWriters.cs (2)
13private static readonly byte[] HealthyBytes = Encoding.UTF8.GetBytes(HealthStatus.Healthy.ToString()); 22HealthStatus.Healthy => httpContext.Response.Body.WriteAsync(HealthyBytes.AsMemory()).AsTask(),
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (7)
HealthCheckMiddlewareTests.cs (7)
384[HealthStatus.Healthy] = 201, 904Assert.Equal(StatusCodes.Status200OK, options.ResultStatusCodes[HealthStatus.Healthy]); 914Assert.Equal(StatusCodes.Status200OK, options.ResultStatusCodes[HealthStatus.Healthy]); 926[HealthStatus.Healthy] = 200, 939Assert.Contains($"{nameof(HealthStatus)}.{nameof(HealthStatus.Healthy)}", exception.Message); 952[HealthStatus.Healthy] = 200 956Assert.DoesNotContain($"{nameof(HealthStatus)}.{nameof(HealthStatus.Healthy)}", exception.Message);
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
237case HealthStatus.Healthy:
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (4)
HealthCheckResult.cs (1)
60return new HealthCheckResult(status: HealthStatus.Healthy, description, exception: null, data);
HealthReport.cs (2)
51/// will be the most severe status reported by a health check. If no checks were executed, the value is always <see cref="HealthStatus.Healthy"/>. 63var currentValue = HealthStatus.Healthy;
HealthStatus.cs (1)
16/// greater than <see cref="HealthStatus.Unhealthy"/> but less than <see cref="HealthStatus.Healthy"/>.
Microsoft.Extensions.Diagnostics.HealthChecks.Common (4)
ManualHealthCheckTracker.cs (2)
34var worstStatus = HealthStatus.Healthy; 38if (check.Status != HealthStatus.Healthy)
TelemetryHealthCheckPublisher.cs (2)
46if (report.Status == HealthStatus.Healthy) 61if (entry.Value.Status != HealthStatus.Healthy)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (13)
ApplicationLifecycleHealthCheckTests.cs (1)
22Assert.Equal(HealthStatus.Healthy, (await healthCheck.CheckHealthAsync(context, CancellationToken.None)).Status);
ManualHealthCheckTests.cs (4)
21Assert.Equal(HealthStatus.Healthy, healthCheckResult.Status); 48Assert.Equal(HealthStatus.Healthy, healthCheckResultHealthy.Status); 74Assert.Equal(HealthStatus.Healthy, healthCheckResultHealthy.Status); 111Assert.Equal(HealthStatus.Healthy, healthCheckResultHealthy.Status);
TelemetryHealthChecksPublisherTests.cs (8)
26new List<HealthStatus> { HealthStatus.Healthy }, 31HealthStatus.Healthy.ToString() 50new List<HealthStatus> { HealthStatus.Healthy, HealthStatus.Healthy }, 55HealthStatus.Healthy.ToString() 58new List<HealthStatus> { HealthStatus.Healthy, HealthStatus.Unhealthy }, 66new List<HealthStatus> { HealthStatus.Healthy, HealthStatus.Degraded, HealthStatus.Unhealthy }, 121if (healthStatus != HealthStatus.Healthy)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (20)
DefaultHealthCheckServiceTest.cs (13)
98Assert.Equal(HealthStatus.Healthy, actual.Value.Status); 191Assert.Equal(HealthStatus.Healthy, 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); 599b.AddCheck<FailCapturingCheck>("healthy", HealthStatus.Healthy); 617Assert.Equal(HealthStatus.Healthy, actual.Value.Status);
HealthReportTest.cs (7)
15[InlineData(HealthStatus.Healthy)] 22{"Foo", new HealthReportEntry(HealthStatus.Healthy, null,TimeSpan.MinValue, null, null) }, 23{"Bar", new HealthReportEntry(HealthStatus.Healthy, null, TimeSpan.MinValue,null, null) }, 25{"Quick", new HealthReportEntry(HealthStatus.Healthy, null, TimeSpan.MinValue, null, null) }, 26{"Quack", new HealthReportEntry(HealthStatus.Healthy, null, TimeSpan.MinValue, null, null) }, 27{"Quock", new HealthReportEntry(HealthStatus.Healthy, null, TimeSpan.MinValue, null, null) }, 41{"Foo", new HealthReportEntry(HealthStatus.Healthy, null,TimeSpan.MinValue, null, null) }
Microsoft.Extensions.Diagnostics.Probes (1)
TcpEndpointProbesService.cs (1)
44if (report.Status == HealthStatus.Healthy)
Microsoft.Extensions.Diagnostics.Probes.Tests (1)
MockHealthCheckService.cs (1)
14private readonly Task<HealthReport> _healthyReport = CreateHealthReport(HealthStatus.Healthy);