Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.80 KB | None | 0 0
  1. public enum NodeType
  2.     {
  3.         Microservice,
  4.         DB
  5.     }
  6.  
  7. public enum NodeState
  8.     {
  9.         Ok,
  10.         Down,
  11.         DownEdges
  12.     }
  13.  
  14. public class TopologyConfig
  15.     {
  16.         public string Name { get; set; }
  17.         public Guid Id { get; set; }
  18.         public Guid[] Edges { get; set; }
  19.         public NodeType Type { get; set; }
  20.     }
  21.  
  22. public class HealthCheckConfig
  23.     {
  24.         public Guid NodeId { get; set; }
  25.         public NodeType Type { get; set; }
  26.         public string HealthCheckUrl { get; set; }
  27.         public string ConnectionString { get; set; }
  28.     }
  29.  
  30. public class HealthCheckResponse
  31.     {
  32.         public Guid NodeId { get; set; }
  33.         public NodeState State { get; set; }
  34.         public HealthCheckResponse[] EdgeStates { get; set; }
  35.     }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement