KomachiHeartbeat v0.1.1 KomachiHeartbeat.Vital behaviour View Source
Behaviour which vital plugins implement.
defmodule ExampleVital do
@behaviour KomachiHeartbeat.Vital
def stats, do: {:ok, 42}
def vital, do: :ok
end
Application.put_env(:komachi_heartbeat, :vitals, [ExampleVital])
Link to this section Summary
Link to this section Types
Link to this section Callbacks
Statistics. If it’s not defined, use vital/0
.
Vital.