36 lines
1.3 KiB
HTML
36 lines
1.3 KiB
HTML
|
|
<blockquote>
|
||
|
|
Free-format Webhook is mostly used for custom integrations via scrips. Use any http client,
|
||
|
|
e.g. curl to send POST requests with any payload.
|
||
|
|
</blockquote>
|
||
|
|
|
||
|
|
<h6>Request example:</h6>
|
||
|
|
<p>
|
||
|
|
<pre>
|
||
|
|
curl -X POST \
|
||
|
|
{{ alert_receive_channel.integration_url }} \
|
||
|
|
-H 'Content-Type: Application/json' \
|
||
|
|
-d '{
|
||
|
|
"alert_uid": "08d6891a-835c-e661-39fa-96b6a9e26552",
|
||
|
|
"title": "The whole system is down",
|
||
|
|
"image_url": "https://upload.wikimedia.org/wikipedia/commons/e/ee/Grumpy_Cat_by_Gage_Skidmore.jpg",
|
||
|
|
"state": "alerting",
|
||
|
|
"link_to_upstream_details": "https://en.wikipedia.org/wiki/Downtime",
|
||
|
|
"message": "Smth happened. Oh no!"
|
||
|
|
}'
|
||
|
|
</pre>
|
||
|
|
</p>
|
||
|
|
|
||
|
|
<h4>Next steps:</h4>
|
||
|
|
<p><ol>
|
||
|
|
<li>
|
||
|
|
1. Add the routes and escalations in <code class='code-inline'>Escalations settings</code>
|
||
|
|
</li>
|
||
|
|
<li>
|
||
|
|
2. Check grouping, auto-resolving, and rendering templates in
|
||
|
|
<code class='code-inline'>Alert Templates</code> Settings
|
||
|
|
</li>
|
||
|
|
<li>
|
||
|
|
3. Make sure all the users set up their <code class='code-inline'>Personal Notifications</code> Settings
|
||
|
|
on the <code class='code-inline'>Users</code> Page
|
||
|
|
</li>
|
||
|
|
</ol></p>
|