0
0
Fork 0
mirror of https://github.com/alerta/alerta.git synced 2025-01-26 02:08:31 +00:00
alerta_alerta/contrib/examples/create-new-alert.sh
2013-02-17 10:55:54 +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