Skip to content

Commit

Permalink
Add packaging to cluster stats response. (#3995)
Browse files Browse the repository at this point in the history
This commit adds a packaging_types field to the cluster stats response that outlines the build flavors and types present in a cluster.
  • Loading branch information
codebrain authored Aug 8, 2019
1 parent bf56eb3 commit 60d9385
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Nest/Cluster/ClusterStats/ClusterNodesStats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ public class ClusterNodesStats
[DataMember(Name ="discovery_types")]
public IReadOnlyDictionary<string, int> DiscoveryTypes { get; internal set; }

[DataMember(Name ="packaging_types")]
public IReadOnlyCollection<NodePackagingType> PackagingTypes { get; internal set; }

[DataMember(Name ="fs")]
public ClusterFileSystem FileSystem { get; internal set; }

Expand All @@ -34,6 +37,18 @@ public class ClusterNodesStats
public IReadOnlyCollection<string> Versions { get; internal set; }
}

public class NodePackagingType
{
[DataMember(Name ="flavor")]
public string Flavor { get; internal set; }

[DataMember(Name ="type")]
public string Type { get; internal set; }

[DataMember(Name ="count")]
public int Count { get; internal set; }
}

[DataContract]
public class ClusterNetworkTypes
{
Expand Down

0 comments on commit 60d9385

Please sign in to comment.