[BindServiceMethod(typeof(MetricService), "BindService")]
public abstract class MetricServiceBase
Base class for server-side implementations of MetricService
Namespace
Google.Cloud.Monitoring.V3Assembly
Google.Cloud.Monitoring.V3.dll
Methods
CreateMetricDescriptor(CreateMetricDescriptorRequest, ServerCallContext)
public virtual Task<MetricDescriptor> CreateMetricDescriptor(CreateMetricDescriptorRequest request, ServerCallContext context)
Creates a new metric descriptor. User-created metric descriptors define custom metrics.
Parameters | |
---|---|
Name | Description |
request | CreateMetricDescriptorRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<MetricDescriptor> | The response to send back to the client (wrapped by a task). |
CreateTimeSeries(CreateTimeSeriesRequest, ServerCallContext)
public virtual Task<Empty> CreateTimeSeries(CreateTimeSeriesRequest request, ServerCallContext context)
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 received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Empty> | The response to send back to the client (wrapped by a task). |
DeleteMetricDescriptor(DeleteMetricDescriptorRequest, ServerCallContext)
public virtual Task<Empty> DeleteMetricDescriptor(DeleteMetricDescriptorRequest request, ServerCallContext context)
Deletes a metric descriptor. Only user-created custom metrics can be deleted.
Parameters | |
---|---|
Name | Description |
request | DeleteMetricDescriptorRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Empty> | The response to send back to the client (wrapped by a task). |
GetMetricDescriptor(GetMetricDescriptorRequest, ServerCallContext)
public virtual Task<MetricDescriptor> GetMetricDescriptor(GetMetricDescriptorRequest request, ServerCallContext context)
Gets a single metric descriptor. This method does not require a Workspace.
Parameters | |
---|---|
Name | Description |
request | GetMetricDescriptorRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<MetricDescriptor> | The response to send back to the client (wrapped by a task). |
GetMonitoredResourceDescriptor(GetMonitoredResourceDescriptorRequest, ServerCallContext)
public virtual Task<MonitoredResourceDescriptor> GetMonitoredResourceDescriptor(GetMonitoredResourceDescriptorRequest request, ServerCallContext context)
Gets a single monitored resource descriptor. This method does not require a Workspace.
Parameters | |
---|---|
Name | Description |
request | GetMonitoredResourceDescriptorRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<MonitoredResourceDescriptor> | The response to send back to the client (wrapped by a task). |
ListMetricDescriptors(ListMetricDescriptorsRequest, ServerCallContext)
public virtual Task<ListMetricDescriptorsResponse> ListMetricDescriptors(ListMetricDescriptorsRequest request, ServerCallContext context)
Lists metric descriptors that match a filter. This method does not require a Workspace.
Parameters | |
---|---|
Name | Description |
request | ListMetricDescriptorsRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<ListMetricDescriptorsResponse> | The response to send back to the client (wrapped by a task). |
ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest, ServerCallContext)
public virtual Task<ListMonitoredResourceDescriptorsResponse> ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request, ServerCallContext context)
Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
Parameters | |
---|---|
Name | Description |
request | ListMonitoredResourceDescriptorsRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<ListMonitoredResourceDescriptorsResponse> | The response to send back to the client (wrapped by a task). |
ListTimeSeries(ListTimeSeriesRequest, ServerCallContext)
public virtual Task<ListTimeSeriesResponse> ListTimeSeries(ListTimeSeriesRequest request, ServerCallContext context)
Lists time series that match a filter. This method does not require a Workspace.
Parameters | |
---|---|
Name | Description |
request | ListTimeSeriesRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<ListTimeSeriesResponse> | The response to send back to the client (wrapped by a task). |