Beethoven.HwMon.Archive (Beethoven v0.3.7)

Tracks historical CPU and RAM usage as sampled by HwMon.Server.

Summary

Types

Stat categories.

Stat object that is stored on ETS

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

stat_category()

@type stat_category() :: :cpu | :ram | :disk_io | :net_io

Stat categories.

stat_object()

@type stat_object() :: {stat_category(), [{DateTime.t(), float()}]}

Stat object that is stored on ETS

Functions

cast_cpu(data)

@spec cast_cpu(float()) :: :ok

Casts CPU telemetry to Archive.

cast_diskIO(data)

@spec cast_diskIO(float()) :: :ok

Casts DiskIO telemetry to Archive.

cast_networkIO(data)

@spec cast_networkIO(float()) :: :ok

Casts networkIO telemetry to Archive.

cast_ram(data)

@spec cast_ram(float()) :: :ok

Casts RAM telemetry to Archive.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get_stat(stat_name)

@spec get_stat(stat_category()) :: {:ok, stat_object()} | :not_found

Gets telemetry for a given stat.

start_link(init_args \\ [])

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

Supervisor Entry point.