Google Cloud Monitoring v3 API - Class QueryService.QueryServiceClient (3.13.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
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(ClientBaseConfiguration)

protected QueryServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
QueryServiceQueryServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Monitoring.V3.QueryService.QueryServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

QueryTimeSeries(QueryTimeSeriesRequest, CallOptions)

[Obsolete]
public virtual QueryTimeSeriesResponse QueryTimeSeries(QueryTimeSeriesRequest request, CallOptions options)

Queries time series by using Monitoring Query Language (MQL). We recommend using PromQL instead of MQL. For more information about the status of MQL, see the MQL deprecation notice.

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

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

Queries time series by using Monitoring Query Language (MQL). We recommend using PromQL instead of MQL. For more information about the status of MQL, see the MQL deprecation notice.

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 System.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)

[Obsolete]
public virtual AsyncUnaryCall<QueryTimeSeriesResponse> QueryTimeSeriesAsync(QueryTimeSeriesRequest request, CallOptions options)

Queries time series by using Monitoring Query Language (MQL). We recommend using PromQL instead of MQL. For more information about the status of MQL, see the MQL deprecation notice.

Parameters
Name Description
request QueryTimeSeriesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallQueryTimeSeriesResponse

The call object.

QueryTimeSeriesAsync(QueryTimeSeriesRequest, Metadata, DateTime?, CancellationToken)

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

Queries time series by using Monitoring Query Language (MQL). We recommend using PromQL instead of MQL. For more information about the status of MQL, see the MQL deprecation notice.

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 System.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
AsyncUnaryCallQueryTimeSeriesResponse

The call object.