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, ILogger)
public MetricServiceClientImpl(MetricService.MetricServiceClient grpcClient, MetricServiceSettings settings, ILogger logger)
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. |
logger | ILogger Optional ILogger to use 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. The creation is executed asynchronously and callers may check the returned operation to track its progress. 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. The creation is executed asynchronously and callers may check the returned operation to track its progress. 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. |
CreateServiceTimeSeries(CreateTimeSeriesRequest, CallSettings)
public override void CreateServiceTimeSeries(CreateTimeSeriesRequest request, CallSettings callSettings = null)
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 | |
---|---|
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. |
CreateServiceTimeSeriesAsync(CreateTimeSeriesRequest, CallSettings)
public override Task CreateServiceTimeSeriesAsync(CreateTimeSeriesRequest request, CallSettings callSettings = null)
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 | |
---|---|
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. |
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. |