///<summary>GET on /_watcher/stats/{metric} <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html</para></summary> ///<param name = "metric">Controls what additional stat metrics should be include in the response</param> ///<param name = "requestParameters">Request specific configuration such as querystring parameters & request specific connection settings.</param> public TResponse Stats <TResponse>(string metric, WatcherStatsRequestParameters requestParameters = null) where TResponse : class, ITransportResponse, new() => DoRequest <TResponse>(GET, Url($"_watcher/stats/{metric:metric}"), null, RequestParams(requestParameters));
///<summary>GET on /_watcher/stats <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html</para></summary> ///<param name = "requestParameters">Request specific configuration such as querystring parameters & request specific connection settings.</param> public TResponse Stats <TResponse>(WatcherStatsRequestParameters requestParameters = null) where TResponse : class, ITransportResponse, new() => DoRequest <TResponse>(GET, "_watcher/stats", null, RequestParams(requestParameters));
public Task <TResponse> StatsAsync <TResponse>(WatcherStatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, ITransportResponse, new() => DoRequestAsync <TResponse>(GET, "_watcher/stats", ctx, null, RequestParams(requestParameters));
///<summary>GET on /_watcher/stats/{metric} <para>http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html</para></summary> ///<param name = "metric">Controls what additional stat metrics should be include in the response</param> ///<param name = "requestParameters">Request specific configuration such as querystring parameters & request specific connection settings.</param> public Task <TResponse> StatsAsync <TResponse>(string metric, WatcherStatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync <TResponse>(GET, Url($"_watcher/stats/{metric:metric}"), ctx, null, RequestParams(requestParameters));