diff --git a/Consul/Agent.cs b/Consul/Agent.cs index 1350f84..b22bfe1 100644 --- a/Consul/Agent.cs +++ b/Consul/Agent.cs @@ -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; } } /// diff --git a/Consul/Catalog.cs b/Consul/Catalog.cs index 3337d6f..30c82c1 100644 --- a/Consul/Catalog.cs +++ b/Consul/Catalog.cs @@ -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 TaggedAddresses { get; set; } + public Dictionary Meta { get; set; } } public class CatalogService { public string Node { get; set; } public string Address { get; set; } + public string Datacenter { get; set; } + public IDictionary TaggedAddresses { get; set; } + public IDictionary NodeMeta { get; set; } public string ServiceID { get; set; } public string ServiceName { get; set; } public string ServiceAddress { get; set; } @@ -63,6 +68,8 @@ public class CatalogRegistration public string Node { get; set; } public string Address { get; set; } public string Datacenter { get; set; } + public IDictionary TaggedAddresses { get; set; } + public IDictionary NodeMeta { get; set; } public AgentService Service { get; set; } public AgentCheck Check { get; set; } }