public Task <TResponse> StatsForAllAsync <TResponse>(string metric, NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, ITransportResponse, new() => DoRequestAsync <TResponse>(GET, Url($"_nodes/stats/{metric:metric}"), ctx, null, RequestParams(requestParameters));
///<summary>GET on /_nodes/{node_id}/stats/{metric} <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html</para></summary> ///<param name = "nodeId">A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes</param> ///<param name = "metric">Limit the information returned to the specified metrics</param> ///<param name = "requestParameters">Request specific configuration such as querystring parameters & request specific connection settings.</param> public TResponse Stats <TResponse>(string nodeId, string metric, NodesStatsRequestParameters requestParameters = null) where TResponse : class, ITransportResponse, new() => DoRequest <TResponse>(GET, Url($"_nodes/{nodeId:nodeId}/stats/{metric:metric}"), null, RequestParams(requestParameters));
///<summary>GET on /_nodes/stats/{metric}/{index_metric} <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html</para></summary> ///<param name = "metric">Limit the information returned to the specified metrics</param> ///<param name = "indexMetric">Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified.</param> ///<param name = "requestParameters">Request specific configuration such as querystring parameters & request specific connection settings.</param> public TResponse StatsForAll <TResponse>(string metric, string indexMetric, NodesStatsRequestParameters requestParameters = null) where TResponse : class, ITransportResponse, new() => DoRequest <TResponse>(GET, Url($"_nodes/stats/{metric:metric}/{indexMetric:indexMetric}"), null, RequestParams(requestParameters));
///<summary>GET on /_nodes/stats <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html</para></summary> ///<param name = "requestParameters">Request specific configuration such as querystring parameters & request specific connection settings.</param> public TResponse StatsForAll <TResponse>(NodesStatsRequestParameters requestParameters = null) where TResponse : class, ITransportResponse, new() => DoRequest <TResponse>(GET, "_nodes/stats", null, RequestParams(requestParameters));
public Task <TResponse> StatsAsync <TResponse>(string nodeId, string metric, string indexMetric, NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync <TResponse>(GET, Url($"_nodes/{nodeId:nodeId}/stats/{metric:metric}/{indexMetric:indexMetric}"), ctx, null, RequestParams(requestParameters));
///<summary>A comma-separated list of fields for `fielddata` index metric (supports wildcards)</summary> internal static NodesStatsRequestParameters _FielddataFields <T>(this NodesStatsRequestParameters qs, IEnumerable <Expression <Func <T, object> > > fielddata_fields) where T : class => qs.AddQueryString("fielddata_fields", fielddata_fields.Select(e => (Field)e));
///<summary>GET on /_nodes/{node_id}/stats/{metric}/{index_metric} <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html</para></summary> ///<param name = "nodeId">A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes</param> ///<param name = "metric">Limit the information returned to the specified metrics</param> ///<param name = "indexMetric">Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified.</param> ///<param name = "requestParameters">Request specific configuration such as querystring parameters & request specific connection settings.</param> public TResponse Stats <TResponse>(string nodeId, string metric, string indexMetric, NodesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest <TResponse>(GET, Url($"_nodes/{nodeId:nodeId}/stats/{metric:metric}/{indexMetric:indexMetric}"), null, RequestParams(requestParameters));
///<summary>GET on /_nodes/stats/{metric} <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html</para></summary> ///<param name = "metric">Limit the information returned to the specified metrics</param> ///<param name = "requestParameters">Request specific configuration such as querystring parameters & request specific connection settings.</param> public TResponse StatsForAll <TResponse>(string metric, NodesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest <TResponse>(GET, Url($"_nodes/stats/{metric:metric}"), null, RequestParams(requestParameters));
public Task <TResponse> StatsForAllAsync <TResponse>(NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync <TResponse>(GET, "_nodes/stats", ctx, null, RequestParams(requestParameters));
public Task <TResponse> StatsAsync <TResponse>(string nodeId, NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync <TResponse>(GET, Url($"_nodes/{nodeId:nodeId}/stats"), ctx, null, RequestParams(requestParameters));
///<summary>GET on /_nodes/{node_id}/stats <para>https://opensearch.org/docs/latest/opensearch/stats-api/</para></summary> ///<param name = "nodeId">A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes</param> ///<param name = "requestParameters">Request specific configuration such as querystring parameters & request specific connection settings.</param> public TResponse Stats <TResponse>(string nodeId, NodesStatsRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new() => DoRequest <TResponse>(GET, Url($"_nodes/{nodeId:nodeId}/stats"), null, RequestParams(requestParameters));