Hello,
There are "System Notifications" for the events "Agent Online" and "Agent Offline". We can choose Webhooks as "Recipient Type" and then select a Webhook Template.
I'm not finding anywhere which variables I can send in the body as a POST request when using a Webhook Template. For instance I'm interested in the agent name. I'm mean, if the agent is online, then I would like to know at least it's name. : )
Has anyone been able to achieve this somehow?
ps. I was able to set a custom capability on the agent:
"my.name" = "${HOSTNAME}"
Then I've created a template like:
{
"uuid" : "${bamboo.webhook.uuid}",
"hostname" : "${bamboo.capability.my.name}"
}
I get a "variable not found" in the logs.