Statistics API for the mnesia_rocksdb plugin
Some counters are maintained for each active alias. Currently, the following counters are supported: * inner_retries * outer_retriesalias() = mnesia_rocksdb:alias()
counter() = atom()
counters() = #{counter() := integer()}
db_ref() = mrdb:db_ref()
increment() = integer()
| get/1 | Fetches all known counters for Alias, in the form of a map,
#{Counter => Value}. |
| get/2 | Fetches the integer value of the known counter Ctr for Alias. |
| incr/3 | Increment Ctr counter for Alias` with increment `N. |
| new/0 |
get(Alias::alias() | db_ref()) -> counters()
Fetches all known counters for Alias, in the form of a map,
#{Counter => Value}.
Fetches the integer value of the known counter Ctr for Alias.
incr(Alias::alias() | db_ref(), Ctr::counter(), N::increment()) -> ok
Increment Ctr counter for Alias` with increment `N.
db_ref() map,
corresponding to mrdb:get_ref({admin, Alias}).
new() -> any()
Generated by EDoc