Google Cloud Logging v2 API - Class MetricsServiceV2ClientImpl (4.4.0)

public sealed class MetricsServiceV2ClientImpl : MetricsServiceV2Client

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

MetricsServiceV2 client wrapper implementation, for convenient use.

Inheritance

object > MetricsServiceV2Client > MetricsServiceV2ClientImpl

Namespace

Google.Cloud.Logging.V2

Assembly

Google.Cloud.Logging.V2.dll

Remarks

Service for configuring logs-based metrics.

Constructors

MetricsServiceV2ClientImpl(MetricsServiceV2Client, MetricsServiceV2Settings, ILogger)

public MetricsServiceV2ClientImpl(MetricsServiceV2.MetricsServiceV2Client grpcClient, MetricsServiceV2Settings settings, ILogger logger)

Constructs a client wrapper for the MetricsServiceV2 service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient MetricsServiceV2MetricsServiceV2Client

The underlying gRPC client.

settings MetricsServiceV2Settings

The base MetricsServiceV2Settings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override MetricsServiceV2.MetricsServiceV2Client GrpcClient { get; }

The underlying gRPC MetricsServiceV2 client

Property Value
Type Description
MetricsServiceV2MetricsServiceV2Client
Overrides

Methods

CreateLogMetric(CreateLogMetricRequest, CallSettings)

public override LogMetric CreateLogMetric(CreateLogMetricRequest request, CallSettings callSettings = null)

Creates a logs-based metric.

Parameters
Name Description
request CreateLogMetricRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LogMetric

The RPC response.

Overrides

CreateLogMetricAsync(CreateLogMetricRequest, CallSettings)

public override Task<LogMetric> CreateLogMetricAsync(CreateLogMetricRequest request, CallSettings callSettings = null)

Creates a logs-based metric.

Parameters
Name Description
request CreateLogMetricRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogMetric

A Task containing the RPC response.

Overrides

DeleteLogMetric(DeleteLogMetricRequest, CallSettings)

public override void DeleteLogMetric(DeleteLogMetricRequest request, CallSettings callSettings = null)

Deletes a logs-based metric.

Parameters
Name Description
request DeleteLogMetricRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteLogMetricAsync(DeleteLogMetricRequest, CallSettings)

public override Task DeleteLogMetricAsync(DeleteLogMetricRequest request, CallSettings callSettings = null)

Deletes a logs-based metric.

Parameters
Name Description
request DeleteLogMetricRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Overrides

GetLogMetric(GetLogMetricRequest, CallSettings)

public override LogMetric GetLogMetric(GetLogMetricRequest request, CallSettings callSettings = null)

Gets a logs-based metric.

Parameters
Name Description
request GetLogMetricRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LogMetric

The RPC response.

Overrides

GetLogMetricAsync(GetLogMetricRequest, CallSettings)

public override Task<LogMetric> GetLogMetricAsync(GetLogMetricRequest request, CallSettings callSettings = null)

Gets a logs-based metric.

Parameters
Name Description
request GetLogMetricRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogMetric

A Task containing the RPC response.

Overrides

ListLogMetrics(ListLogMetricsRequest, CallSettings)

public override PagedEnumerable<ListLogMetricsResponse, LogMetric> ListLogMetrics(ListLogMetricsRequest request, CallSettings callSettings = null)

Lists logs-based metrics.

Parameters
Name Description
request ListLogMetricsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListLogMetricsResponseLogMetric

A pageable sequence of LogMetric resources.

Overrides

ListLogMetricsAsync(ListLogMetricsRequest, CallSettings)

public override PagedAsyncEnumerable<ListLogMetricsResponse, LogMetric> ListLogMetricsAsync(ListLogMetricsRequest request, CallSettings callSettings = null)

Lists logs-based metrics.

Parameters
Name Description
request ListLogMetricsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListLogMetricsResponseLogMetric

A pageable asynchronous sequence of LogMetric resources.

Overrides

UpdateLogMetric(UpdateLogMetricRequest, CallSettings)

public override LogMetric UpdateLogMetric(UpdateLogMetricRequest request, CallSettings callSettings = null)

Creates or updates a logs-based metric.

Parameters
Name Description
request UpdateLogMetricRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LogMetric

The RPC response.

Overrides

UpdateLogMetricAsync(UpdateLogMetricRequest, CallSettings)

public override Task<LogMetric> UpdateLogMetricAsync(UpdateLogMetricRequest request, CallSettings callSettings = null)

Creates or updates a logs-based metric.

Parameters
Name Description
request UpdateLogMetricRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogMetric

A Task containing the RPC response.

Overrides