Skip to main content

alerts

Creates, updates, deletes, gets or lists a alerts resource.

Overview

Namealerts
TypeResource
Iddigitalocean.apps.alerts

Fields

NameDatatypeDescription
idstring
component_namestring
emailsarray
phasestring
progressobject
slack_webhooksarray
specobject

Methods

NameAccessible byRequired ParamsDescription
apps_list_alertsSELECTapp_idList alerts associated to the app and any components. This includes configuration information about the alerts including emails, slack webhooks, and triggering events or conditions.
apps_assign_alert_destinationsEXECalert_id, app_idUpdates the emails and slack webhook destinations for app alerts. Emails must be associated to a user with access to the app.

SELECT examples

List alerts associated to the app and any components. This includes configuration information about the alerts including emails, slack webhooks, and triggering events or conditions.

SELECT
id,
component_name,
emails,
phase,
progress,
slack_webhooks,
spec
FROM digitalocean.apps.alerts
WHERE app_id = '{{ app_id }}';