11#include <boost/shared_ptr.hpp>
50 bool del(
const std::string& name);
81 std::map<std::string, ObservationPtr> stats_;
This is a base class for exceptions thrown from the DNS library module.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
Exception indicating that a given statistic is duplicated.
DuplicateStat(const char *file, size_t line, const char *what)
boost::shared_ptr< const Element > ConstElementPtr
boost::shared_ptr< Observation > ObservationPtr
Observation pointer.
boost::shared_ptr< StatContext > StatContextPtr
Pointer to the statistics context.
std::chrono::system_clock::duration StatsDuration
Defines duration type.
Defines the logger used by the top-level component of kea-lfc.
bool del(const std::string &name)
Attempts to delete an observation.
void clear()
Removes all observations.
void setMaxSampleAgeAll(const StatsDuration &duration)
Sets duration for all observations.
void resetAll()
Resets all observations.
isc::data::ConstElementPtr getAll() const
Returns a map with all observations.
void add(const ObservationPtr &obs)
Adds a new observation.
void setMaxSampleCountAll(uint32_t max_samples)
Sets max sample count for all observations.
ObservationPtr get(const std::string &name) const
Attempts to get an observation.
size_t size()
Returns the number of observations.