///<summary>Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified.</summary> public NodesStatsDescriptor IndexMetric(IndexMetrics indexMetric) => Assign(indexMetric, (a, v) => a.RouteValues.Optional("index_metric", v));
///<summary>/_nodes/stats/{metric}/{index_metric}</summary> ///<param name = "metric">Optional, accepts null</param> ///<param name = "indexMetric">Optional, accepts null</param> public NodesStatsDescriptor(Metrics metric, IndexMetrics indexMetric) : base(r => r.Optional("metric", metric).Optional("index_metric", indexMetric)) { }
///<summary>/_nodes/{node_id}/stats/{metric}/{index_metric}</summary> ///<param name = "nodeId">Optional, accepts null</param> ///<param name = "metric">Optional, accepts null</param> ///<param name = "indexMetric">Optional, accepts null</param> public NodesStatsDescriptor(NodeIds nodeId, Metrics metric, IndexMetrics indexMetric) : base(r => r.Optional("node_id", nodeId).Optional("metric", metric).Optional("index_metric", indexMetric)) { }
internal RouteValues Optional(string route, IndexMetrics value) => Route(route, value, false);