pydo.monitoring.list_alert_policy()
Generated on 1 May 2025
from pydo
version
v0.11.0
Description
Returns all alert policies that are configured for the given account. To List all alert policies, send a GET request to /v2/monitoring/alerts
.
Parameters
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
per_page |
integer | False | Number of items returned per page | 20 |
page |
integer | False | Which ‘page’ of paginated results to return. | 1 |
Request Sample
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.monitoring.list_alert_policy()
More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.