12 instantiations of HealthReportEntry
Microsoft.Extensions.Diagnostics.HealthChecks (3)
DefaultHealthCheckService.cs (3)
110entry = new HealthReportEntry( 124entry = new HealthReportEntry( 139entry = new HealthReportEntry(
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
TelemetryHealthChecksPublisherTests.cs (1)
159var entry = new HealthReportEntry(status, $"desc{index}", TimeSpan.Zero, null, null);
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (7)
HealthReportTest.cs (7)
22{"Foo", new HealthReportEntry(HealthStatus.Healthy, null,TimeSpan.MinValue, null, null) }, 23{"Bar", new HealthReportEntry(HealthStatus.Healthy, null, TimeSpan.MinValue,null, null) }, 24{"Baz", new HealthReportEntry(status, exception: null, description: null,duration:TimeSpan.MinValue, data: 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.Tests (1)
MockHealthCheckService.cs (1)
25HealthReportEntry entry = new HealthReportEntry(healthStatus, null, TimeSpan.Zero, null, null);
20 references to HealthReportEntry
Microsoft.Extensions.Diagnostics.HealthChecks (6)
DefaultHealthCheckService.cs (6)
51var tasks = new Task<HealthReportEntry>[registrations.Count]; 62var entries = new Dictionary<string, HealthReportEntry>(StringComparer.OrdinalIgnoreCase); 74private async Task<HealthReportEntry> RunCheckAsync(HealthCheckRegistration registration, CancellationToken cancellationToken) 92HealthReportEntry entry; 233public static void HealthCheckEnd(ILogger logger, HealthCheckRegistration registration, HealthReportEntry entry, TimeSpan duration) 257public static void HealthCheckData(ILogger logger, HealthCheckRegistration registration, HealthReportEntry entry)
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (8)
HealthReport.cs (6)
19public HealthReport(IReadOnlyDictionary<string, HealthReportEntry> entries, TimeSpan totalDuration) 33public HealthReport(IReadOnlyDictionary<string, HealthReportEntry> entries, HealthStatus status, TimeSpan totalDuration) 44/// The keys in this dictionary map the name of each executed health check to a <see cref="HealthReportEntry"/> for the 47public IReadOnlyDictionary<string, HealthReportEntry> Entries { get; } 60private static HealthStatus CalculateAggregateStatus(IEnumerable<HealthReportEntry> entries) 64foreach (var entry in entries)
HealthReportEntry.cs (2)
18/// Creates a new <see cref="HealthReportEntry"/> with the specified values for <paramref name="status"/>, <paramref name="exception"/>, 32/// Creates a new <see cref="HealthReportEntry"/> with the specified values for <paramref name="status"/>, <paramref name="exception"/>,
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (2)
TelemetryHealthChecksPublisherTests.cs (2)
154var healthStatusRecords = new Dictionary<string, HealthReportEntry>(); 159var entry = new HealthReportEntry(status, $"desc{index}", TimeSpan.Zero, null, null);
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (2)
HealthReportTest.cs (2)
20var result = new HealthReport(new Dictionary<string, HealthReportEntry>() 39var result = new HealthReport(new Dictionary<string, HealthReportEntry>()
Microsoft.Extensions.Diagnostics.Probes.Tests (2)
MockHealthCheckService.cs (2)
25HealthReportEntry entry = new HealthReportEntry(healthStatus, null, TimeSpan.Zero, null, null); 26var healthStatusRecords = new Dictionary<string, HealthReportEntry> { { "id", entry } };