-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
02e0ce1
commit 4ab3617
Showing
6 changed files
with
64 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Text.Json.Serialization; | ||
using System.Threading.Tasks; | ||
|
||
namespace Hathor.Models.Responses | ||
{ | ||
public class HealthResponse | ||
{ | ||
[JsonPropertyName("status")] | ||
public string? Status { get; set; } | ||
|
||
[JsonPropertyName("description")] | ||
public string? Description { get; set; } | ||
|
||
[JsonPropertyName("checks")] | ||
public Checks? Checks { get; set; } | ||
} | ||
|
||
public class Checks | ||
{ | ||
[JsonPropertyName("fullnode")] | ||
public List<FullnodeStatus> Fullnode { get; set; } = new(); | ||
|
||
[JsonPropertyName("txMining")] | ||
public List<FullnodeStatus> TxMining { get; set; } = new(); | ||
} | ||
|
||
public class FullnodeStatus | ||
{ | ||
[JsonPropertyName("status")] | ||
public string? Status { get; set; } | ||
|
||
[JsonPropertyName("componentType")] | ||
public string? ComponentType { get; set; } | ||
|
||
[JsonPropertyName("componentName")] | ||
public string? ComponentName { get; set; } | ||
|
||
[JsonPropertyName("output")] | ||
public string? Output { get; set; } | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters