Class UpdateLogMetricRequest (4.0.0)

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

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

Properties

Metric

public LogMetric Metric { get; set; }

Required. The updated metric.

Property Value
TypeDescription
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
TypeDescription
String

MetricNameAsLogMetricName

public LogMetricName MetricNameAsLogMetricName { get; set; }

LogMetricName-typed view over the MetricName resource name property.

Property Value
TypeDescription
LogMetricName