Syntropy.PersistenceHealth
(syntropy v0.1.0)
Copy Markdown
Tracks Syntropy persistence health and rate-limits repeated failure logs.
Summary
Functions
Returns a specification to start this module under a supervisor.
Types
@type info() :: %{ status: status(), last_failed_operation: String.t() | nil, last_failure_at: DateTime.t() | nil }
@type state() :: %{ failing_operations: %{optional(String.t()) => DateTime.t()}, log_cooldowns: %{optional(String.t()) => integer()} }
@type status() :: String.t()
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec info() :: info()
@spec record_success(String.t()) :: :ok
@spec reset() :: :ok
@spec start_link(keyword()) :: GenServer.on_start()
@spec status() :: status()