public sealed class MetricServiceClientImpl : MetricServiceClient
MetricService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Monitoring.V3Assembly
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 | |
---|---|
Name | Description |
grpcClient | MetricService.MetricServiceClient The underlying gRPC client. |
settings | MetricServiceSettings The base MetricServiceSettings used within this client. |
Properties
GrpcClient
public override MetricService.MetricServiceClient GrpcClient { get; }
The underlying gRPC MetricService client
Property Value | |
---|---|
Type | Description |
MetricService.MetricServiceClient |
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 | |
---|---|
Name | Description |
request | CreateMetricDescriptorRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MetricDescriptor | The RPC response. |
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 | |
---|---|
Name | Description |
request | CreateMetricDescriptorRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<MetricDescriptor> | A Task containing the RPC response. |
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 | |
---|---|
Name | Description |
request | CreateTimeSeriesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
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 | |
---|---|
Name | Description |
request | CreateTimeSeriesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
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 | |
---|---|
Name | Description |
request | DeleteMetricDescriptorRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
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 | |
---|---|
Name | Description |
request | DeleteMetricDescriptorRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
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 | |
---|---|
Name | Description |
request | GetMetricDescriptorRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MetricDescriptor | The RPC response. |
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 | |
---|---|
Name | Description |
request | GetMetricDescriptorRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<MetricDescriptor> | A Task containing the RPC response. |
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 | |
---|---|
Name | Description |
request | GetMonitoredResourceDescriptorRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MonitoredResourceDescriptor | The RPC response. |
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 | |
---|---|
Name | Description |
request | GetMonitoredResourceDescriptorRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<MonitoredResourceDescriptor> | A Task containing the RPC response. |
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 | |
---|---|
Name | Description |
request | ListMetricDescriptorsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListMetricDescriptorsResponse, MetricDescriptor> | A pageable sequence of MetricDescriptor resources. |
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 | |
---|---|
Name | Description |
request | ListMetricDescriptorsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListMetricDescriptorsResponse, MetricDescriptor> | A pageable asynchronous sequence of MetricDescriptor resources. |
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 | |
---|---|
Name | Description |
request | ListMonitoredResourceDescriptorsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListMonitoredResourceDescriptorsResponse, MonitoredResourceDescriptor> | A pageable sequence of MonitoredResourceDescriptor resources. |
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 | |
---|---|
Name | Description |
request | ListMonitoredResourceDescriptorsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListMonitoredResourceDescriptorsResponse, MonitoredResourceDescriptor> | A pageable asynchronous sequence of MonitoredResourceDescriptor resources. |
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 | |
---|---|
Name | Description |
request | ListTimeSeriesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListTimeSeriesResponse, TimeSeries> | A pageable sequence of TimeSeries resources. |
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 | |
---|---|
Name | Description |
request | ListTimeSeriesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListTimeSeriesResponse, TimeSeries> | A pageable asynchronous sequence of TimeSeries resources. |