[BindServiceMethod(typeof(MetricsServiceV2), "BindService")]
public abstract class MetricsServiceV2Base
Base class for server-side implementations of MetricsServiceV2
Inheritance
System.Object > MetricsServiceV2.MetricsServiceV2BaseNamespace
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 | CreateLogMetricRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | DeleteLogMetricRequest 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). |
GetLogMetric(GetLogMetricRequest, ServerCallContext)
public virtual Task<LogMetric> GetLogMetric(GetLogMetricRequest request, ServerCallContext context)
Gets a logs-based metric.
Parameters | |
---|---|
Name | Description |
request | GetLogMetricRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ListLogMetricsRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | UpdateLogMetricRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<LogMetric> | The response to send back to the client (wrapped by a task). |