Class MetricsServiceV2.MetricsServiceV2Base (4.0.0)

[BindServiceMethod(typeof(MetricsServiceV2), "BindService")]
public abstract class 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
Task<LogMetric>

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
Task<Empty>

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
Task<LogMetric>

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
Task<ListLogMetricsResponse>

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
Task<LogMetric>

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