Beethoven.HwMon.Archive (Beethoven v0.3.7)
Tracks historical CPU and RAM usage as sampled by HwMon.Server
.
Summary
Functions
Casts CPU telemetry to Archive.
Casts DiskIO telemetry to Archive.
Casts networkIO telemetry to Archive.
Casts RAM telemetry to Archive.
Returns a specification to start this module under a supervisor.
Gets telemetry for a given stat.
Supervisor Entry point.
Types
@type stat_category() :: :cpu | :ram | :disk_io | :net_io
Stat categories.
@type stat_object() :: {stat_category(), [{DateTime.t(), float()}]}
Stat object that is stored on ETS
Functions
@spec cast_cpu(float()) :: :ok
Casts CPU telemetry to Archive.
@spec cast_diskIO(float()) :: :ok
Casts DiskIO telemetry to Archive.
@spec cast_networkIO(float()) :: :ok
Casts networkIO telemetry to Archive.
@spec cast_ram(float()) :: :ok
Casts RAM telemetry to Archive.
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec get_stat(stat_category()) :: {:ok, stat_object()} | :not_found
Gets telemetry for a given stat.
@spec start_link(any()) :: GenServer.on_start()
Supervisor Entry point.