Pulsar Docs

Create Alert Group

POST
/v1/alerts

This endpoint requires authentication — use the Login page at the top of the API Reference, or paste a token in the Authorization section below.

Create a v2 alert group spanning one or more machines; answers in the detail shape.

Authorization

bearerAuth admin, superadmin, superuser
Authorization<token>

In: header

Scope: admin, superadmin, superuser

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

changed_by is never accepted here; it comes from the authenticated user, not the request. openTemplateId/resolveTemplateId aren't exposed at this layer yet, so omitting them lets draco use its own defaults.

Response Body

application/json

curl -X POST "https://example.com/v1/alerts" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "metricIds": [      0.1    ],    "alertType": "string",    "params": {      "property1": null,      "property2": null    }  }'
{  "source": "v2",  "id": "string",  "name": "string",  "description": "string",  "isActive": true,  "alertType": "string",  "params": {    "property1": null,    "property2": null  },  "personaIds": [    "string"  ],  "metrics": [    {      "metricId": 0.1,      "machineId": 0.1,      "metricName": "string",      "rowId": 0.1    }  ],  "aggregationFunction": "min",  "windowSize": 0.1,  "emitTimeInterval": 0.1,  "openM": 0.1,  "openN": 0.1,  "notifyOnOpen": true,  "notifyOnResolve": true,  "resetOnIneligible": true}