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.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(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 |
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, 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 | |
---|---|
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 | 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 |
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 | |
---|---|
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 | 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. |