Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public enum NodeType
- {
- Microservice,
- DB
- }
- public enum NodeState
- {
- Ok,
- Down,
- DownEdges
- }
- public class TopologyConfig
- {
- public string Name { get; set; }
- public Guid Id { get; set; }
- public Guid[] Edges { get; set; }
- public NodeType Type { get; set; }
- }
- public class HealthCheckConfig
- {
- public Guid NodeId { get; set; }
- public NodeType Type { get; set; }
- public string HealthCheckUrl { get; set; }
- public string ConnectionString { get; set; }
- }
- public class HealthCheckResponse
- {
- public Guid NodeId { get; set; }
- public NodeState State { get; set; }
- public HealthCheckResponse[] EdgeStates { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement