/// <inheritdoc cref="FollowIndexStats(Indices, System.Func{Nest.FollowIndexStatsDescriptor,Nest.IFollowIndexStatsRequest})" /> public Task <IFollowIndexStatsResponse> FollowIndexStatsAsync(IFollowIndexStatsRequest request, CancellationToken cancellationToken = default) => Dispatcher.DispatchAsync <IFollowIndexStatsRequest, FollowIndexStatsRequestParameters, FollowIndexStatsResponse, IFollowIndexStatsResponse>( request, cancellationToken, (p, d, c) => LowLevelDispatch.CcrFollowStatsDispatchAsync <FollowIndexStatsResponse>(p, c) );
/// <inheritdoc cref="FollowIndexStats(Indices, System.Func{Nest.FollowIndexStatsDescriptor,Nest.IFollowIndexStatsRequest})" /> public IFollowIndexStatsResponse FollowIndexStats(IFollowIndexStatsRequest request) => Dispatcher.Dispatch <IFollowIndexStatsRequest, FollowIndexStatsRequestParameters, FollowIndexStatsResponse>( request, (p, d) => LowLevelDispatch.CcrFollowStatsDispatch <FollowIndexStatsResponse>(p) );
/// <summary> /// <c>GET</c> request to the <c>ccr.follow_stats</c> API, read more about this API online: /// <para></para> /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-stats.html">https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-stats.html</a> /// </summary> public Task <FollowIndexStatsResponse> FollowIndexStatsAsync(IFollowIndexStatsRequest request, CancellationToken ct = default) => DoRequestAsync <IFollowIndexStatsRequest, FollowIndexStatsResponse>(request, request.RequestParameters, ct);
/// <summary> /// <c>GET</c> request to the <c>ccr.follow_stats</c> API, read more about this API online: /// <para></para> /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-stats.html">https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-stats.html</a> /// </summary> public FollowIndexStatsResponse FollowIndexStats(IFollowIndexStatsRequest request) => DoRequest <IFollowIndexStatsRequest, FollowIndexStatsResponse>(request, request.RequestParameters);
public static Task <FollowIndexStatsResponse> FollowIndexStatsAsync(this IElasticClient client, IFollowIndexStatsRequest request, CancellationToken ct = default ) => client.CrossClusterReplication.FollowIndexStatsAsync(request, ct);
public static FollowIndexStatsResponse FollowIndexStats(this IElasticClient client, IFollowIndexStatsRequest request) => client.CrossClusterReplication.FollowIndexStats(request);