public ClusterStateRequestTests() { var request = new ClusterStateRequest() { Metrics = new [] {ClusterStateMetric.Blocks, ClusterStateMetric.MasterNode }, FlatSettings = true }; var response = this._client.ClusterState(request); this._status = response.ConnectionStatus; }
public ClusterStateRequestTests() { var request = new ClusterStateRequest() { Metrics = new [] { ClusterStateMetric.Blocks, ClusterStateMetric.MasterNode }, FlatSettings = true }; var response = this._client.ClusterState(request); this._status = response.ConnectionStatus; }
public Task <ClusterStateResponse> StateAsync(ClusterStateRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); return(DoRequestAsync <ClusterStateRequest, ClusterStateResponse>(request, cancellationToken)); }
public ClusterStateResponse State(ClusterStateRequest request) { request.BeforeRequest(); return(DoRequest <ClusterStateRequest, ClusterStateResponse>(request)); }