Class MetricServiceClientImpl (2.3.0)

public sealed class MetricServiceClientImpl : MetricServiceClient

MetricService client wrapper implementation, for convenient use.

Inheritance

Object > MetricServiceClient > MetricServiceClientImpl

Namespace

Google.Cloud.Monitoring.V3

Assembly

Google.Cloud.Monitoring.V3.dll

Remarks

Manages metric descriptors, monitored resource descriptors, and time series data.

Constructors

MetricServiceClientImpl(MetricService.MetricServiceClient, MetricServiceSettings)

public MetricServiceClientImpl(MetricService.MetricServiceClient grpcClient, MetricServiceSettings settings)

Constructs a client wrapper for the MetricService service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientMetricService.MetricServiceClient

The underlying gRPC client.

settingsMetricServiceSettings

The base MetricServiceSettings used within this client.

Properties

GrpcClient

public override MetricService.MetricServiceClient GrpcClient { get; }

The underlying gRPC MetricService client

Property Value
TypeDescription
MetricService.MetricServiceClient
Overrides

Methods

CreateMetricDescriptor(CreateMetricDescriptorRequest, CallSettings)

public override MetricDescriptor CreateMetricDescriptor(CreateMetricDescriptorRequest request, CallSettings callSettings = null)

Creates a new metric descriptor. User-created metric descriptors define custom metrics.

Parameters
NameDescription
requestCreateMetricDescriptorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
MetricDescriptor

The RPC response.

Overrides

CreateMetricDescriptorAsync(CreateMetricDescriptorRequest, CallSettings)

public override Task<MetricDescriptor> CreateMetricDescriptorAsync(CreateMetricDescriptorRequest request, CallSettings callSettings = null)

Creates a new metric descriptor. User-created metric descriptors define custom metrics.

Parameters
NameDescription
requestCreateMetricDescriptorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<MetricDescriptor>

A Task containing the RPC response.

Overrides

CreateTimeSeries(CreateTimeSeriesRequest, CallSettings)

public override void CreateTimeSeries(CreateTimeSeriesRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

CreateTimeSeriesAsync(CreateTimeSeriesRequest, CallSettings)

public override Task CreateTimeSeriesAsync(CreateTimeSeriesRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Overrides

DeleteMetricDescriptor(DeleteMetricDescriptorRequest, CallSettings)

public override void DeleteMetricDescriptor(DeleteMetricDescriptorRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestDeleteMetricDescriptorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteMetricDescriptorAsync(DeleteMetricDescriptorRequest, CallSettings)

public override Task DeleteMetricDescriptorAsync(DeleteMetricDescriptorRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestDeleteMetricDescriptorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Overrides

GetMetricDescriptor(GetMetricDescriptorRequest, CallSettings)

public override MetricDescriptor GetMetricDescriptor(GetMetricDescriptorRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestGetMetricDescriptorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
MetricDescriptor

The RPC response.

Overrides

GetMetricDescriptorAsync(GetMetricDescriptorRequest, CallSettings)

public override Task<MetricDescriptor> GetMetricDescriptorAsync(GetMetricDescriptorRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestGetMetricDescriptorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<MetricDescriptor>

A Task containing the RPC response.

Overrides

GetMonitoredResourceDescriptor(GetMonitoredResourceDescriptorRequest, CallSettings)

public override MonitoredResourceDescriptor GetMonitoredResourceDescriptor(GetMonitoredResourceDescriptorRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestGetMonitoredResourceDescriptorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
MonitoredResourceDescriptor

The RPC response.

Overrides

GetMonitoredResourceDescriptorAsync(GetMonitoredResourceDescriptorRequest, CallSettings)

public override Task<MonitoredResourceDescriptor> GetMonitoredResourceDescriptorAsync(GetMonitoredResourceDescriptorRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestGetMonitoredResourceDescriptorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<MonitoredResourceDescriptor>

A Task containing the RPC response.

Overrides

ListMetricDescriptors(ListMetricDescriptorsRequest, CallSettings)

public override PagedEnumerable<ListMetricDescriptorsResponse, MetricDescriptor> ListMetricDescriptors(ListMetricDescriptorsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListMetricDescriptorsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListMetricDescriptorsResponse, MetricDescriptor>

A pageable sequence of MetricDescriptor resources.

Overrides

ListMetricDescriptorsAsync(ListMetricDescriptorsRequest, CallSettings)

public override PagedAsyncEnumerable<ListMetricDescriptorsResponse, MetricDescriptor> ListMetricDescriptorsAsync(ListMetricDescriptorsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListMetricDescriptorsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListMetricDescriptorsResponse, MetricDescriptor>

A pageable asynchronous sequence of MetricDescriptor resources.

Overrides

ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest, CallSettings)

public override PagedEnumerable<ListMonitoredResourceDescriptorsResponse, MonitoredResourceDescriptor> ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListMonitoredResourceDescriptorsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListMonitoredResourceDescriptorsResponse, MonitoredResourceDescriptor>

A pageable sequence of MonitoredResourceDescriptor resources.

Overrides

ListMonitoredResourceDescriptorsAsync(ListMonitoredResourceDescriptorsRequest, CallSettings)

public override PagedAsyncEnumerable<ListMonitoredResourceDescriptorsResponse, MonitoredResourceDescriptor> ListMonitoredResourceDescriptorsAsync(ListMonitoredResourceDescriptorsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListMonitoredResourceDescriptorsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListMonitoredResourceDescriptorsResponse, MonitoredResourceDescriptor>

A pageable asynchronous sequence of MonitoredResourceDescriptor resources.

Overrides

ListTimeSeries(ListTimeSeriesRequest, CallSettings)

public override PagedEnumerable<ListTimeSeriesResponse, TimeSeries> ListTimeSeries(ListTimeSeriesRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListTimeSeriesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListTimeSeriesResponse, TimeSeries>

A pageable sequence of TimeSeries resources.

Overrides

ListTimeSeriesAsync(ListTimeSeriesRequest, CallSettings)

public override PagedAsyncEnumerable<ListTimeSeriesResponse, TimeSeries> ListTimeSeriesAsync(ListTimeSeriesRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListTimeSeriesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListTimeSeriesResponse, TimeSeries>

A pageable asynchronous sequence of TimeSeries resources.

Overrides