Forum Discussion

Gary_Dewrell's avatar
5 years ago

Another crazy idea: Add ability to pass alert message from custom script

I have many custom data sources. I know I can only pass numeric results back to Lomo but I would love to be able to pass back to Lomo a text string that could be automatically added to a custom alert message.  This would give me the ability to include more details in an alert message.  

  • Ideally, we would have the ability to configure a pre-alert script at data source level. The script would execute on the collector.

    The script could be passed an "alert" object, which would have a "alert.message" property that the script can modify. The alert object could also have a "alert.cancel" property that could be set to true to cancel the alert, for example, if the pre-alert script (running on the collector) performed some logic that resolved the alert condition.