Google Cloud Logging v2 API - Class MetricsServiceV2ClientImpl (4.1.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
NameDescription
grpcClientMetricsServiceV2MetricsServiceV2Client

The underlying gRPC client.

settingsMetricsServiceV2Settings

The base MetricsServiceV2Settings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override MetricsServiceV2.MetricsServiceV2Client GrpcClient { get; }

The underlying gRPC MetricsServiceV2 client

Property Value
TypeDescription
MetricsServiceV2MetricsServiceV2Client
Overrides

Methods

CreateLogMetric(CreateLogMetricRequest, CallSettings)

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

Creates a logs-based metric.

Parameters
NameDescription
requestCreateLogMetricRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogMetric

The RPC response.

Overrides

CreateLogMetricAsync(CreateLogMetricRequest, CallSettings)

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

Creates a logs-based metric.

Parameters
NameDescription
requestCreateLogMetricRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteLogMetricRequest

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

callSettingsCallSettings

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
NameDescription
requestDeleteLogMetricRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetLogMetricRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogMetric

The RPC response.

Overrides

GetLogMetricAsync(GetLogMetricRequest, CallSettings)

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

Gets a logs-based metric.

Parameters
NameDescription
requestGetLogMetricRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListLogMetricsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListLogMetricsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateLogMetricRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateLogMetricRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskLogMetric

A Task containing the RPC response.

Overrides