# Webhooks
Currently webhooks are used by Chartbrew to send chart alerts.
# Webhook chart alerts
Chartbrew sends POST
requests to the webhook URL with the following payload:
chart
- the chart name as astring
alert
- the alert configurationtype
- the alert type is one ofmilestone
,threshold_above
,threshold_below
,threshold_between
,threshold_outside
,anomaly
rules
- this is anobject
that shows the trigger rules for the alert
alertsFound
- anarray
ofobjects
containing a label and a value for each item on the chart that triggered the alertdashboardUrl
- the URL to the dashboard where the chart is located
Example payload:
{
"chart": "Site stats",
"alert": { "type": "milestone", "rules": { "value": "40" } },
"alertsFound": [
{ "label": "2023 Jan 13", "value": 47 }
],
"dashboardUrl": "https://app.chartbrew.com/project/1"
}
โ Google Analytics ๐งช Backend โ