POSThttps://api.astronomer.io/platform/v1beta1/organizations/organizationId/alerts
Path Parameters
Body
View in API Reference
Request
$curl -X POST https://api.astronomer.io/platform/v1beta1/organizations/organizationId/alerts \
> -H "Authorization: Bearer " \
> -H "Content-Type: application/json" \
> -d '{
> "entityId": "entityId",
> "entityType": "DEPLOYMENT",
> "name": "name",
> "notificationChannelIds": [
> "notificationChannelIds"
> ],
> "rules": {
> "patternMatches": [
> {
> "entityType": "TASK_ID",
> "operatorType": "IS",
> "values": [
> "values"
> ]
> }
> ],
> "properties": {
> "dagDurationSeconds": 0,
> "deploymentId": "deploymentId"
> }
> },
> "severity": "INFO",
> "type": "DAG_SUCCESS"
>}'
Response