]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
Support for storing more than one samples
authorFranciszek Gorski <fagorski9@gmail.com>
Thu, 6 Jun 2019 17:28:30 +0000 (19:28 +0200)
committerRazvan Becheriu <razvan@isc.org>
Mon, 15 Jul 2019 12:32:54 +0000 (15:32 +0300)
src/lib/stats/observation.cc

index badd1f86b59a92dbe23e82efab427150934babdd..838ef6371262053cfe65b3b59a54aa2b79113664 100644 (file)
@@ -62,6 +62,7 @@ void Observation::setMaxSampleAge(const StatsDuration& duration) {
         isc_throw(InvalidStatType, "Unknown statistic type: "
                   << typeToText(type_));
     };
+
 }
 
 void Observation::setMaxSampleCount(uint32_t max_samples) {
@@ -317,8 +318,7 @@ std::string Observation::typeToText(Type type) {
         tmp << "integer";
         break;
     case STAT_FLOAT:
-        tmp << "float";
-        break;
+        tmp << "float";        break;
     case STAT_DURATION:
         tmp << "duration";
         break;
@@ -339,6 +339,10 @@ Observation::getJSON() const {
     ElementPtr value;
     ElementPtr timestamp;
 
+    /// @todo: Add support for retrieving more than one sample for a given
+    /// observation
+
+
     // Support for retrieving more than one sample
     // retrieving all samples of indicated observation
     switch (type_) {