Index
-
MetricsScopes(interface) -
CreateMonitoredProjectRequest(message) -
DeleteMonitoredProjectRequest(message) -
GetMetricsScopeRequest(message) -
ListMetricsScopesByMonitoredProjectRequest(message) -
ListMetricsScopesByMonitoredProjectResponse(message) -
MetricsScope(message) -
MonitoredProject(message) -
OperationMetadata(message) -
OperationMetadata.State(enum)
MetricsScopes
Manages Cloud Monitoring Metrics Scopes, and the monitoring of Google Cloud projects and AWS accounts.
rpc CreateMonitoredProject(
CreateMonitoredProjectRequest
) returns ( Operation
)
Adds a MonitoredProject
with the given project ID to the specified Metrics Scope
.
- Authorization scopes
-
Requires one of the following OAuth scopes:
-
https://www.googleapis.com/auth/cloud-platform -
https://www.googleapis.com/auth/monitoring -
https://www.googleapis.com/auth/monitoring.write
For more information, see the Authentication Overview .
-
- IAM Permissions
-
Requires the following IAM permission on the
nameresource:-
monitoring.metricsScopes.link
Requires the following IAM permission on the
parentresource:-
monitoring.metricsScopes.link
For more information, see the IAM documentation .
-
rpc DeleteMonitoredProject(
DeleteMonitoredProjectRequest
) returns ( Operation
)
Deletes a MonitoredProject
from the specified Metrics Scope
.
- Authorization scopes
-
Requires one of the following OAuth scopes:
-
https://www.googleapis.com/auth/cloud-platform -
https://www.googleapis.com/auth/monitoring -
https://www.googleapis.com/auth/monitoring.write
For more information, see the Authentication Overview .
-
rpc GetMetricsScope(
GetMetricsScopeRequest
) returns ( MetricsScope
)
Returns a specific Metrics Scope
, including the list of projects monitored by the specified Metrics Scope
.
- Authorization scopes
-
Requires one of the following OAuth scopes:
-
https://www.googleapis.com/auth/cloud-platform -
https://www.googleapis.com/auth/monitoring -
https://www.googleapis.com/auth/monitoring.read
For more information, see the Authentication Overview .
-
rpc ListMetricsScopesByMonitoredProject(
ListMetricsScopesByMonitoredProjectRequest
) returns ( ListMetricsScopesByMonitoredProjectResponse
)
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.
- Authorization scopes
-
Requires one of the following OAuth scopes:
-
https://www.googleapis.com/auth/cloud-platform -
https://www.googleapis.com/auth/monitoring -
https://www.googleapis.com/auth/monitoring.read
For more information, see the Authentication Overview .
-
CreateMonitoredProjectRequest
Request for the CreateMonitoredProject
method.
| Fields | |
|---|---|
parent
|
Required. The resource name of the existing |
monitored_project
|
Required. The initial |
DeleteMonitoredProjectRequest
Request for the DeleteMonitoredProject
method.
| Fields | |
|---|---|
name
|
Required. The resource name of the Authorization requires the following Google IAM
permissions on both the |
GetMetricsScopeRequest
Request for the GetMetricsScope
method.
name
string
Required. The resource name of the Metrics Scope
. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}
Authorization requires the following IAM
permission on the specified resource name
:
-
resourcemanager.projects.get
ListMetricsScopesByMonitoredProjectRequest
Request for the ListMetricsScopesByMonitoredProject
method.
monitored_resource_container
string
Required. The resource name of the Monitored Project
being requested. Example: projects/{MONITORED_PROJECT_ID_OR_NUMBER}
Authorization requires the following IAM
permission on the specified resource monitoredResourceContainer
:
-
resourcemanager.projects.get
ListMetricsScopesByMonitoredProjectResponse
Response for the ListMetricsScopesByMonitoredProject
method.
| Fields | |
|---|---|
metrics_scopes[]
|
A set of all metrics scopes that the specified monitored project has been added to. |
MetricsScope
Represents a Metrics Scope in Cloud Monitoring, which specifies one or more Google projects and zero or more AWS accounts to monitor together.
| Fields | |
|---|---|
name
|
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: |
create_time
|
Output only. The time when this |
update_time
|
Output only. The time when this |
monitored_projects[]
|
Output only. The list of projects monitored by this |
MonitoredProject
A project being monitored
by a Metrics Scope
.
| Fields | |
|---|---|
name
|
Immutable. The resource name of the |
create_time
|
Output only. The time when this |
is_tombstoned
|
Output only. Set if the project has been tombstoned by the user. |
OperationMetadata
Contains metadata for longrunning operation for the edit Metrics Scope endpoints.
| Fields | |
|---|---|
state
|
Current state of the batch operation. |
create_time
|
The time when the batch request was received. |
update_time
|
The time when the operation result was last updated. |
State
Batch operation states.
| Enums | |
|---|---|
STATE_UNSPECIFIED
|
Invalid. |
CREATED
|
Request has been received. |
RUNNING
|
Request is actively being processed. |
DONE
|
The batch processing is done. |
CANCELLED
|
The batch processing was cancelled. |

