20#ifndef BEAST_INSIGHT_COLLECTOR_H_INCLUDED
21#define BEAST_INSIGHT_COLLECTOR_H_INCLUDED
23#include <xrpl/beast/insight/Counter.h>
24#include <xrpl/beast/insight/Event.h>
25#include <xrpl/beast/insight/Gauge.h>
26#include <xrpl/beast/insight/Hook.h>
27#include <xrpl/beast/insight/Meter.h>
64 template <
class Handler>
Interface for a manager that allows collection of metrics.
virtual Gauge make_gauge(std::string const &name)=0
Create a gauge with the specified name.
Meter make_meter(std::string const &prefix, std::string const &name)
Counter make_counter(std::string const &prefix, std::string const &name)
virtual Hook make_hook(HookImpl::HandlerType const &handler)=0
Gauge make_gauge(std::string const &prefix, std::string const &name)
virtual Counter make_counter(std::string const &name)=0
Create a counter with the specified name.
virtual Event make_event(std::string const &name)=0
Create an event with the specified name.
Event make_event(std::string const &prefix, std::string const &name)
Hook make_hook(Handler handler)
Create a hook.
virtual Meter make_meter(std::string const &name)=0
Create a meter with the specified name.
A metric for measuring an integral value.
A metric for reporting event timing.
A metric for measuring an integral value.
A reference to a handler for performing polled collection.
A metric for measuring an integral value.