#!/usr/bin/env sh

if [ "$1" = "" ]; then
    echo "Must supply alert ID to acknowledge"
else
    ALERTID=$1
fi

curl -XPUT http://${2:-'monitoring.guprod.gnl'}/alerta/api/v1/alerts/alert/${ALERTID} -d '{ "status": "ACK" }'
echo

#!/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

Exit if no alert id supplied
Exit if no alert id supplied
