Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Pliner committed Mar 29, 2018
1 parent 290e4cf commit 48e7267
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Consul/Agent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,18 @@ public class AgentService
public string Address { get; set; }
public bool EnableTagOverride { get; set; }
}

/// <summary>
/// AgentMemberStatus is the state that a member is in
/// </summary>
public enum AgentMemberStatus
{
None = 0,
Alive,
Leaving,
Left,
Failed
}

/// <summary>
/// AgentMember represents a cluster member known to the agent
Expand All @@ -152,7 +164,7 @@ public class AgentMember
public string Addr { get; set; }
public ushort Port { get; set; }
public Dictionary<string, string> Tags { get; set; }
public int Status { get; set; }
public AgentMemberStatus Status { get; set; }
public byte ProtocolMin { get; set; }
public byte ProtocolMax { get; set; }
public byte ProtocolCur { get; set; }
Expand Down

0 comments on commit 48e7267

Please sign in to comment.