PushEx v1.0.0-rc13 PushEx.Behaviour.PushInstrumentation behaviour
Implementable hook points for push lifecycle instrumentation. Callbacks are required but do not need to do anything.
Link to this section Summary
Callbacks
Called immediately before an API response is delivered.
Called when an API request is started.
Called when a push is delivered to a Channel. This can occur more, less, or the same number of times as a push being requested.
Called when a push is requested to be sent. By default this happens in the API controller.
Link to this section Callbacks
Link to this callback
api_processed(%PushEx.Instrumentation.Push.Context{})
Called immediately before an API response is delivered.
Link to this callback
api_requested(%PushEx.Instrumentation.Push.Context{})
Called when an API request is started.
Link to this callback
delivered(%PushEx.Push{}, %PushEx.Instrumentation.Push.Context{})
Called when a push is delivered to a Channel. This can occur more, less, or the same number of times as a push being requested.
Link to this callback
requested(%PushEx.Push{}, %PushEx.Instrumentation.Push.Context{})
Called when a push is requested to be sent. By default this happens in the API controller.