-
Notifications
You must be signed in to change notification settings - Fork 332
Expand file tree
/
Copy pathComprehensiveHealthCheckReport.cs
More file actions
64 lines (55 loc) · 1.84 KB
/
ComprehensiveHealthCheckReport.cs
File metadata and controls
64 lines (55 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace Azure.DataApiBuilder.Service.HealthCheck
{
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum HealthStatus
{
Healthy,
Unhealthy
}
/// <summary>
/// The health report of the DAB Engine.
/// </summary>
public record ComprehensiveHealthCheckReport
{
/// <summary>
/// The health status of the service.
/// </summary>
[JsonPropertyName("status")]
public HealthStatus Status { get; set; }
/// <summary>
/// The version of the service.
/// </summary>
[JsonPropertyName("version")]
public string? Version { get; set; }
/// <summary>
/// The application name of the dab service.
/// </summary>
[JsonPropertyName("app-name")]
public string? AppName { get; set; }
/// <summary>
/// The timestamp of the response.
/// </summary>
[JsonPropertyName("timestamp")]
public DateTime TimeStamp { get; set; }
/// <summary>
/// The current role of the user making the request (e.g., "anonymous", "authenticated").
/// </summary>
[JsonPropertyName("current-role")]
public string? CurrentRole { get; set; }
/// <summary>
/// The configuration details of the dab service.
/// </summary>
[JsonPropertyName("configuration")]
public ConfigurationDetails? ConfigurationDetails { get; set; }
/// <summary>
/// The health check results of the dab service for data source and entities.
/// </summary>
[JsonPropertyName("checks")]
public List<HealthCheckResultEntry>? Checks { get; set; }
}
}