POST /v2/monitoring/alerts
To create a new alert, send a POST request to /v2/monitoring/alerts
.
Servers
- https://api.digitalocean.com
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
entities[] |
Array | Yes | |
description |
String | Yes | |
tags[] |
Array | Yes | |
enabled |
Boolean | Yes | |
type |
String | Yes |
Possible values:
|
value |
Number | Yes | |
alerts |
Object | Yes | |
alerts.slack[] |
Array | Yes |
Slack integration details. |
alerts.slack[].channel |
String | Yes |
Slack channel to notify of an alert trigger. |
alerts.slack[].url |
String | Yes |
Slack Webhook URL. |
alerts.email[] |
Array | Yes |
An email to notify on an alert trigger. |
compare |
String | Yes |
Possible values:
|
window |
String | Yes |
Possible values:
|
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.