With webhooks triggers you can connect any application or process with MetricsWave and receive a notification when something happens and also get useful stats about them.
Create an event with this params.
In this case we have this params: author
, message
, version
and service
.
The you can simply trigger this bash command in your deployment script to receive a notification when everything finish.
BODY='{"version":"'$(git log --pretty=format:'%h' -n 1)'", "message":"'$(git log --pretty=format:'%s' -n 1)'","author":"'$(git log --pretty=format:'%an' -n 1)'", "service":"Backend"}'
curl -X POST https://metricswave.com/webhooks/00000000-0000-0000-0000-000000000000 \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "$BODY"
That's all. You can add more parameters and data if you want.
Important: Remember to replace 00000000-0000-0000-0000-000000000000
with the UUID of your event.
Remember that in each event you have the option to send a notification to a connected channel every time an event is received.
So, you can connect a Telegram channel a share a custom notification automatically after each deploy.
You can use this title and description configuration as an example:
Title:
{service} Deployed
Description:
**Author:** {author}
**Version:** {version}
{message}
Start for free, and upgrade your account at any moment.