Class MetricsServiceV2ClientImpl (3.3.0)

public sealed class MetricsServiceV2ClientImpl : MetricsServiceV2Client

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(MetricsServiceV2.MetricsServiceV2Client, MetricsServiceV2Settings)

public MetricsServiceV2ClientImpl(MetricsServiceV2.MetricsServiceV2Client grpcClient, MetricsServiceV2Settings settings)

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

Parameters
NameDescription
grpcClientMetricsServiceV2.MetricsServiceV2Client

The underlying gRPC client.

settingsMetricsServiceV2Settings

The base MetricsServiceV2Settings used within this client.

Properties

GrpcClient

public override MetricsServiceV2.MetricsServiceV2Client GrpcClient { get; }

The underlying gRPC MetricsServiceV2 client

Property Value
TypeDescription
MetricsServiceV2.MetricsServiceV2Client
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
Task<LogMetric>

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

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
PagedEnumerable<ListLogMetricsResponse, LogMetric>

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
PagedAsyncEnumerable<ListLogMetricsResponse, LogMetric>

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

A Task containing the RPC response.

Overrides