Google Cloud Logging v2 API - Class MetricsServiceV2.MetricsServiceV2Base (4.2.0)

[BindServiceMethod(typeof(MetricsServiceV2), "BindService")]
public abstract class MetricsServiceV2.MetricsServiceV2Base

Reference documentation and code samples for the Google Cloud Logging v2 API class MetricsServiceV2.MetricsServiceV2Base.

Base class for server-side implementations of MetricsServiceV2

Inheritance

object > MetricsServiceV2.MetricsServiceV2Base

Namespace

Google.Cloud.Logging.V2

Assembly

Google.Cloud.Logging.V2.dll

Methods

CreateLogMetric(CreateLogMetricRequest, ServerCallContext)

public virtual Task<LogMetric> CreateLogMetric(CreateLogMetricRequest request, ServerCallContext context)

Creates a logs-based metric.

Parameters
NameDescription
requestCreateLogMetricRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskLogMetric

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

DeleteLogMetric(DeleteLogMetricRequest, ServerCallContext)

public virtual Task<Empty> DeleteLogMetric(DeleteLogMetricRequest request, ServerCallContext context)

Deletes a logs-based metric.

Parameters
NameDescription
requestDeleteLogMetricRequest

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).

GetLogMetric(GetLogMetricRequest, ServerCallContext)

public virtual Task<LogMetric> GetLogMetric(GetLogMetricRequest request, ServerCallContext context)

Gets a logs-based metric.

Parameters
NameDescription
requestGetLogMetricRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskLogMetric

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

ListLogMetrics(ListLogMetricsRequest, ServerCallContext)

public virtual Task<ListLogMetricsResponse> ListLogMetrics(ListLogMetricsRequest request, ServerCallContext context)

Lists logs-based metrics.

Parameters
NameDescription
requestListLogMetricsRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskListLogMetricsResponse

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

UpdateLogMetric(UpdateLogMetricRequest, ServerCallContext)

public virtual Task<LogMetric> UpdateLogMetric(UpdateLogMetricRequest request, ServerCallContext context)

Creates or updates a logs-based metric.

Parameters
NameDescription
requestUpdateLogMetricRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskLogMetric

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