Kea 2.7.5
|
Functions | |
size_t | isc::stats::StatsMgr::count () const |
Returns number of available statistics. | |
bool | isc::stats::StatsMgr::del (const std::string &name) |
Removes specified statistic. | |
isc::data::ConstElementPtr | isc::stats::StatsMgr::get (const std::string &name) const |
Returns a single statistic as a JSON structure. | |
isc::data::ConstElementPtr | isc::stats::StatsMgr::getAll () const |
Returns all statistics as a JSON structure. | |
size_t | isc::stats::StatsMgr::getSize (const std::string &name) const |
Returns size of specified statistic. | |
void | isc::stats::StatsMgr::removeAll () |
Removes all collected statistics. | |
bool | isc::stats::StatsMgr::reset (const std::string &name) |
Resets specified statistic. | |
void | isc::stats::StatsMgr::resetAll () |
Resets all collected statistics back to zero. | |
The following methods are used by data consumers:
size_t isc::stats::StatsMgr::count | ( | ) | const |
Returns number of available statistics.
Definition at line 330 of file lib/stats/stats_mgr.cc.
bool isc::stats::StatsMgr::del | ( | const std::string & | name | ) |
Removes specified statistic.
name | name of the statistic to be removed. |
Definition at line 255 of file lib/stats/stats_mgr.cc.
Referenced by isc::stats::StatsMgr::statisticRemoveHandler().
ConstElementPtr isc::stats::StatsMgr::get | ( | const std::string & | name | ) | const |
Returns a single statistic as a JSON structure.
Definition at line 277 of file lib/stats/stats_mgr.cc.
Referenced by isc::stats::StatsMgr::statisticGetHandler().
ConstElementPtr isc::stats::StatsMgr::getAll | ( | ) | const |
Returns all statistics as a JSON structure.
Definition at line 293 of file lib/stats/stats_mgr.cc.
size_t isc::stats::StatsMgr::getSize | ( | const std::string & | name | ) | const |
Returns size of specified statistic.
name | name of the statistic which size should be return. |
Definition at line 315 of file lib/stats/stats_mgr.cc.
void isc::stats::StatsMgr::removeAll | ( | ) |
Removes all collected statistics.
Definition at line 266 of file lib/stats/stats_mgr.cc.
bool isc::stats::StatsMgr::reset | ( | const std::string & | name | ) |
Resets specified statistic.
This is a convenience function and is equivalent to setValue(name, neutral_value), where neutral_value is 0, 0.0 or "".
name | name of the statistic to be reset. |
Definition at line 239 of file lib/stats/stats_mgr.cc.
Referenced by isc::stats::StatsMgr::statisticResetHandler().
void isc::stats::StatsMgr::resetAll | ( | ) |
Resets all collected statistics back to zero.
Definition at line 304 of file lib/stats/stats_mgr.cc.