Create Alert Group
Create a v2 alert group spanning one or more machines; answers in the detail shape.
Authorization
bearerAuth admin, superadmin, superuserIn: 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}