Cloud Monitoring V3 API - Module Google::Cloud::Monitoring::V3::MetricService::Paths (v0.10.0)

Reference documentation and code samples for the Cloud Monitoring V3 API module Google::Cloud::Monitoring::V3::MetricService::Paths.

Path helper methods for the MetricService API.

Methods

#folder_path

def folder_path(folder:) -> ::String

Create a fully-qualified Folder resource string.

The resource will be in the following format:

folders/{folder}

Parameter
  • folder (String)
Returns
  • (::String)

#metric_descriptor_path

def metric_descriptor_path(project:, metric_descriptor:) -> ::String
def metric_descriptor_path(organization:, metric_descriptor:) -> ::String
def metric_descriptor_path(folder:, metric_descriptor:) -> ::String

Create a fully-qualified MetricDescriptor resource string.

Overloads
def metric_descriptor_path(project:, metric_descriptor:) -> ::String
The resource will be in the following format:

projects/{project}/metricDescriptors/{metric_descriptor=**}

Parameters
  • project (String)
  • metric_descriptor (String)
def metric_descriptor_path(organization:, metric_descriptor:) -> ::String
The resource will be in the following format:

organizations/{organization}/metricDescriptors/{metric_descriptor=**}

Parameters
  • organization (String)
  • metric_descriptor (String)
def metric_descriptor_path(folder:, metric_descriptor:) -> ::String
The resource will be in the following format:

folders/{folder}/metricDescriptors/{metric_descriptor=**}

Parameters
  • folder (String)
  • metric_descriptor (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#monitored_resource_descriptor_path

def monitored_resource_descriptor_path(project:, monitored_resource_descriptor:) -> ::String
def monitored_resource_descriptor_path(organization:, monitored_resource_descriptor:) -> ::String
def monitored_resource_descriptor_path(folder:, monitored_resource_descriptor:) -> ::String

Create a fully-qualified MonitoredResourceDescriptor resource string.

Overloads
def monitored_resource_descriptor_path(project:, monitored_resource_descriptor:) -> ::String
The resource will be in the following format:

projects/{project}/monitoredResourceDescriptors/{monitored_resource_descriptor}

Parameters
  • project (String)
  • monitored_resource_descriptor (String)
def monitored_resource_descriptor_path(organization:, monitored_resource_descriptor:) -> ::String
The resource will be in the following format:

organizations/{organization}/monitoredResourceDescriptors/{monitored_resource_descriptor}

Parameters
  • organization (String)
  • monitored_resource_descriptor (String)
def monitored_resource_descriptor_path(folder:, monitored_resource_descriptor:) -> ::String
The resource will be in the following format:

folders/{folder}/monitoredResourceDescriptors/{monitored_resource_descriptor}

Parameters
  • folder (String)
  • monitored_resource_descriptor (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#organization_path

def organization_path(organization:) -> ::String

Create a fully-qualified Organization resource string.

The resource will be in the following format:

organizations/{organization}

Parameter
  • organization (String)
Returns
  • (::String)

#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)

#workspace_path

def workspace_path(project:) -> ::String
def workspace_path(workspace:) -> ::String

Create a fully-qualified Workspace resource string.

Overloads
def workspace_path(project:) -> ::String
The resource will be in the following format:

projects/{project}

Parameter
  • project (String)
def workspace_path(workspace:) -> ::String
The resource will be in the following format:

workspaces/{workspace}

Parameter
  • workspace (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)