public sealed class MetricsServiceV2ClientImpl : MetricsServiceV2ClientMetricsServiceV2 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, 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 | 
        MetricsServiceV2.MetricsServiceV2ClientThe underlying gRPC client.  | 
      
settings | 
        MetricsServiceV2SettingsThe base MetricsServiceV2Settings used within this client.  | 
      
logger | 
        ILoggerOptional ILogger to use 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 | 
        CreateLogMetricRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf 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 | 
        CreateLogMetricRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf 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 | 
        DeleteLogMetricRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf 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 | 
        DeleteLogMetricRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf 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 | 
        GetLogMetricRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf 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 | 
        GetLogMetricRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf 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 | 
        ListLogMetricsRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf 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 | 
        ListLogMetricsRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf 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 | 
        UpdateLogMetricRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf 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 | 
        UpdateLogMetricRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Task<LogMetric> | 
        A Task containing the RPC response.  |