< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Query.Output.HealthCheckOutput
Assembly: ArturRios.Heimdall.Query
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Query/Output/HealthCheckOutput.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 19
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 2
Fully covered methods: 2
Total methods: 2
Method coverage: 100%
Full method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Status()100%11100%
get_Services()100%11100%

File(s)

/home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Query/Output/HealthCheckOutput.cs

#LineLine coverage
 1using ArturRios.Mediator.Query;
 2
 3namespace ArturRios.Heimdall.Query.Output;
 4
 5/// <summary>
 6///     Detailed health check response (UC-30). Reports the aggregate general <see cref="Status" />
 7///     (<c>Healthy</c> when every verified service is up, <c>Unhealthy</c> otherwise — FR-HC-05) and
 8///     the per-service breakdown in <see cref="Services" /> (FR-HC-04). Adding a new verification
 9///     simply appends another entry to <see cref="Services" /> without changing this contract
 10///     (FR-HC-06).
 11/// </summary>
 12public class HealthCheckOutput : QueryOutput
 13{
 14    /// <summary>Aggregate general status — <c>Healthy</c> or <c>Unhealthy</c>.</summary>
 2315    public string Status { get; set; } = string.Empty;
 16
 17    /// <summary>Status of each verified service.</summary>
 2118    public IEnumerable<ServiceHealthOutput> Services { get; set; } = new List<ServiceHealthOutput>();
 19}

Methods/Properties

get_Status()
get_Services()