| | | 1 | | using ArturRios.Mediator.Query; |
| | | 2 | | |
| | | 3 | | namespace 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> |
| | | 12 | | public class HealthCheckOutput : QueryOutput |
| | | 13 | | { |
| | | 14 | | /// <summary>Aggregate general status — <c>Healthy</c> or <c>Unhealthy</c>.</summary> |
| | 23 | 15 | | public string Status { get; set; } = string.Empty; |
| | | 16 | | |
| | | 17 | | /// <summary>Status of each verified service.</summary> |
| | 21 | 18 | | public IEnumerable<ServiceHealthOutput> Services { get; set; } = new List<ServiceHealthOutput>(); |
| | | 19 | | } |