0
0
Fork 0
mirror of https://github.com/alerta/alerta.git synced 2025-01-24 17:29:39 +00:00
alerta_alerta/examples/create-new-alert.sh
2012-11-27 08:40:20 +00:00

22 lines
442 B
Bash
Executable file

#!/bin/bash
curl -XPOST http://${1:-'monitoring.gudev.gnl'}/alerta/api/v1/alerts/alert.json -d '{
"resource": "host5",
"event": "HostAvail",
"group": "Network",
"value": "Down",
"severity": "MAJOR",
"environment": [
"REL",
"QA"
],
"service": [
"SharedSvcs"
],
"tags": [
"location=London",
"region=EU"
],
"text": "Host is not responding to ping"
}'
echo