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