Skip to content

Configure domain-wide alert thresholds and notification settings

Request

Requires domains::configure:thresholds permission.

Security
JWTAuthorizer
Path
domainNamestringrequired

Domain name

Bodyapplication/jsonrequired

Alert configuration

enabledboolean

Whether alert threshold evaluation is active for this domain

thresholdsArray of objects

Alert rules evaluated against node telemetry values within the domain

curl -i -X PUT \
  'https://apidocs.trustgrid.io/_mock/domain/{domainName}/config/alert' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "enabled": true,
    "thresholds": [
      {
        "id": "string",
        "name": "string",
        "telemetry": "cpu",
        "max": 0,
        "exceededWindow": 0,
        "exceededWindowUnit": "minutes"
      }
    ]
  }'

Responses

OK

Response
No content