06 Mar 2019 07:23 AM
Hi Team,
I have developed a python code for monitoring F5 Devices in which i got struck where I want to display all my pool members in alert.
So , to raise a alert I need two conditions in my alert_settings, if count of pool numbers is above 0, then I want to iterate through my list of down state pool numbers and want to display same in my description.
Thanks
Raviteja
Solved! Go to Solution.
06 Mar 2019 07:53 AM
You can create custom alerts in the python code, that is how the Dynatrace supported f5 plugin does it. What is the reason behind not using that one?
06 Mar 2019 08:02 AM
hi @Michael L. thanks for the response.
My problem is, inside custom alert , if my condition is met , Dynatrace has to raise a alert with with list of all strings assigned to a variable. (list available in .py file)
if (countOderrors > 1)
"description": "The {metricname} of {severity} is {alert_condition} the value is {threshold}"
I want to add my {variable} here from my *.py file.
Thanks
06 Mar 2019 09:09 AM
You can't add your own variables and logic in the plugin.json. What you can do when you need to customize it is to raise the alert from within the Python code, using
report_availability_event.