Google Cloud Logging v2 API - Class UpdateLogMetricRequest (4.4.0)

public sealed class UpdateLogMetricRequest : IMessage<UpdateLogMetricRequest>, IEquatable<UpdateLogMetricRequest>, IDeepCloneable<UpdateLogMetricRequest>, IBufferMessage, IMessage

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

The parameters to UpdateLogMetric.

Inheritance

object > UpdateLogMetricRequest

Namespace

Google.Cloud.Logging.V2

Assembly

Google.Cloud.Logging.V2.dll

Constructors

UpdateLogMetricRequest()

public UpdateLogMetricRequest()

UpdateLogMetricRequest(UpdateLogMetricRequest)

public UpdateLogMetricRequest(UpdateLogMetricRequest other)
Parameter
Name Description
other UpdateLogMetricRequest

Properties

Metric

public LogMetric Metric { get; set; }

Required. The updated metric.

Property Value
Type Description
LogMetric

MetricName

public string MetricName { get; set; }

Required. The resource name of the metric to update:

"projects/[PROJECT_ID]/metrics/[METRIC_ID]"

The updated metric must be provided in the request and it's name field must be the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created.

Property Value
Type Description
string

MetricNameAsLogMetricName

public LogMetricName MetricNameAsLogMetricName { get; set; }

LogMetricName-typed view over the MetricName resource name property.

Property Value
Type Description
LogMetricName