v1

latestOpenAPI 3.0.02026-07-241310301.1 KB
default

Create Alert Configuration Rule

Create a new alert configuration rule for anomaly detection

post/api/v2/anomaly-new-service/rule

Headers

Authorizationstring
apikeystring
Content-Typestring

Request body

object required

Example request

{
  "alertRule": {
    "uuid": "550e8400-e29b-41d4-a716-446655440000",
    "ruleName": "High Cost New Service Alert",
    "cost": 100,
    "filters": {
      "include": {
        "region": [
          "us-east-1",
          "us-west-2"
        ],
        "service": [
          "Amazon EC2"
        ],
        "linkedaccid": [
          "123456789012"
        ],
        "accounttags": [
          "environment: production"
        ]
      },
      "exclude": {
        "region": [
          "ap-east-1"
        ],
        "service": [
          "Amazon S3"
        ],
        "linkedaccid": [],
        "accounttags": []
      }
    },
    "recipients": [
      {
        "dstId": "alert@example.com",
        "recipientData": {
          "dstId": "alert@example.com",
          "type": "email"
        }
      }
    ]
  }
}

Response

Successful response