public class QueryServiceClient : ClientBase<QueryService.QueryServiceClient>
Client for QueryService
Inheritance
Object > ClientBase > ClientBase<QueryService.QueryServiceClient> > QueryService.QueryServiceClientNamespace
Google.Cloud.Monitoring.V3Assembly
Google.Cloud.Monitoring.V3.dll
Constructors
QueryServiceClient()
protected QueryServiceClient()
Protected parameterless constructor to allow creation of test doubles.
QueryServiceClient(CallInvoker)
public QueryServiceClient(CallInvoker callInvoker)
Creates a new client for QueryService that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker | CallInvoker The callInvoker to use to make remote calls. |
QueryServiceClient(ChannelBase)
public QueryServiceClient(ChannelBase channel)
Creates a new client for QueryService
Parameter | |
---|---|
Name | Description |
channel | ChannelBase The channel to use to make remote calls. |
QueryServiceClient(ClientBase.ClientBaseConfiguration)
protected QueryServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration The client configuration. |
Methods
NewInstance(ClientBase.ClientBaseConfiguration)
protected override QueryService.QueryServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
QueryService.QueryServiceClient |
QueryTimeSeries(QueryTimeSeriesRequest, CallOptions)
public virtual QueryTimeSeriesResponse QueryTimeSeries(QueryTimeSeriesRequest request, CallOptions options)
Queries time series using Monitoring Query Language. This method does not require a Workspace.
Parameters | |
---|---|
Name | Description |
request | QueryTimeSeriesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
QueryTimeSeriesResponse | The response received from the server. |
QueryTimeSeries(QueryTimeSeriesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual QueryTimeSeriesResponse QueryTimeSeries(QueryTimeSeriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Queries time series using Monitoring Query Language. This method does not require a Workspace.
Parameters | |
---|---|
Name | Description |
request | QueryTimeSeriesRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
QueryTimeSeriesResponse | The response received from the server. |
QueryTimeSeriesAsync(QueryTimeSeriesRequest, CallOptions)
public virtual AsyncUnaryCall<QueryTimeSeriesResponse> QueryTimeSeriesAsync(QueryTimeSeriesRequest request, CallOptions options)
Queries time series using Monitoring Query Language. This method does not require a Workspace.
Parameters | |
---|---|
Name | Description |
request | QueryTimeSeriesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<QueryTimeSeriesResponse> | The call object. |
QueryTimeSeriesAsync(QueryTimeSeriesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<QueryTimeSeriesResponse> QueryTimeSeriesAsync(QueryTimeSeriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Queries time series using Monitoring Query Language. This method does not require a Workspace.
Parameters | |
---|---|
Name | Description |
request | QueryTimeSeriesRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<QueryTimeSeriesResponse> | The call object. |