[BindServiceMethod(typeof(MetricsServiceV2), "BindService")]
public abstract class MetricsServiceV2.MetricsServiceV2BaseReference documentation and code samples for the Google Cloud Logging v2 API class MetricsServiceV2.MetricsServiceV2Base.
Base class for server-side implementations of MetricsServiceV2
Namespace
Google.Cloud.Logging.V2Assembly
Google.Cloud.Logging.V2.dll
Methods
CreateLogMetric(CreateLogMetricRequest, ServerCallContext)
public virtual Task<LogMetric> CreateLogMetric(CreateLogMetricRequest request, ServerCallContext context)Creates a logs-based metric.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateLogMetricRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
DeleteLogMetricRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
GetLogMetricRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListLogMetricsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
UpdateLogMetricRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskLogMetric |
The response to send back to the client (wrapped by a task). |