3#include <xrpl/beast/insight/Counter.h>
4#include <xrpl/beast/insight/Event.h>
5#include <xrpl/beast/insight/Gauge.h>
6#include <xrpl/beast/insight/Hook.h>
7#include <xrpl/beast/insight/Meter.h>
43 template <
class Handler>
Interface for a manager that allows collection of metrics.
virtual Event makeEvent(std::string const &name)=0
Create an event with the specified name.
virtual Counter makeCounter(std::string const &name)=0
Create a counter with the specified name.
Event makeEvent(std::string const &prefix, std::string const &name)
virtual Meter makeMeter(std::string const &name)=0
Create a meter with the specified name.
Hook makeHook(Handler handler)
Create a hook.
Gauge makeGauge(std::string const &prefix, std::string const &name)
virtual Hook makeHook(HookImpl::HandlerType const &handler)=0
Counter makeCounter(std::string const &prefix, std::string const &name)
std::shared_ptr< Collector > ptr
Meter makeMeter(std::string const &prefix, std::string const &name)
virtual Gauge makeGauge(std::string const &name)=0
Create a gauge with the specified name.
A metric for measuring an integral value.
A metric for reporting event timing.
A metric for measuring an integral value.
std::function< void(void)> HandlerType
A reference to a handler for performing polled collection.
A metric for measuring an integral value.