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

Add nodemeta #131

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions Consul/Agent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,16 @@ public class AgentCheck
public HealthStatus Status { get; set; }

public string Notes { get; set; }

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string Output { get; set; }
public string ServiceID { get; set; }

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string ServiceName { get; set; }

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public AgentServiceCheck Definition { get; set; }
}

/// <summary>
Expand Down
7 changes: 7 additions & 0 deletions Consul/Catalog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,18 @@ public class Node
[JsonProperty(PropertyName = "Node")]
public string Name { get; set; }
public string Address { get; set; }
public string Datacenter { get; set; }
public Dictionary<string, string> TaggedAddresses { get; set; }
public Dictionary<string, string> Meta { get; set; }
}

public class CatalogService
{
public string Node { get; set; }
public string Address { get; set; }
public string Datacenter { get; set; }
public IDictionary<string, string> TaggedAddresses { get; set; }
public IDictionary<string, string> NodeMeta { get; set; }
public string ServiceID { get; set; }
public string ServiceName { get; set; }
public string ServiceAddress { get; set; }
Expand All @@ -63,6 +68,8 @@ public class CatalogRegistration
public string Node { get; set; }
public string Address { get; set; }
public string Datacenter { get; set; }
public IDictionary<string, string> TaggedAddresses { get; set; }
public IDictionary<string, string> NodeMeta { get; set; }
public AgentService Service { get; set; }
public AgentCheck Check { get; set; }
}
Expand Down