LemonAgent.Workspace.HeartbeatStore (lemon_agent v0.1.0)

View Source

Typed wrapper for heartbeat configuration and last-result tables.

Summary

Functions

delete_config(agent_id)

@spec delete_config(binary()) :: :ok

delete_last(agent_id)

@spec delete_last(binary()) :: :ok

get_config(agent_id)

@spec get_config(binary()) :: map() | nil

get_last(agent_id)

@spec get_last(binary()) :: map() | nil

list_configs()

@spec list_configs() :: list()

list_last()

@spec list_last() :: list()

put_config(agent_id, config)

@spec put_config(binary(), map()) :: :ok

put_last(agent_id, result)

@spec put_last(binary(), map()) :: :ok