20 #include <ripple/beast/insight/NullCollector.h>
119 return Hook(std::make_shared<detail::NullHookImpl>());
125 return Counter(std::make_shared<detail::NullCounterImpl>());
131 return Event(std::make_shared<detail::NullEventImpl>());
137 return Gauge(std::make_shared<detail::NullGaugeImpl>());
143 return Meter(std::make_shared<detail::NullMeterImpl>());
154 return std::make_shared<detail::NullCollectorImp>();
A metric for measuring an integral value.
A metric for measuring an integral value.
NullHookImpl & operator=(NullHookImpl const &)
Gauge make_gauge(std::string const &) override
Create a gauge with the specified name.
NullEventImpl & operator=(NullEventImpl const &)
NullMeterImpl & operator=(NullMeterImpl const &)
Event make_event(std::string const &) override
Create an event with the specified name.
A Collector which does not collect metrics.
~NullCollectorImp()=default
Hook make_hook(HookImpl::HandlerType const &) override
NullCounterImpl()=default
A metric for reporting event timing.
NullCollectorImp()=default
Counter make_counter(std::string const &) override
Create a counter with the specified name.
NullGaugeImpl & operator=(NullGaugeImpl const &)
A metric for measuring an integral value.
void notify(value_type const &) override
void increment(value_type) override
NullCounterImpl & operator=(NullCounterImpl const &)
void increment(difference_type) override
void set(value_type) override
A reference to a handler for performing polled collection.
static std::shared_ptr< Collector > New()
Meter make_meter(std::string const &) override
Create a meter with the specified name.
void increment(value_type) override