コード例 #1
0
 ///<summary>Limit the information returned to the specified metrics</summary>
 public NodesUsageDescriptor Metric(Metrics metric) => Assign(metric, (a, v) => a.RouteValues.Optional("metric", v));
コード例 #2
0
 ///<summary>/_nodes/{node_id}/usage/{metric}</summary>
 ///<param name = "nodeId">Optional, accepts null</param>
 ///<param name = "metric">Optional, accepts null</param>
 public NodesUsageDescriptor(NodeIds nodeId, Metrics metric) : base(r => r.Optional("node_id", nodeId).Optional("metric", metric))
 {
 }
コード例 #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))
 {
 }
コード例 #4
0
 ///<summary>/_nodes/usage/{metric}</summary>
 ///<param name = "metric">Optional, accepts null</param>
 public NodesUsageDescriptor(Metrics metric) : base(r => r.Optional("metric", metric))
 {
 }
コード例 #5
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))
 {
 }