Skip to content
This repository has been archived by the owner on Apr 27, 2019. It is now read-only.

Fix #104 #112

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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