Module ep_history

Saves monitor history.

Copyright © (C) 2019, Maxim Fedorov

Behaviours: gen_server.

Authors: Maxim Fedorov (maximfca@gmail.com).

Description

Saves monitor history.

Function Index

get/1 Returns records starting from From (until now).
get/2 Returns records between From and To (inclusive) Both From and To are Erlang system time in milliseconds.
get_last/1 Returns records for last N seconds.
handle_call/3
handle_cast/2
handle_info/2
init/1
start_link/0 Starts the server.
terminate/2

Function Details

get/1

get(From::integer()) -> []

Returns records starting from From (until now).

get/2

get(From::integer(), To::integer()) -> []

Returns records between From and To (inclusive) Both From and To are Erlang system time in milliseconds.

get_last/1

get_last(N::integer()) -> []

Returns records for last N seconds.

handle_call/3

handle_call(Request, From, State) -> any()

handle_cast/2

handle_cast(Request, State) -> any()

handle_info/2

handle_info(Monitor_sample, State) -> any()

init/1

init(X1) -> any()

start_link/0

start_link() -> {ok, Pid::pid()} | ignore | {error, Reason::term()}

Starts the server

terminate/2

terminate(Reason, State) -> any()


Generated by EDoc