load_log v0.1.0 LoadLog.Data

This module defines a generic server that holds and manipulates a list of load average data.

Summary

Functions

Returns a list of all load average data

Clears logged data

Starts LoadLog.Data GenServer and initialize the data with an empty list

Appends the current load average data to the data list

Functions

all()
all() :: [LoadLog.Load.data]

Returns a list of all load average data.

clear()
clear() :: :ok

Clears logged data.

start_link()
start_link() :: {:ok, pid}

Starts LoadLog.Data GenServer and initialize the data with an empty list.

update()
update() :: :ok

Appends the current load average data to the data list.

If the number of data exceeds the upper limit specified in config/config.exs, the oldest data will be trimmed.