curl -X POST "https://api.warrn.io/v2/alerts" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer warrn_k8sM2vL9xQ7nP4wR..." \
-d '{
"message": "CPU usage above 95% on web-server-03",
"alias": "cpu-high-web-03",
"description": "CPU has been above 95% for 5 minutes. Likely caused by increased traffic.",
"priority": "P1",
"responders": [
{"type": "team", "name": "Infrastructure"}
],
"tags": ["cpu", "infrastructure", "production"],
"details": {
"host": "web-server-03",
"cpu_percent": "97.3",
"region": "us-east-1"
},
"entity": "web-frontend",
"source": "Datadog Monitor #4521"
}'
{
"result": "Request will be processed",
"took": 0.0,
"requestId": "f7a8b9c0-d1e2-3456-7890-abcdef123456",
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"alias": "cpu-high-web-03",
"name": "CPU usage above 95% on web-server-03"
}
}
Create an alert using OpsGenie API v2 format.
curl -X POST "https://api.warrn.io/v2/alerts" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer warrn_k8sM2vL9xQ7nP4wR..." \
-d '{
"message": "CPU usage above 95% on web-server-03",
"alias": "cpu-high-web-03",
"description": "CPU has been above 95% for 5 minutes. Likely caused by increased traffic.",
"priority": "P1",
"responders": [
{"type": "team", "name": "Infrastructure"}
],
"tags": ["cpu", "infrastructure", "production"],
"details": {
"host": "web-server-03",
"cpu_percent": "97.3",
"region": "us-east-1"
},
"entity": "web-frontend",
"source": "Datadog Monitor #4521"
}'
{
"result": "Request will be processed",
"took": 0.0,
"requestId": "f7a8b9c0-d1e2-3456-7890-abcdef123456",
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"alias": "cpu-high-web-03",
"name": "CPU usage above 95% on web-server-03"
}
}
Create an alert using the OpsGenie request format. Warrn automatically transforms the payload to its native format.Documentation Index
Fetch the complete documentation index at: https://docs.warrn.io/llms.txt
Use this file to discover all available pages before exploring further.
Bearer warrn_xxx. Requires write permission.disk-usage-web-01.P1, P2, P3, P4, P5. Mapped to Warrn severity (P1→critical, P2→high, P3→medium, P4/P5→low).[{"type": "team", "name": "Platform"}]
opsgenie-migrated tag is added automatically."Request will be processed".curl -X POST "https://api.warrn.io/v2/alerts" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer warrn_k8sM2vL9xQ7nP4wR..." \
-d '{
"message": "CPU usage above 95% on web-server-03",
"alias": "cpu-high-web-03",
"description": "CPU has been above 95% for 5 minutes. Likely caused by increased traffic.",
"priority": "P1",
"responders": [
{"type": "team", "name": "Infrastructure"}
],
"tags": ["cpu", "infrastructure", "production"],
"details": {
"host": "web-server-03",
"cpu_percent": "97.3",
"region": "us-east-1"
},
"entity": "web-frontend",
"source": "Datadog Monitor #4521"
}'
{
"result": "Request will be processed",
"took": 0.0,
"requestId": "f7a8b9c0-d1e2-3456-7890-abcdef123456",
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"alias": "cpu-high-web-03",
"name": "CPU usage above 95% on web-server-03"
}
}