Cloud Logging V2 API - Class Google::Cloud::Logging::V2::UpdateLogMetricRequest (v1.1.0)

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
Returns

#metric=

def metric=(value) -> ::Google::Cloud::Logging::V2::LogMetric
Parameter
Returns

#metric_name

def metric_name() -> ::String
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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.