Reference documentation and code samples for the Cloud Logging V2 API class Google::Cloud::Logging::V2::UpdateLogMetricRequest.
The parameters to UpdateLogMetric.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#metric
def metric() -> ::Google::Cloud::Logging::V2::LogMetric
- (::Google::Cloud::Logging::V2::LogMetric) — Required. The updated metric.
#metric=
def metric=(value) -> ::Google::Cloud::Logging::V2::LogMetric
- value (::Google::Cloud::Logging::V2::LogMetric) — Required. The updated metric.
- (::Google::Cloud::Logging::V2::LogMetric) — Required. The updated metric.
#metric_name
def metric_name() -> ::String
-
(::String) — 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.
#metric_name=
def metric_name=(value) -> ::String
-
value (::String) — 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.
-
(::String) — 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.