/// <inheritdoc /> public Task <IGlobalStatsResponse> IndicesStatsAsync(IIndicesStatsRequest statsRequest) { return(this.DispatchAsync <IIndicesStatsRequest, IndicesStatsRequestParameters, GlobalStatsResponse, IGlobalStatsResponse>( statsRequest, (p, d) => this.RawDispatch.IndicesStatsDispatchAsync <GlobalStatsResponse>(p) )); }
/// <inheritdoc /> public IGlobalStatsResponse IndicesStats(IIndicesStatsRequest statsRequest) { return this.Dispatch<IIndicesStatsRequest, IndicesStatsRequestParameters, GlobalStatsResponse>( statsRequest, (p, d) => this.RawDispatch.IndicesStatsDispatch<GlobalStatsResponse>(p) ); }
/// <inheritdoc /> public IGlobalStatsResponse IndicesStats(IIndicesStatsRequest statsRequest) { return(this.Dispatch <IIndicesStatsRequest, IndicesStatsRequestParameters, GlobalStatsResponse>( statsRequest, (p, d) => this.RawDispatch.IndicesStatsDispatch <GlobalStatsResponse>(p) )); }
/// <inheritdoc /> public Task<IGlobalStatsResponse> IndicesStatsAsync(IIndicesStatsRequest statsRequest) { return this.DispatchAsync<IIndicesStatsRequest, IndicesStatsRequestParameters, GlobalStatsResponse, IGlobalStatsResponse>( statsRequest, (p, d) => this.RawDispatch.IndicesStatsDispatchAsync<GlobalStatsResponse>(p) ); }
/// <inheritdoc /> public Task <IIndicesStatsResponse> IndicesStatsAsync(IIndicesStatsRequest request, CancellationToken cancellationToken = default(CancellationToken) ) => Dispatcher.DispatchAsync <IIndicesStatsRequest, IndicesStatsRequestParameters, IndicesStatsResponse, IIndicesStatsResponse>( request, cancellationToken, (p, d, c) => LowLevelDispatch.IndicesStatsDispatchAsync <IndicesStatsResponse>(p, c) );
/// <inheritdoc/> public Task <IIndicesStatsResponse> IndicesStatsAsync(IIndicesStatsRequest request) => this.Dispatcher.DispatchAsync <IIndicesStatsRequest, IndicesStatsRequestParameters, IndicesStatsResponse, IIndicesStatsResponse>( request, (p, d) => this.LowLevelDispatch.IndicesStatsDispatchAsync <IndicesStatsResponse>(p) );
/// <inheritdoc/> public IIndicesStatsResponse IndicesStats(IIndicesStatsRequest request) => this.Dispatcher.Dispatch <IIndicesStatsRequest, IndicesStatsRequestParameters, IndicesStatsResponse>( request, (p, d) => this.LowLevelDispatch.IndicesStatsDispatch <IndicesStatsResponse>(p) );
public static void Update(IConnectionSettingsValues settings, ElasticsearchPathInfo <IndicesStatsRequestParameters> pathInfo, IIndicesStatsRequest request) { if (request.Types.HasAny()) { var inferrer = new ElasticInferrer(settings); var types = inferrer.TypeNames(request.Types); pathInfo.RequestParameters.AddQueryString("types", string.Join(",", types)); } if (request.Metrics != null) { pathInfo.Metric = request.Metrics.Cast <Enum>().GetStringValue(); } pathInfo.HttpMethod = PathInfoHttpMethod.GET; }
/// <inheritdoc/> public IIndicesStatsResponse IndicesStats(IIndicesStatsRequest request) => this.Dispatcher.Dispatch<IIndicesStatsRequest, IndicesStatsRequestParameters, IndicesStatsResponse>( request, (p, d) => this.LowLevelDispatch.IndicesStatsDispatch<IndicesStatsResponse>(p) );
/// <inheritdoc/> public Task<IIndicesStatsResponse> IndicesStatsAsync(IIndicesStatsRequest request, CancellationToken cancellationToken = default(CancellationToken)) => this.Dispatcher.DispatchAsync<IIndicesStatsRequest, IndicesStatsRequestParameters, IndicesStatsResponse, IIndicesStatsResponse>( request, cancellationToken, (p, d, c) => this.LowLevelDispatch.IndicesStatsDispatchAsync<IndicesStatsResponse>(p, c) );
/// <inheritdoc /> public Task <IndicesStatsResponse> IndicesStatsAsync(IIndicesStatsRequest request, CancellationToken ct = default) => DoRequestAsync <IIndicesStatsRequest, IndicesStatsResponse>(request, request.RequestParameters, ct);
/// <inheritdoc /> public IndicesStatsResponse IndicesStats(IIndicesStatsRequest request) => DoRequest <IIndicesStatsRequest, IndicesStatsResponse>(request, request.RequestParameters);
public static Task <IndicesStatsResponse> IndicesStatsAsync(this IElasticClient client, IIndicesStatsRequest request, CancellationToken ct = default ) => client.Indices.StatsAsync(request, ct);
public static IndicesStatsResponse IndicesStats(this IElasticClient client, IIndicesStatsRequest request) => client.Indices.Stats(request);
/// <inheritdoc/> public Task<IIndicesStatsResponse> IndicesStatsAsync(IIndicesStatsRequest request) => this.Dispatcher.DispatchAsync<IIndicesStatsRequest, IndicesStatsRequestParameters, IndicesStatsResponse, IIndicesStatsResponse>( request, (p, d) => this.LowLevelDispatch.IndicesStatsDispatchAsync<IndicesStatsResponse>(p) );