public sealed class MetricsServiceV2ClientImpl : MetricsServiceV2Client
MetricsServiceV2 client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Logging.V2Assembly
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 | |
---|---|
Name | Description |
grpcClient | MetricsServiceV2.MetricsServiceV2Client The underlying gRPC client. |
settings | MetricsServiceV2Settings The base MetricsServiceV2Settings used within this client. |
Properties
GrpcClient
public override MetricsServiceV2.MetricsServiceV2Client GrpcClient { get; }
The underlying gRPC MetricsServiceV2 client
Property Value | |
---|---|
Type | Description |
MetricsServiceV2.MetricsServiceV2Client |
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. |
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 |
Task<LogMetric> | A Task containing the RPC response. |
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. |
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. |
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. |
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 |
Task<LogMetric> | A Task containing the RPC response. |
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 |
PagedEnumerable<ListLogMetricsResponse, LogMetric> | A pageable sequence of LogMetric resources. |
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 |
PagedAsyncEnumerable<ListLogMetricsResponse, LogMetric> | A pageable asynchronous sequence of LogMetric resources. |
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. |
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 |
Task<LogMetric> | A Task containing the RPC response. |