forked from NetCoreStack/Proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAgent.cs
More file actions
42 lines (39 loc) · 1.29 KB
/
Copy pathAgent.cs
File metadata and controls
42 lines (39 loc) · 1.29 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
using System.Collections.Generic;
namespace NetCoreStack.Proxy.Test.Contracts
{
/// <summary>
/// AgentCheck represents a check known to the agent
/// </summary>
public class AgentCheck
{
public string Node { get; set; }
public string CheckID { get; set; }
public string Name { get; set; }
public string Status { get; set; }
public string Notes { get; set; }
public string Output { get; set; }
public string ServiceID { get; set; }
public string ServiceName { get; set; }
}
/// <summary>
/// AgentMember represents a cluster member known to the agent
/// </summary>
public class AgentMember
{
public string Name { get; set; }
public string Addr { get; set; }
public ushort Port { get; set; }
public Dictionary<string, string> Tags { get; set; }
public int Status { get; set; }
public byte ProtocolMin { get; set; }
public byte ProtocolMax { get; set; }
public byte ProtocolCur { get; set; }
public byte DelegateMin { get; set; }
public byte DelegateMax { get; set; }
public byte DelegateCur { get; set; }
public AgentMember()
{
Tags = new Dictionary<string, string>();
}
}
}