]> git.sesse.net Git - nageru/blobdiff - metrics.h
Tighten up the Movit #include paths a bit; fixes compilation error in some cases.
[nageru] / metrics.h
index 0371668bd2a1e25c1adaed613071ac8e3c6c0551..603abb09630623c163d155952346d0fdb6a6865f 100644 (file)
--- a/metrics.h
+++ b/metrics.h
@@ -48,6 +48,13 @@ public:
        void add(const std::string &name, const std::vector<std::pair<std::string, std::string>> &labels, std::atomic<double> *location, Type type = TYPE_COUNTER);
        void add(const std::string &name, const std::vector<std::pair<std::string, std::string>> &labels, Histogram *location);
 
+       void remove(const std::string &name)
+       {
+               remove(name, {});
+       }
+
+       void remove(const std::string &name, const std::vector<std::pair<std::string, std::string>> &labels);
+
        std::string serialize() const;
 
 private: