StackState generates events for every change in your IT Stack. It is possible to react to events with event handlers and to view events in the event stream.
Everything that StackState detects as a change within your IT Stack is recorded with an event. Events pertaining to a view can be viewed in the event stream that can be opened via the events icon in the right toolbar. Possible events are:
It is also possible to act upon events with event handlers. Event handlers can be set on a view via the ‘View event handlers’ tab of the Events pane.
Event handlers can be used to perform some action when a specific event occurs. Event handlers are based on event handler functions and can be set for a view on the ‘Events’ pane. An event handler always has an event type as input. Depending on the event handler function it can have multiple other parameters of different types as input.
Some actions an event handler could perform are:
An event handler function is a reusable user-defined script that defines a single function that based on some parameter inputs performs some action. The event handler function must have at least one parameter that is a StackState event stream for one of the event types. Every time an event of the specified type occurs the function will be run with the parameters specified for the function in the event handler.