Class: Google::Cloud::Logging::V2::UpdateLogMetricRequest
- Inherits:
-
Object
- Object
- Google::Cloud::Logging::V2::UpdateLogMetricRequest
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/logging/v2/logging_metrics.rb
Overview
The parameters to UpdateLogMetric.
Instance Attribute Summary collapse
-
#metric ⇒ ::Google::Cloud::Logging::V2::LogMetric
Required.
-
#metric_name ⇒ ::String
Required.
Instance Attribute Details
#metric ⇒ ::Google::Cloud::Logging::V2::LogMetric
Returns Required. The updated metric.
255 256 257 258 |
# File 'proto_docs/google/logging/v2/logging_metrics.rb', line 255 class UpdateLogMetricRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#metric_name ⇒ ::String
Returns 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.
255 256 257 258 |
# File 'proto_docs/google/logging/v2/logging_metrics.rb', line 255 class UpdateLogMetricRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |