Module Google::Cloud::Logging::V2::MetricsService::Paths (v0.6.0)

Path helper methods for the MetricsService API.

Methods

#log_metric_path

def log_metric_path(project:, metric:) -> ::String

Create a fully-qualified LogMetric resource string.

The resource will be in the following format:

projects/{project}/metrics/{metric}

Parameters
  • project (String)
  • metric (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#project_path

def project_path(project:) -> ::String

Create a fully-qualified Project resource string.

The resource will be in the following format:

projects/{project}

Parameter
  • project (String)
Returns
  • (::String)