/// <inheritdoc />
 public Task <INodeStatsResponse> NodesStatsAsync(INodesStatsRequest nodesStatsRequest)
 {
     return(this.DispatchAsync <INodesStatsRequest, NodesStatsRequestParameters, NodeStatsResponse, INodeStatsResponse>(
                nodesStatsRequest,
                (p, d) => this.RawDispatch.NodesStatsDispatchAsync <NodeStatsResponse>(p)
                ));
 }
Example #2
0
 /// <inheritdoc />
 public Task <INodesStatsResponse> NodesStatsAsync(INodesStatsRequest request, CancellationToken cancellationToken = default(CancellationToken)
                                                   ) =>
 Dispatcher.DispatchAsync <INodesStatsRequest, NodesStatsRequestParameters, NodesStatsResponse, INodesStatsResponse>(
     request,
     cancellationToken,
     (p, d, c) => LowLevelDispatch.NodesStatsDispatchAsync <NodesStatsResponse>(p, c)
     );
 /// <inheritdoc />
 public INodeStatsResponse NodesStats(INodesStatsRequest nodesStatsRequest)
 {
     return(this.Dispatch <INodesStatsRequest, NodesStatsRequestParameters, NodeStatsResponse>(
                nodesStatsRequest,
                (p, d) => this.RawDispatch.NodesStatsDispatch <NodeStatsResponse>(p)
                ));
 }
		/// <inheritdoc />
		public INodeStatsResponse NodesStats(INodesStatsRequest nodesStatsRequest)
		{
			return this.Dispatch<INodesStatsRequest, NodesStatsRequestParameters, NodeStatsResponse>(
				nodesStatsRequest,
				(p, d) => this.RawDispatch.NodesStatsDispatch<NodeStatsResponse>(p)
			);
		}
		/// <inheritdoc />
		public Task<INodeStatsResponse> NodesStatsAsync(INodesStatsRequest nodesStatsRequest)
		{
			return this.DispatchAsync<INodesStatsRequest, NodesStatsRequestParameters, NodeStatsResponse, INodeStatsResponse>(
				nodesStatsRequest,
				(p, d) => this.RawDispatch.NodesStatsDispatchAsync<NodeStatsResponse>(p)
			);
		}
 /// <summary>
 /// <c>GET</c> request to the <c>nodes.stats</c> API, read more about this API online:
 /// <para></para>
 /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html">https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html</a>
 /// </summary>
 public Task <NodesStatsResponse> StatsAsync(INodesStatsRequest request, CancellationToken ct = default) => DoRequestAsync <INodesStatsRequest, NodesStatsResponse>(request, request.RequestParameters, ct);
 /// <summary>
 /// <c>GET</c> request to the <c>nodes.stats</c> API, read more about this API online:
 /// <para></para>
 /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html">https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html</a>
 /// </summary>
 public NodesStatsResponse Stats(INodesStatsRequest request) => DoRequest <INodesStatsRequest, NodesStatsResponse>(request, request.RequestParameters);
Example #8
0
 /// <inheritdoc/>
 public Task <INodesStatsResponse> NodesStatsAsync(INodesStatsRequest request) =>
 this.Dispatcher.DispatchAsync <INodesStatsRequest, NodesStatsRequestParameters, NodesStatsRsponse, INodesStatsResponse>(
     request,
     (p, d) => this.LowLevelDispatch.NodesStatsDispatchAsync <NodesStatsRsponse>(p)
     );
Example #9
0
 /// <inheritdoc/>
 public INodesStatsResponse NodesStats(INodesStatsRequest request) =>
 this.Dispatcher.Dispatch <INodesStatsRequest, NodesStatsRequestParameters, NodesStatsRsponse>(
     request,
     (p, d) => this.LowLevelDispatch.NodesStatsDispatch <NodesStatsRsponse>(p)
     );
		/// <inheritdoc/>
		public Task<INodesStatsResponse> NodesStatsAsync(INodesStatsRequest request) => 
			this.Dispatcher.DispatchAsync<INodesStatsRequest, NodesStatsRequestParameters, NodesStatsRsponse, INodesStatsResponse>(
				request,
				(p, d) => this.LowLevelDispatch.NodesStatsDispatchAsync<NodesStatsRsponse>(p)
			);
		/// <inheritdoc/>
		public INodesStatsResponse NodesStats(INodesStatsRequest request) => 
			this.Dispatcher.Dispatch<INodesStatsRequest, NodesStatsRequestParameters, NodesStatsRsponse>(
				request,
				(p, d) => this.LowLevelDispatch.NodesStatsDispatch<NodesStatsRsponse>(p)
			);
 public static void Update(ElasticsearchPathInfo <NodesStatsRequestParameters> pathInfo, INodesStatsRequest request)
 {
     pathInfo.HttpMethod = PathInfoHttpMethod.GET;
     if (request.Metrics != null)
     {
         pathInfo.Metric = request.Metrics.Cast <Enum>().GetStringValue();
     }
     if (request.IndexMetrics != null)
     {
         pathInfo.IndexMetric = request.IndexMetrics.Cast <Enum>().GetStringValue();
     }
 }
 public static Task <NodesStatsResponse> NodesStatsAsync(this IElasticClient client, INodesStatsRequest request, CancellationToken ct = default)
 => client.Nodes.StatsAsync(request, ct);
 public static NodesStatsResponse NodesStats(this IElasticClient client, INodesStatsRequest request)
 => client.Nodes.Stats(request);