Cloud Monitoring API . locations . global_ . metricsScopes

Instance Methods

projects()

Returns the projects Resource.

close()

Close httplib2 connections.

get(name, x__xgafv=None)

Returns a specific Metrics Scope, including the list of projects monitored by the specified Metrics Scope.

listMetricsScopesByMonitoredProject(monitoredResourceContainer=None, x__xgafv=None)

Returns a list of every Metrics Scope that a specific MonitoredProject has been added to. The metrics scope representing the specified monitored project will always be the first entry in the response.

Method Details

close()
Close httplib2 connections.
get(name, x__xgafv=None)
Returns a specific Metrics Scope, including the list of projects monitored by the specified Metrics Scope.

Args:
  name: string, Required. The resource name of the Metrics Scope. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER} (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Represents a Metrics Scope (https://cloud.google.com/monitoring/settings#concept-scope) in Cloud Monitoring, which specifies one or more Google projects and zero or more AWS accounts to monitor together.
  "createTime": "A String", # Output only. The time when this Metrics Scope was created.
  "monitoredProjects": [ # Output only. The list of projects monitored by this Metrics Scope.
    { # A project being monitored (https://cloud.google.com/monitoring/settings/multiple-projects#create-multi) by a Metrics Scope.
      "createTime": "A String", # Output only. The time when this MonitoredProject was created.
      "name": "A String", # Immutable. The resource name of the MonitoredProject. On input, the resource name includes the scoping project ID and monitored project ID. On output, it contains the equivalent project numbers. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}
    },
  ],
  "name": "A String", # Immutable. The resource name of the Monitoring Metrics Scope. On input, the resource name can be specified with the scoping project ID or number. On output, the resource name is specified with the scoping project number. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}
  "updateTime": "A String", # Output only. The time when this Metrics Scope record was last updated.
}
listMetricsScopesByMonitoredProject(monitoredResourceContainer=None, x__xgafv=None)
Returns a list of every Metrics Scope that a specific MonitoredProject has been added to. The metrics scope representing the specified monitored project will always be the first entry in the response.

Args:
  monitoredResourceContainer: string, Required. The resource name of the Monitored Project being requested. Example: projects/{MONITORED_PROJECT_ID_OR_NUMBER}
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response for the ListMetricsScopesByMonitoredProject method.
  "metricsScopes": [ # A set of all metrics scopes that the specified monitored project has been added to.
    { # Represents a Metrics Scope (https://cloud.google.com/monitoring/settings#concept-scope) in Cloud Monitoring, which specifies one or more Google projects and zero or more AWS accounts to monitor together.
      "createTime": "A String", # Output only. The time when this Metrics Scope was created.
      "monitoredProjects": [ # Output only. The list of projects monitored by this Metrics Scope.
        { # A project being monitored (https://cloud.google.com/monitoring/settings/multiple-projects#create-multi) by a Metrics Scope.
          "createTime": "A String", # Output only. The time when this MonitoredProject was created.
          "name": "A String", # Immutable. The resource name of the MonitoredProject. On input, the resource name includes the scoping project ID and monitored project ID. On output, it contains the equivalent project numbers. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}
        },
      ],
      "name": "A String", # Immutable. The resource name of the Monitoring Metrics Scope. On input, the resource name can be specified with the scoping project ID or number. On output, the resource name is specified with the scoping project number. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}
      "updateTime": "A String", # Output only. The time when this Metrics Scope record was last updated.
    },
  ],
}