aboutsummaryrefslogtreecommitdiff
path: root/src/zennet
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-11-06 14:50:33 +0100
committerGitHub <[email protected]>2023-11-06 14:50:33 +0100
commit0b184fd2a65852028672a7a0013ec794c7e0b071 (patch)
tree8f2d6f8296016943c1544716a6110be58729b4c6 /src/zennet
parentfixed issue where file log sink would get the wrong pattern assigned (#513) (diff)
downloadzen-0b184fd2a65852028672a7a0013ec794c7e0b071.tar.xz
zen-0b184fd2a65852028672a7a0013ec794c7e0b071.zip
statsd for cas (#511)
* separate statsd interfaces so they can be accessible to zenstore * statsd for cas
Diffstat (limited to 'src/zennet')
-rw-r--r--src/zennet/include/zennet/statsdclient.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/zennet/include/zennet/statsdclient.h b/src/zennet/include/zennet/statsdclient.h
index a429286ae..c378e49ce 100644
--- a/src/zennet/include/zennet/statsdclient.h
+++ b/src/zennet/include/zennet/statsdclient.h
@@ -3,6 +3,7 @@
#pragma once
#include <zencore/zencore.h>
+#include <zenutil/statsreporter.h>
#include <memory>
#include <string_view>
@@ -16,7 +17,7 @@ public:
virtual void SendMessage(const void* Data, size_t Size) = 0;
};
-class StatsDaemonClient
+class StatsDaemonClient : public StatsMetrics
{
public:
virtual ~StatsDaemonClient() = 0;
@@ -24,12 +25,6 @@ public:
virtual void SetMessageSize(size_t MessageSize, bool UseThreads) = 0;
virtual void Flush() = 0;
- virtual void Increment(std::string_view Metric) = 0;
- virtual void Decrement(std::string_view Metric) = 0;
- virtual void Count(std::string_view Metric, int64_t CountDelta) = 0;
- virtual void Gauge(std::string_view Metric, uint64_t CurrentValue) = 0;
- virtual void Meter(std::string_view Metric, uint64_t IncrementValue) = 0;
-
// Not (yet) implemented: Set,Timing
};