Class QueryService.QueryServiceClient

public class QueryServiceClient : ClientBase<QueryService.QueryServiceClient>

Client for QueryService

Inheritance

Object > ClientBase > ClientBase<QueryService.QueryServiceClient> > 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(ClientBase.ClientBaseConfiguration)

protected QueryServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.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
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
QueryService.QueryServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Monitoring.V3.QueryService.QueryServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<QueryTimeSeriesResponse>

The call object.

QueryTimeSeriesAsync(QueryTimeSeriesRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<QueryTimeSeriesResponse>

The call object.