Module eradius_counter

This module implements the statitics counter for RADIUS servers and clients.

Behaviours: gen_server.

Description

This module implements the statitics counter for RADIUS servers and clients

Data Types

nas_counters()

nas_counters() = {erlang:timestamp(), [#nas_counter{}]}

srv_counters()

srv_counters() = [#server_counter{}]

stats()

stats() = {srv_counters(), nas_counters()}

Function Index

aggregate/1calculate the per server sum of all counters of a per NAS list of counters.
inc_counter/2increment a specific counter value.
inc_reply_counter/2increment reply counters.
inc_request_counter/2increment requests counters.
init_counter/1initialize a counter structure.
pull/0read counters and reset to zero.
read/0read counters.
reset/0reset all counters to zero.
reset_counter/1reset counters.

Function Details

aggregate/1

aggregate(X1::stats()) -> stats()

calculate the per server sum of all counters of a per NAS list of counters

inc_counter/2

inc_counter(Counter, Counters) -> any()

increment a specific counter value

inc_reply_counter/2

inc_reply_counter(Counter, Nas) -> any()

increment reply counters

inc_request_counter/2

inc_request_counter(Counter, Nas) -> any()

increment requests counters

init_counter/1

init_counter(Key) -> any()

initialize a counter structure

pull/0

pull() -> stats()

read counters and reset to zero

read/0

read() -> stats()

read counters

reset/0

reset() -> any()

reset all counters to zero

reset_counter/1

reset_counter(Server_counter) -> any()

reset counters


Generated by EDoc, Dec 12 2017, 15:41:15.