Method: projects.alerts.list Stay organized with collections Save and categorize content based on your preferences.
Lists the existing alerts for the metrics scope of the project.
HTTP request
GET https://monitoring.googleapis.com/v3/{parent}/alerts
Path parameters
| Parameters | |
|---|---|
parent |
Required. The name of the project to list alerts for. |
Query parameters
| Parameters | |
|---|---|
filter |
Optional. An alert is returned if there is a match on any fields belonging to the alert or its subfields. |
orderBy |
Optional. A comma-separated list of fields in
For example, If the field is not set, the results are sorted by |
pageSize |
Optional. The maximum number of results to return in a single response. If not set to a positive number, at most 50 alerts will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
pageToken |
Optional. If non-empty, |
Request body
The request body must be empty.
Response body
Thealerts.list response.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{"alerts":[{object ( |
| Fields | |
|---|---|
alerts[] |
The list of alerts. |
nextPageToken |
If not empty, indicates that there may be more results that match the request. Use the value in the |
totalSize |
The estimated total number of matching results for this query. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/monitoringhttps://www.googleapis.com/auth/monitoring.read
For more information, see theAuthentication Overview.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-23 UTC.