Kea 2.7.5
|
Functions | |
void | isc::stats::StatsMgr::addValue (const std::string &name, const double value) |
Records incremental floating point observation. | |
void | isc::stats::StatsMgr::addValue (const std::string &name, const int64_t value) |
Records incremental integer observation. | |
void | isc::stats::StatsMgr::addValue (const std::string &name, const isc::util::int128_t &value) |
Records an incremental big integer observation. | |
void | isc::stats::StatsMgr::addValue (const std::string &name, const StatsDuration &value) |
Records incremental duration observation. | |
void | isc::stats::StatsMgr::addValue (const std::string &name, const std::string &value) |
Records incremental string observation. | |
const StatsDuration & | isc::stats::StatsMgr::getMaxSampleAgeDefault () const |
Get default duration limit. | |
uint32_t | isc::stats::StatsMgr::getMaxSampleCountDefault () const |
Get default count limit. | |
bool | isc::stats::StatsMgr::setMaxSampleAge (const std::string &name, const StatsDuration &duration) |
Determines maximum age of samples. | |
void | isc::stats::StatsMgr::setMaxSampleAgeAll (const StatsDuration &duration) |
Set duration limit for all collected statistics. | |
void | isc::stats::StatsMgr::setMaxSampleAgeDefault (const StatsDuration &duration) |
Set default duration limit. | |
bool | isc::stats::StatsMgr::setMaxSampleCount (const std::string &name, uint32_t max_samples) |
Determines how many samples of a given statistic should be kept. | |
void | isc::stats::StatsMgr::setMaxSampleCountAll (uint32_t max_samples) |
Set count limit for all collected statistics. | |
void | isc::stats::StatsMgr::setMaxSampleCountDefault (uint32_t max_samples) |
Set default count limit. | |
void | isc::stats::StatsMgr::setValue (const std::string &name, const double value) |
Records absolute floating point observation. | |
void | isc::stats::StatsMgr::setValue (const std::string &name, const int64_t value) |
Records absolute integer observation. | |
void | isc::stats::StatsMgr::setValue (const std::string &name, const isc::util::int128_t &value) |
Records an absolute big integer observation. | |
void | isc::stats::StatsMgr::setValue (const std::string &name, const StatsDuration &value) |
Records absolute duration observation. | |
void | isc::stats::StatsMgr::setValue (const std::string &name, const std::string &value) |
Records absolute string observation. | |
The following methods are used by data producers:
void isc::stats::StatsMgr::addValue | ( | const std::string & | name, |
const double | value ) |
Records incremental floating point observation.
name | name of the observation |
value | floating point value observed |
InvalidStatType | if statistic is not fp |
Definition at line 82 of file lib/stats/stats_mgr.cc.
References isc::stats::StatsMgr::addValueInternal().
void isc::stats::StatsMgr::addValue | ( | const std::string & | name, |
const int64_t | value ) |
Records incremental integer observation.
name | name of the observation |
value | integer value observed |
InvalidStatType | if statistic is not integer |
Definition at line 70 of file lib/stats/stats_mgr.cc.
References isc::stats::StatsMgr::addValueInternal().
void isc::stats::StatsMgr::addValue | ( | const std::string & | name, |
const isc::util::int128_t & | value ) |
Records an incremental big integer observation.
name | name of the observation |
value | integer value observed |
InvalidStatType | if statistic is not integer |
Definition at line 76 of file lib/stats/stats_mgr.cc.
References isc::stats::StatsMgr::addValueInternal().
void isc::stats::StatsMgr::addValue | ( | const std::string & | name, |
const StatsDuration & | value ) |
Records incremental duration observation.
name | name of the observation |
value | duration value observed |
InvalidStatType | if statistic is not time duration |
Definition at line 88 of file lib/stats/stats_mgr.cc.
References isc::stats::StatsMgr::addValueInternal().
void isc::stats::StatsMgr::addValue | ( | const std::string & | name, |
const std::string & | value ) |
Records incremental string observation.
name | name of the observation |
value | string value observed |
InvalidStatType | if statistic is not a string |
Definition at line 94 of file lib/stats/stats_mgr.cc.
References isc::stats::StatsMgr::addValueInternal().
const StatsDuration & isc::stats::StatsMgr::getMaxSampleAgeDefault | ( | ) | const |
Get default duration limit.
Definition at line 217 of file lib/stats/stats_mgr.cc.
uint32_t isc::stats::StatsMgr::getMaxSampleCountDefault | ( | ) | const |
Get default count limit.
Definition at line 228 of file lib/stats/stats_mgr.cc.
bool isc::stats::StatsMgr::setMaxSampleAge | ( | const std::string & | name, |
const StatsDuration & | duration ) |
Determines maximum age of samples.
Specifies that statistic name should be stored not as a single value, but rather as a set of values. duration determines the timespan. Samples older than duration will be discarded. This is time-constrained approach. For sample count constrained approach, see setMaxSampleCount() below. Example: To set a statistic to keep observations for the last 5 minutes, call: setMaxSampleAge("incoming-packets", StatsDuration::minutes(5)); to revert statistic to a single value, call: setMaxSampleAge("incoming-packets", StatsDuration:zero());
name | name of the observation |
duration | determines maximum age of samples |
Definition at line 139 of file lib/stats/stats_mgr.cc.
Referenced by isc::stats::StatsMgr::statisticSetMaxSampleAgeHandler().
void isc::stats::StatsMgr::setMaxSampleAgeAll | ( | const StatsDuration & | duration | ) |
Set duration limit for all collected statistics.
duration | determines maximum age of samples |
Definition at line 173 of file lib/stats/stats_mgr.cc.
void isc::stats::StatsMgr::setMaxSampleAgeDefault | ( | const StatsDuration & | duration | ) |
Set default duration limit.
duration | default maximum age of samples to keep |
Definition at line 195 of file lib/stats/stats_mgr.cc.
bool isc::stats::StatsMgr::setMaxSampleCount | ( | const std::string & | name, |
uint32_t | max_samples ) |
Determines how many samples of a given statistic should be kept.
Specifies that statistic name should be stored not as single value, but rather as a set of values. In this form, at most max_samples will be kept. When adding max_samples + 1 sample, the oldest sample will be discarded. Example: To set a statistic to keep the last 100 observations, call: setMaxSampleCount("incoming-packets", 100);
name | name of the observation |
max_samples | how many samples of a given statistic should be kept |
Definition at line 156 of file lib/stats/stats_mgr.cc.
Referenced by isc::stats::StatsMgr::statisticSetMaxSampleCountHandler().
void isc::stats::StatsMgr::setMaxSampleCountAll | ( | uint32_t | max_samples | ) |
Set count limit for all collected statistics.
max_samples | how many samples of a given statistic should be kept |
Definition at line 184 of file lib/stats/stats_mgr.cc.
void isc::stats::StatsMgr::setMaxSampleCountDefault | ( | uint32_t | max_samples | ) |
Set default count limit.
max_samples | default maximum number of samples to keep (0 means to disable count limit and enable age limit) |
Definition at line 206 of file lib/stats/stats_mgr.cc.
void isc::stats::StatsMgr::setValue | ( | const std::string & | name, |
const double | value ) |
Records absolute floating point observation.
name | name of the observation |
value | floating point value observed |
InvalidStatType | if statistic is not fp |
Definition at line 52 of file lib/stats/stats_mgr.cc.
References isc::stats::StatsMgr::setValueInternal().
void isc::stats::StatsMgr::setValue | ( | const std::string & | name, |
const int64_t | value ) |
Records absolute integer observation.
name | name of the observation |
value | integer value observed |
InvalidStatType | if statistic is not integer |
Definition at line 40 of file lib/stats/stats_mgr.cc.
References isc::stats::StatsMgr::setValueInternal().
void isc::stats::StatsMgr::setValue | ( | const std::string & | name, |
const isc::util::int128_t & | value ) |
Records an absolute big integer observation.
name | name of the observation |
value | integer value observed |
InvalidStatType | if statistic is not integer |
Definition at line 46 of file lib/stats/stats_mgr.cc.
References isc::stats::StatsMgr::setValueInternal().
void isc::stats::StatsMgr::setValue | ( | const std::string & | name, |
const StatsDuration & | value ) |
Records absolute duration observation.
name | name of the observation |
value | duration value observed |
InvalidStatType | if statistic is not time duration |
Definition at line 58 of file lib/stats/stats_mgr.cc.
References isc::stats::StatsMgr::setValueInternal().
void isc::stats::StatsMgr::setValue | ( | const std::string & | name, |
const std::string & | value ) |
Records absolute string observation.
name | name of the observation |
value | string value observed |
InvalidStatType | if statistic is not a string |
Definition at line 64 of file lib/stats/stats_mgr.cc.
References isc::stats::StatsMgr::setValueInternal().