Manage event handlers
StackState Self-hosted v4.6.x
Event handlers attached to a StackState view listen to generated StackState events. Event notifications can be sent or actions can be triggered in response to health state change events or problem events generated within the view.
When you open the Manage Event Handlers pane on the left-hand side of the StackState UI, a list of all event handlers currently configured for the view is displayed. You can add, edit and remove event handlers from here.
You can add an event handler to a view from the StackState UI.
Add an event handler
- 1.Select Manage Event Handlers on the left.
- 2.Click ADD NEW EVENT HANDLER.
- 4.Enter the required details, these will vary according to the event handler function you have selected.
- 5.Click SAVE.
Event handlers listen to events generated within a view. When the configured event type is generated, the event handler function is run to send an event notification or trigger an action in a system outside of StackState. For example, an event handler function could send an email or make a POST to a webhook URL. A number of default event handler functions are included out of the box with StackState.
StackState ships with the following event handler functions that track health state change events in a view:
- A full list of the event handler functions available in your StackState instance can be found in the StackState UI, go to Settings > Functions > Event Handler Functions