From c129a9efa1f16261d051f01d243305eef139e5ac Mon Sep 17 00:00:00 2001 From: Stuart Cam Date: Wed, 7 Aug 2019 14:15:56 +1000 Subject: [PATCH] Add packaging to cluster stats response. This commit adds a packaging_types field to the cluster stats response that outlines the build flavors and types present in a cluster. --- .../Cluster/ClusterStats/ClusterNodesStats.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Nest/Cluster/ClusterStats/ClusterNodesStats.cs b/src/Nest/Cluster/ClusterStats/ClusterNodesStats.cs index 32768feefb8..6a57c733865 100644 --- a/src/Nest/Cluster/ClusterStats/ClusterNodesStats.cs +++ b/src/Nest/Cluster/ClusterStats/ClusterNodesStats.cs @@ -12,6 +12,9 @@ public class ClusterNodesStats [DataMember(Name ="discovery_types")] public IReadOnlyDictionary DiscoveryTypes { get; internal set; } + [DataMember(Name ="packaging_types")] + public IReadOnlyCollection PackagingTypes { get; internal set; } + [DataMember(Name ="fs")] public ClusterFileSystem FileSystem { get; internal set; } @@ -34,6 +37,18 @@ public class ClusterNodesStats public IReadOnlyCollection 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 {