Getting a 200 OK from the webhook endpoint but the payload is empty of the specific SLA breach details I need for the Slack message.
The webhook config is set to trigger on queue.sla.breach. The JSON I’m receiving looks like this:
{
"event": "queue.sla.breach",
"data": {
"id": "12345",
"name": "Support Queue"
}
}
I need the current_sla and threshold values to format the Slack alert, but they’re not showing up. Tried adding include: ["metrics"] in the webhook body config but that threw a 400 Bad Request saying unknown field.
Is there a specific subscription setting or API param to force these metrics into the event payload? Or do I have to fetch them separately using the Queue Stats API inside the consumer lambda?