Google Cloud Monitoring v3 API - Class MetricService.MetricServiceClient (3.2.0)

public class MetricServiceClient : ClientBase<MetricService.MetricServiceClient>

Reference documentation and code samples for the Google Cloud Monitoring v3 API class MetricService.MetricServiceClient.

Client for MetricService

Inheritance

Object > ClientBase > ClientBase<MetricService.MetricServiceClient> > MetricService.MetricServiceClient

Namespace

Google.Cloud.Monitoring.V3

Assembly

Google.Cloud.Monitoring.V3.dll

Constructors

MetricServiceClient()

protected MetricServiceClient()

Protected parameterless constructor to allow creation of test doubles.

MetricServiceClient(CallInvoker)

public MetricServiceClient(CallInvoker callInvoker)

Creates a new client for MetricService that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

MetricServiceClient(ChannelBase)

public MetricServiceClient(ChannelBase channel)

Creates a new client for MetricService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

MetricServiceClient(ClientBase.ClientBaseConfiguration)

protected MetricServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

CreateMetricDescriptor(CreateMetricDescriptorRequest, CallOptions)

public virtual MetricDescriptor CreateMetricDescriptor(CreateMetricDescriptorRequest request, CallOptions options)

Creates a new metric descriptor. The creation is executed asynchronously and callers may check the returned operation to track its progress. User-created metric descriptors define custom metrics.

Parameters
NameDescription
requestCreateMetricDescriptorRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
MetricDescriptor

The response received from the server.

