DripDrop.Policy.BounceComplaintThresholds (DripDrop v0.1.0)

Copy Markdown View Source

Periodically pauses adapters whose rolling bounce or complaint rates cross policy limits.

Summary

Functions

Runs one threshold check and pauses any adapters that exceed limits.

Returns a specification to start this module under a supervisor.

Starts the periodic bounce and complaint threshold checker.

Functions

check_all()

@spec check_all() :: {:ok, non_neg_integer()} | {:error, term()}

Runs one threshold check and pauses any adapters that exceed limits.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

@spec start_link(keyword()) :: GenServer.on_start()

Starts the periodic bounce and complaint threshold checker.