Hey everyone,
I have been working on some dashboards and reports and the alerts themselves tend to get a little unruly on the SWQL side of things. Long story short we have an email custom property on the various objects in the environment (Volumes, Nodes, Applications, etc...). We then base our email action item to populate with said custom property (The to line will be some kind of variant of ${N=SwisEntity;M=CustomProperties.EmailAddress}). This has allowed us to simplify down to a core set of alerts that go to the correct team or teams, without having to hardset alert actions with variations of the exact same alert. Before we implemented this approach, almost every application template would have its own alert. As well as having multiple variations of the same alert (I.E. high cpu, node down, etc...) targetted to different teams pending the node owner.
The alert action itself works great, but my alert queries tend to include a case statement where I'm setting a Alert column that is populated based off of the EntityType and then flagging the EmailAddress custom property from that entity. This also requires me to make alot of links from the Alert Object to the custom properties tables of the various objects. Ideally what I would like to do is add an Email custom property to the alert, and have that populate with the value from the triggering object. So far in my tests, the Alert Custom Property is just populating with the exact text I put in the field instead of the content related to the variable. IE the Group By for Email under active alerts shows "${N=SwisEntity;M=CustomProperties.EmailAddress}" instead of "address@domain.com."
I'm assuming this has to do with the custom properties being linked and populated with the alert itself, instead of being generated at the time of the alert. Hopefully I'm just doing something wrong.
Anyone have experience with implementing this?