Google Cloud Monitoring v3 API - Class QueryService.QueryServiceClient (3.4.0)

public class QueryService.QueryServiceClient : ClientBase<QueryService.QueryServiceClient>

Reference documentation and code samples for the Google Cloud Monitoring v3 API class QueryService.QueryServiceClient.

Client for QueryService

Inheritance

object > ClientBase > ClientBaseQueryServiceQueryServiceClient > QueryService.QueryServiceClient

Namespace

Google.Cloud.Monitoring.V3

Assembly

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
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

QueryServiceClient(ChannelBase)

public QueryServiceClient(ChannelBase channel)

Creates a new client for QueryService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

QueryServiceClient(ClientBaseConfiguration)

protected QueryServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

NewInstance(ClientBaseConfiguration)

protected override QueryService.QueryServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
QueryServiceQueryServiceClient
Overrides

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
NameDescription
requestQueryTimeSeriesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
QueryTimeSeriesResponse

The response received from the server.

QueryTimeSeries(QueryTimeSeriesRequest, Metadata, DateTime?, CancellationToken)

public virtual QueryTimeSeriesResponse QueryTimeSeries(QueryTimeSeriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Queries time series using Monitoring Query Language. This method does not require a Workspace.

Parameters
NameDescription
requestQueryTimeSeriesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestQueryTimeSeriesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallQueryTimeSeriesResponse

The call object.

QueryTimeSeriesAsync(QueryTimeSeriesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<QueryTimeSeriesResponse> QueryTimeSeriesAsync(QueryTimeSeriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Queries time series using Monitoring Query Language. This method does not require a Workspace.

Parameters
NameDescription
requestQueryTimeSeriesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallQueryTimeSeriesResponse

The call object.