]> git.sesse.net Git - nageru/blobdiff - metrics.h
Streamline the metrics member function names a bit.
[nageru] / metrics.h
index e54bbcf41b083ea1dcc36c2a2ab781cad81471dc..3991d2084b48b9d590e6661c12e2e366699369ca 100644 (file)
--- a/metrics.h
+++ b/metrics.h
@@ -18,8 +18,8 @@ public:
                TYPE_GAUGE,
        };
 
-       void register_int_metric(const std::string &name, std::atomic<int64_t> *location, Type type = TYPE_COUNTER);
-       void register_double_metric(const std::string &name, std::atomic<double> *location, Type type = TYPE_COUNTER);
+       void add(const std::string &name, std::atomic<int64_t> *location, Type type = TYPE_COUNTER);
+       void add(const std::string &name, std::atomic<double> *location, Type type = TYPE_COUNTER);
        std::string serialize() const;
 
 private: