From 495b3800f698e0be743c8fc30c3b171ea272ead9 Mon Sep 17 00:00:00 2001 From: Stuart Cam Date: Mon, 18 Mar 2019 22:28:57 +1100 Subject: [PATCH] Add node count to ML usage response (#3603) Relates: elastic/elasticsearch#33863 Add usage remarks. --- src/Nest/XPack/Info/XPackUsage/XPackUsageResponse.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Nest/XPack/Info/XPackUsage/XPackUsageResponse.cs b/src/Nest/XPack/Info/XPackUsage/XPackUsageResponse.cs index 07d79449a38..5e01c002f67 100644 --- a/src/Nest/XPack/Info/XPackUsage/XPackUsageResponse.cs +++ b/src/Nest/XPack/Info/XPackUsage/XPackUsageResponse.cs @@ -164,6 +164,10 @@ public class MonitoringUsage : XPackUsage public class MachineLearningUsage : XPackUsage { + /// Valid only for Elasticsearch 6.5.0+ + [JsonProperty("node_count")] + public int NodeCount { get; internal set; } + [JsonProperty("datafeeds")] public IReadOnlyDictionary Datafeeds { get; set; } = EmptyReadOnly.Dictionary;