module Google::Cloud::Logging::V2::MetricsService::Paths
Path helper methods for the MetricsService
API.
Public Instance Methods
log_metric_path(project:, metric: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified LogMetric
resource string.
The resource will be in the following format:
`projects/{project}/metrics/{metric}`
@param project [String] @param metric [String]
@return [::String]
# File lib/google/cloud/logging/v2/metrics_service/paths.rb, line 38 def log_metric_path project:, metric: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/metrics/#{metric}" end
project_path(project: "projects/
click to toggle source
Create a fully-qualified Project resource string.
The resource will be in the following format:
`projects/{project}`
@param project [String]
@return [::String]
# File lib/google/cloud/logging/v2/metrics_service/paths.rb, line 54 def project_path project: "projects/#{project}" end