CreateMetricDescriptor(CreateMetricDescriptorRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual MetricDescriptor CreateMetricDescriptor(CreateMetricDescriptorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Creates a new metric descriptor. The creation is executed asynchronously and callers may check the returned operation to track its progress. User-created metric descriptors define custom metrics.

Parameters
NameDescription
requestCreateMetricDescriptorRequest

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
MetricDescriptor

The response received from the server.

CreateMetricDescriptorAsync(CreateMetricDescriptorRequest, CallOptions)

public virtual AsyncUnaryCall<MetricDescriptor> CreateMetricDescriptorAsync(CreateMetricDescriptorRequest request, CallOptions options)

Creates a new metric descriptor. The creation is executed asynchronously and callers may check the returned operation to track its progress. User-created metric descriptors define custom metrics.

Parameters
NameDescription
requestCreateMetricDescriptorRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<MetricDescriptor>

The call object.

CreateMetricDescriptorAsync(CreateMetricDescriptorRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<MetricDescriptor> CreateMetricDescriptorAsync(CreateMetricDescriptorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Creates a new metric descriptor. The creation is executed asynchronously and callers may check the returned operation to track its progress. User-created metric descriptors define custom metrics.

Parameters
NameDescription
requestCreateMetricDescriptorRequest

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<MetricDescriptor>

The call object.

CreateServiceTimeSeries(CreateTimeSeriesRequest, CallOptions)

public virtual Empty CreateServiceTimeSeries(CreateTimeSeriesRequest request, CallOptions options)

Creates or adds data to one or more service time series. A service time series is a time series for a metric from a Google Cloud service. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response. This endpoint rejects writes to user-defined metrics. This method is only for use by Google Cloud services. Use [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries] instead.

Parameters
NameDescription
requestCreateTimeSeriesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

CreateServiceTimeSeries(CreateTimeSeriesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Empty CreateServiceTimeSeries(CreateTimeSeriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Creates or adds data to one or more service time series. A service time series is a time series for a metric from a Google Cloud service. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response. This endpoint rejects writes to user-defined metrics. This method is only for use by Google Cloud services. Use [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries] instead.

Parameters
NameDescription
requestCreateTimeSeriesRequest

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
Empty

The response received from the server.

CreateServiceTimeSeriesAsync(CreateTimeSeriesRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> CreateServiceTimeSeriesAsync(CreateTimeSeriesRequest request, CallOptions options)

Creates or adds data to one or more service time series. A service time series is a time series for a metric from a Google Cloud service. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response. This endpoint rejects writes to user-defined metrics. This method is only for use by Google Cloud services. Use [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries] instead.

Parameters
NameDescription
requestCreateTimeSeriesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

CreateServiceTimeSeriesAsync(CreateTimeSeriesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Empty> CreateServiceTimeSeriesAsync(CreateTimeSeriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Creates or adds data to one or more service time series. A service time series is a time series for a metric from a Google Cloud service. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response. This endpoint rejects writes to user-defined metrics. This method is only for use by Google Cloud services. Use [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries] instead.

Parameters
NameDescription
requestCreateTimeSeriesRequest

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<Empty>

The call object.

CreateTimeSeries(CreateTimeSeriesRequest, CallOptions)

public virtual Empty CreateTimeSeries(CreateTimeSeriesRequest request, CallOptions options)

Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response.

Parameters
NameDescription
requestCreateTimeSeriesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

CreateTimeSeries(CreateTimeSeriesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Empty CreateTimeSeries(CreateTimeSeriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response.

Parameters
NameDescription
requestCreateTimeSeriesRequest

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
Empty

The response received from the server.

CreateTimeSeriesAsync(CreateTimeSeriesRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> CreateTimeSeriesAsync(CreateTimeSeriesRequest request, CallOptions options)

Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response.

Parameters
NameDescription
requestCreateTimeSeriesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

CreateTimeSeriesAsync(CreateTimeSeriesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Empty> CreateTimeSeriesAsync(CreateTimeSeriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response.

Parameters
NameDescription
requestCreateTimeSeriesRequest

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<Empty>

The call object.

DeleteMetricDescriptor(DeleteMetricDescriptorRequest, CallOptions)

public virtual Empty DeleteMetricDescriptor(DeleteMetricDescriptorRequest request, CallOptions options)

Deletes a metric descriptor. Only user-created custom metrics can be deleted.

Parameters
NameDescription
requestDeleteMetricDescriptorRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteMetricDescriptor(DeleteMetricDescriptorRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Empty DeleteMetricDescriptor(DeleteMetricDescriptorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Deletes a metric descriptor. Only user-created custom metrics can be deleted.

Parameters
NameDescription
requestDeleteMetricDescriptorRequest

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
Empty

The response received from the server.

DeleteMetricDescriptorAsync(DeleteMetricDescriptorRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteMetricDescriptorAsync(DeleteMetricDescriptorRequest request, CallOptions options)

Deletes a metric descriptor. Only user-created custom metrics can be deleted.

Parameters
NameDescription
requestDeleteMetricDescriptorRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

DeleteMetricDescriptorAsync(DeleteMetricDescriptorRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteMetricDescriptorAsync(DeleteMetricDescriptorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Deletes a metric descriptor. Only user-created custom metrics can be deleted.

Parameters
NameDescription
requestDeleteMetricDescriptorRequest

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<Empty>

The call object.

GetMetricDescriptor(GetMetricDescriptorRequest, CallOptions)

public virtual MetricDescriptor GetMetricDescriptor(GetMetricDescriptorRequest request, CallOptions options)

Gets a single metric descriptor. This method does not require a Workspace.

Parameters
NameDescription
requestGetMetricDescriptorRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
MetricDescriptor

The response received from the server.

GetMetricDescriptor(GetMetricDescriptorRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual MetricDescriptor GetMetricDescriptor(GetMetricDescriptorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Gets a single metric descriptor. This method does not require a Workspace.

Parameters
NameDescription
requestGetMetricDescriptorRequest

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
MetricDescriptor

The response received from the server.

GetMetricDescriptorAsync(GetMetricDescriptorRequest, CallOptions)

public virtual AsyncUnaryCall<MetricDescriptor> GetMetricDescriptorAsync(GetMetricDescriptorRequest request, CallOptions options)

Gets a single metric descriptor. This method does not require a Workspace.

Parameters
NameDescription
requestGetMetricDescriptorRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<MetricDescriptor>

The call object.

GetMetricDescriptorAsync(GetMetricDescriptorRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<MetricDescriptor> GetMetricDescriptorAsync(GetMetricDescriptorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Gets a single metric descriptor. This method does not require a Workspace.

Parameters
NameDescription
requestGetMetricDescriptorRequest

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<MetricDescriptor>

The call object.

GetMonitoredResourceDescriptor(GetMonitoredResourceDescriptorRequest, CallOptions)

public virtual MonitoredResourceDescriptor GetMonitoredResourceDescriptor(GetMonitoredResourceDescriptorRequest request, CallOptions options)

Gets a single monitored resource descriptor. This method does not require a Workspace.

Parameters
NameDescription
requestGetMonitoredResourceDescriptorRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
MonitoredResourceDescriptor

The response received from the server.

GetMonitoredResourceDescriptor(GetMonitoredResourceDescriptorRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual MonitoredResourceDescriptor GetMonitoredResourceDescriptor(GetMonitoredResourceDescriptorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Gets a single monitored resource descriptor. This method does not require a Workspace.

Parameters
NameDescription
requestGetMonitoredResourceDescriptorRequest

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
MonitoredResourceDescriptor

The response received from the server.

GetMonitoredResourceDescriptorAsync(GetMonitoredResourceDescriptorRequest, CallOptions)

public virtual AsyncUnaryCall<MonitoredResourceDescriptor> GetMonitoredResourceDescriptorAsync(GetMonitoredResourceDescriptorRequest request, CallOptions options)

Gets a single monitored resource descriptor. This method does not require a Workspace.

Parameters
NameDescription
requestGetMonitoredResourceDescriptorRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<MonitoredResourceDescriptor>

The call object.

GetMonitoredResourceDescriptorAsync(GetMonitoredResourceDescriptorRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<MonitoredResourceDescriptor> GetMonitoredResourceDescriptorAsync(GetMonitoredResourceDescriptorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Gets a single monitored resource descriptor. This method does not require a Workspace.

Parameters
NameDescription
requestGetMonitoredResourceDescriptorRequest

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<MonitoredResourceDescriptor>

The call object.

ListMetricDescriptors(ListMetricDescriptorsRequest, CallOptions)

public virtual ListMetricDescriptorsResponse ListMetricDescriptors(ListMetricDescriptorsRequest request, CallOptions options)

Lists metric descriptors that match a filter. This method does not require a Workspace.

Parameters
NameDescription
requestListMetricDescriptorsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListMetricDescriptorsResponse

The response received from the server.

ListMetricDescriptors(ListMetricDescriptorsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ListMetricDescriptorsResponse ListMetricDescriptors(ListMetricDescriptorsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Lists metric descriptors that match a filter. This method does not require a Workspace.

Parameters
NameDescription
requestListMetricDescriptorsRequest

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
ListMetricDescriptorsResponse

The response received from the server.

ListMetricDescriptorsAsync(ListMetricDescriptorsRequest, CallOptions)

public virtual AsyncUnaryCall<ListMetricDescriptorsResponse> ListMetricDescriptorsAsync(ListMetricDescriptorsRequest request, CallOptions options)

Lists metric descriptors that match a filter. This method does not require a Workspace.

Parameters
NameDescription
requestListMetricDescriptorsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ListMetricDescriptorsResponse>

The call object.

ListMetricDescriptorsAsync(ListMetricDescriptorsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ListMetricDescriptorsResponse> ListMetricDescriptorsAsync(ListMetricDescriptorsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Lists metric descriptors that match a filter. This method does not require a Workspace.

Parameters
NameDescription
requestListMetricDescriptorsRequest

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<ListMetricDescriptorsResponse>

The call object.

ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest, CallOptions)

public virtual ListMonitoredResourceDescriptorsResponse ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request, CallOptions options)

Lists monitored resource descriptors that match a filter. This method does not require a Workspace.

Parameters
NameDescription
requestListMonitoredResourceDescriptorsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListMonitoredResourceDescriptorsResponse

The response received from the server.

ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ListMonitoredResourceDescriptorsResponse ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Lists monitored resource descriptors that match a filter. This method does not require a Workspace.

Parameters
NameDescription
requestListMonitoredResourceDescriptorsRequest

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
ListMonitoredResourceDescriptorsResponse

The response received from the server.

ListMonitoredResourceDescriptorsAsync(ListMonitoredResourceDescriptorsRequest, CallOptions)

public virtual AsyncUnaryCall<ListMonitoredResourceDescriptorsResponse> ListMonitoredResourceDescriptorsAsync(ListMonitoredResourceDescriptorsRequest request, CallOptions options)

Lists monitored resource descriptors that match a filter. This method does not require a Workspace.

Parameters
NameDescription
requestListMonitoredResourceDescriptorsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ListMonitoredResourceDescriptorsResponse>

The call object.

ListMonitoredResourceDescriptorsAsync(ListMonitoredResourceDescriptorsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ListMonitoredResourceDescriptorsResponse> ListMonitoredResourceDescriptorsAsync(ListMonitoredResourceDescriptorsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Lists monitored resource descriptors that match a filter. This method does not require a Workspace.

Parameters
NameDescription
requestListMonitoredResourceDescriptorsRequest

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<ListMonitoredResourceDescriptorsResponse>

The call object.

ListTimeSeries(ListTimeSeriesRequest, CallOptions)

public virtual ListTimeSeriesResponse ListTimeSeries(ListTimeSeriesRequest request, CallOptions options)

Lists time series that match a filter. This method does not require a Workspace.

Parameters
NameDescription
requestListTimeSeriesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListTimeSeriesResponse

The response received from the server.

ListTimeSeries(ListTimeSeriesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ListTimeSeriesResponse ListTimeSeries(ListTimeSeriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Lists time series that match a filter. This method does not require a Workspace.

Parameters
NameDescription
requestListTimeSeriesRequest

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
ListTimeSeriesResponse

The response received from the server.

ListTimeSeriesAsync(ListTimeSeriesRequest, CallOptions)

public virtual AsyncUnaryCall<ListTimeSeriesResponse> ListTimeSeriesAsync(ListTimeSeriesRequest request, CallOptions options)

Lists time series that match a filter. This method does not require a Workspace.

Parameters
NameDescription
requestListTimeSeriesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ListTimeSeriesResponse>

The call object.

ListTimeSeriesAsync(ListTimeSeriesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ListTimeSeriesResponse> ListTimeSeriesAsync(ListTimeSeriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Lists time series that match a filter. This method does not require a Workspace.

Parameters
NameDescription
requestListTimeSeriesRequest

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<ListTimeSeriesResponse>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override MetricService.MetricServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
MetricService.MetricServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Monitoring.V3.MetricService.MetricServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)