StatusCodeTracker.Server (status_code_tracker v0.1.4)
Link to this section Summary
Functions
Returns the action applied state
Returns a specification to start this module under a supervisor.
Checks if the error threshold has been reached in the configured time window
Returns the healthy state
Adds the timestamp of the error to the table
Updates the action applied state
Updates the healthy state
Link to this section Functions
Link to this function
action_applied?()
Specs
action_applied?() :: boolean()
Returns the action applied state
Link to this function
apply_action_when_unhealthy()
Link to this function
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
error_threshold_reached?()
Specs
error_threshold_reached?() :: boolean()
Checks if the error threshold has been reached in the configured time window
Link to this function
health_check_pass?()
Link to this function
healthy?()
Specs
healthy?() :: boolean()
Returns the healthy state
Link to this function
start_link(opts \\ [])
Link to this function
track_error()
Specs
track_error() :: :ok
Adds the timestamp of the error to the table
Link to this function
unhealthy_status_code()
Link to this function
update_action_applied(flag)
Specs
update_action_applied(boolean()) :: :ok
Updates the action applied state
Link to this function
update_healthy(flag)
Specs
update_healthy(boolean()) :: :ok
Updates the healthy state
Link to this function