Some variables were suggested, but they didn’t seem to work. However, an undocumented {scout.location} variable was found, thanks to a team member, and this can be used to show the Hive in alerts. It’s now a matter of adding data.location under Input Variables. The team is also curious about the flow being built and the types of scouts and resources being tested.
Read the entire ‘Using Variables in ControlUp Alerts’ thread below:
Possibly not there or not documented. Have you tried {hive.name}? Long shot but who knows
Trying now….
{hive.name} doesn’t seem to be a valid variable, and I also tried {scout.hive} with no luck. No worries, I’m sure it will be added soon, as I think it would be a good piece of information to include in alerts.
Agreed. The PM is on vacation but will follow up
Unless @member knows
Ok, so there is an undocumented {scout.location} field which should show the Hive. This information might actually have been sent to you already in one way or another, but thanks @member for highlighting this
Yes, and it’s working. Just need to add data.location under Input Variables.
“`{
"text": "Synthetic Monitoring Infra PING Alert
Test Status: {{Start .test_status}}
Test Success %: {{Start .test_status_percents}}
Scout Name: {{Start .scout_name}}
Scout Locaton: {{Start .data.location}}
Scout Address: {{Start .scout_address}}
of Packets Sent: {{Start .test_packets_sent}}
Number of packets received: {{Start .test_packets_received}}
Average Jitter time: {{Start .test_jitter}}
Average Latency: {{Start .test_avg_rtt}}
Lowest Total Latency: {{Start .test_min_rtt}}
Highest Total Latency: {{Start .test_max_rtt}}"
}“`
Curious to learn what flow you are building (beyond just notifications)
For now, I want the notifications currently sent by email to be enriched and then sent through a webhook.
After that, I’m not sure yet, but I may start by tagging certain devices that trigger a specific alert or automatically tagging devices based on a condition.
What kind of scouts are you doing? What type of resources are you testing?
Oh, I see ping on infra
Continue reading and comment on the thread ‘Using Variables in ControlUp Alerts’. Not a member? Join Here!
Categories: All Archives, ControlUp Scripts & Triggers, ControlUp Synthetic Monitoring
