action digitalocean_apps_list_alerts { label: "List all app alerts" description: "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." provider: digitalocean method: GET path: "/v2/apps/{app_id}/alerts" encoding: json input: { type: "object" properties: { app_id: { type: "string" } } required: ["app_id"] additionalProperties: false } output: { type: "object" properties: { alerts: { type: "array" items: { type: "object" properties: { component_name: { type: "string" } emails: { type: "array" items: { type: "string" } } id: { type: "string" } phase: { type: "string" enum: ["UNKNOWN", "PENDING", "CONFIGURING", "ACTIVE", "ERROR"] } progress: { type: "object" properties: { steps: { type: "array" items: { type: "object" properties: { ended_at: { type: "string" format: "date-time" } name: { type: "string" } reason: { type: "object" properties: { code: { type: "string" } message: { type: "string" } } } started_at: { type: "string" format: "date-time" } status: { type: "string" enum: ["UNKNOWN", "PENDING", "RUNNING", "ERROR", "SUCCESS"] } } } } } } slack_webhooks: { type: "array" items: { type: "object" properties: { channel: { type: "string" } url: { type: "string" } } } } spec: { type: "object" properties: { disabled: { type: "boolean" description: "Is the alert disabled?" } operator: { type: "string" enum: ["UNSPECIFIED_OPERATOR", "GREATER_THAN", "LESS_THAN"] } rule: { type: "string" enum: ["UNSPECIFIED_RULE", "CPU_UTILIZATION", "MEM_UTILIZATION", "RESTART_COUNT", "DEPLOYMENT_FAILED", "DEPLOYMENT_LIVE", "DOMAIN_FAILED", "DOMAIN_LIVE", "FUNCTIONS_ACTIVATION_COUNT", "FUNCTIONS_AVERAGE_DURATION_MS", "FUNCTIONS_ERROR_RATE_PER_MINUTE", "FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND"] } value: { type: "number" format: "float" description: "Threshold value for alert" } window: { type: "string" enum: ["UNSPECIFIED_WINDOW", "FIVE_MINUTES", "TEN_MINUTES", "THIRTY_MINUTES", "ONE_HOUR"] } } } } } } } } }