mirror of
https://github.com/alerta/alerta.git
synced 2025-01-24 17:29:39 +00:00
11 lines
240 B
Bash
Executable file
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
|