Google Cloud Monitoring v3 API - Class MetricService.MetricServiceBase (3.3.0)

[BindServiceMethod(typeof(MetricService), "BindService")]
public abstract class MetricService.MetricServiceBase

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

Base class for server-side implementations of MetricService

Inheritance

object > MetricService.MetricServiceBase

Namespace

Google.Cloud.Monitoring.V3

Assembly

Google.Cloud.Monitoring.V3.dll

Methods

CreateMetricDescriptor(CreateMetricDescriptorRequest, ServerCallContext)

public virtual Task<MetricDescriptor> CreateMetricDescriptor(CreateMetricDescriptorRequest request, ServerCallContext context)

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 received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskMetricDescriptor

The response to send back to the client (wrapped by a task).

CreateServiceTimeSeries(CreateTimeSeriesRequest, ServerCallContext)

public virtual Task<Empty> CreateServiceTimeSeries(CreateTimeSeriesRequest request, ServerCallContext context)

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 received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

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
NameDescription
requestCreateTimeSeriesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

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
NameDescription
requestDeleteMetricDescriptorRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

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
NameDescription
requestGetMetricDescriptorRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskMetricDescriptor

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
NameDescription
requestGetMonitoredResourceDescriptorRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskMonitoredResourceDescriptor

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
NameDescription
requestListMetricDescriptorsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListMetricDescriptorsResponse

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
NameDescription
requestListMonitoredResourceDescriptorsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListMonitoredResourceDescriptorsResponse

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
NameDescription
requestListTimeSeriesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListTimeSeriesResponse

The response to send back to the client (wrapped by a task).