Skip to content

Commit 60d9385

Browse files
authored
Add packaging to cluster stats response. (#3995)
This commit adds a packaging_types field to the cluster stats response that outlines the build flavors and types present in a cluster.
1 parent bf56eb3 commit 60d9385

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Nest/Cluster/ClusterStats/ClusterNodesStats.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ public class ClusterNodesStats
1212
[DataMember(Name ="discovery_types")]
1313
public IReadOnlyDictionary<string, int> DiscoveryTypes { get; internal set; }
1414

15+
[DataMember(Name ="packaging_types")]
16+
public IReadOnlyCollection<NodePackagingType> PackagingTypes { get; internal set; }
17+
1518
[DataMember(Name ="fs")]
1619
public ClusterFileSystem FileSystem { get; internal set; }
1720

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

40+
public class NodePackagingType
41+
{
42+
[DataMember(Name ="flavor")]
43+
public string Flavor { get; internal set; }
44+
45+
[DataMember(Name ="type")]
46+
public string Type { get; internal set; }
47+
48+
[DataMember(Name ="count")]
49+
public int Count { get; internal set; }
50+
}
51+
3752
[DataContract]
3853
public class ClusterNetworkTypes
3954
{

0 commit comments

Comments
 (0)