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/alert-acker.sh
2013-02-19 10:57:05 +00:00

11 lines
240 B
Bash
Executable file

#!/usr/bin/env sh
if [ "$1" = "" ]; then
echo "Must supply alert ID to acknowledge"
exit 1
else
ALERTID=$1
fi
curl -XPUT http://${2:-'monitoring.guprod.gnl'}/alerta/api/v1/alerts/alert/${ALERTID} -d '{ "status": "ACK" }'
echo