View Source Defectoscope.IncidentsHandler (Defectoscope v0.1.3)
GenServer that handles incidents and forwards them to the forwarder
Summary
Functions
Returns a specification to start this module under a supervisor.
Retrieves the last 10 errors that occurred while the forwarder was running
Get the current state of the incidents handler
Push an incident to the incidents handler
Reset the incidents handler by clearing all stored incidents
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec get_forwarder_errors() :: list()
Retrieves the last 10 errors that occurred while the forwarder was running
@spec get_state() :: Defectoscope.IncidentsHandler.State.t()
Get the current state of the incidents handler
Push an incident to the incidents handler
@spec reset() :: :ok
Reset the incidents handler by clearing all stored incidents