Can the API get the alert rule associated to a datapoint on a DS instance?
I have been hunting through the swagger docs, and I can’t seem to find a way to get the alert rule or alert routing being applied to a specific datapoint on a specific datasource instance. I’ve looked for routing, tuning, etc and I’m not seeing anything.
I want to write a script that looks through every resource, snags the Host Status instance specific to that object, looks at the idleInterval datapoint, and then shows me the Alert Routing information. We found an old alert rule that was set up wrong and accidentally was letting idleInterval alerts slip through. So I want to write a script that shows me what they all are.
I can drill down to the specific host status instance on the resource, but nothing actually shows me the alert routing, that I can find. There is an alertsettings and a config call one can make against the datasource, but they dont show the actual routing.
Is there an API call I’ve overlooked? Or is this something you can’t pull back via API?
Thanks!
If you want to use the API, you technically can see the routing but the endpoint is not supported and listed. I can’t speak on how reliable it is…
You call /alertsettings/{datapointID}/recipients
But with all that said, you can also just run an Alert Threshold report. You can even run it with ‘Only show custom thresholds’ enabled.