Exemplo n.º 1
0
 ///<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));
Exemplo n.º 2
0
 ///<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))
 {
 }
Exemplo n.º 3
0
 ///<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))
 {
 }
Exemplo n.º 4
0
 internal RouteValues Optional(string route, IndexMetrics value) => Route(route, value, false);