xrpld
Loading...
Searching...
No Matches
beast::insight::detail::GroupImp Class Reference
Inheritance diagram for beast::insight::detail::GroupImp:
Collaboration diagram for beast::insight::detail::GroupImp:

Public Types

using ptr = std::shared_ptr<Group>

Public Member Functions

 GroupImp (std::string name, Collector::ptr collector)
 ~GroupImp () override=default
std::string const & name () const override
 Returns the name of this group, for diagnostics.
std::string makeName (std::string const &name)
Hook makeHook (HookImpl::HandlerType const &handler) override
Counter makeCounter (std::string const &name) override
 Create a counter with the specified name.
Event makeEvent (std::string const &name) override
 Create an event with the specified name.
Gauge makeGauge (std::string const &name) override
 Create a gauge with the specified name.
Meter makeMeter (std::string const &name) override
 Create a meter with the specified name.
GroupImpoperator= (GroupImp const &)=delete
shared_from_this (T... args)
weak_from_this (T... args)
template<class Handler>
Hook makeHook (Handler handler)
 Create a hook.
Counter makeCounter (std::string const &prefix, std::string const &name)
Event makeEvent (std::string const &prefix, std::string const &name)
Gauge makeGauge (std::string const &prefix, std::string const &name)
Meter makeMeter (std::string const &prefix, std::string const &name)

Private Attributes

std::string const name_
Collector::ptr collector_

Detailed Description

Definition at line 22 of file Groups.cpp.

Member Typedef Documentation

◆ ptr

Definition at line 14 of file Group.h.

Constructor & Destructor Documentation

◆ GroupImp()

beast::insight::detail::GroupImp::GroupImp ( std::string name,
Collector::ptr collector )

Definition at line 28 of file Groups.cpp.

◆ ~GroupImp()

beast::insight::detail::GroupImp::~GroupImp ( )
overridedefault

Member Function Documentation

◆ name()

std::string const & beast::insight::detail::GroupImp::name ( ) const
overridevirtual

Returns the name of this group, for diagnostics.

Implements beast::insight::Group.

Definition at line 36 of file Groups.cpp.

◆ makeName()

std::string beast::insight::detail::GroupImp::makeName ( std::string const & name)

Definition at line 42 of file Groups.cpp.

◆ makeHook() [1/2]

Hook beast::insight::detail::GroupImp::makeHook ( HookImpl::HandlerType const & handler)
overridevirtual

Implements beast::insight::Collector.

Definition at line 48 of file Groups.cpp.

◆ makeCounter() [1/2]

Counter beast::insight::detail::GroupImp::makeCounter ( std::string const & name)
overridevirtual

Create a counter with the specified name.

See also
Counter

Implements beast::insight::Collector.

Definition at line 54 of file Groups.cpp.

◆ makeEvent() [1/2]

Event beast::insight::detail::GroupImp::makeEvent ( std::string const & name)
overridevirtual

Create an event with the specified name.

See also
Event

Implements beast::insight::Collector.

Definition at line 60 of file Groups.cpp.

◆ makeGauge() [1/2]

Gauge beast::insight::detail::GroupImp::makeGauge ( std::string const & name)
overridevirtual

Create a gauge with the specified name.

See also
Gauge

Implements beast::insight::Collector.

Definition at line 66 of file Groups.cpp.

◆ makeMeter() [1/2]

Meter beast::insight::detail::GroupImp::makeMeter ( std::string const & name)
overridevirtual

Create a meter with the specified name.

See also
Meter

Implements beast::insight::Collector.

Definition at line 72 of file Groups.cpp.

◆ operator=()

GroupImp & beast::insight::detail::GroupImp::operator= ( GroupImp const & )
delete

◆ makeHook() [2/2]

template<class Handler>
Hook beast::insight::Collector::makeHook ( Handler handler)
inherited

Create a hook.

A hook is called at each collection interval, on an implementation defined thread. This is a convenience facility for gathering metrics in the polling style. The typical usage is to update all the metrics of interest in the handler.

Handler will be called with this signature: void handler (void)

See also
Hook

Definition at line 45 of file Collector.h.

◆ makeCounter() [2/2]

Counter beast::insight::Collector::makeCounter ( std::string const & prefix,
std::string const & name )
inherited

Definition at line 62 of file Collector.h.

◆ makeEvent() [2/2]

Event beast::insight::Collector::makeEvent ( std::string const & prefix,
std::string const & name )
inherited

Definition at line 78 of file Collector.h.

◆ makeGauge() [2/2]

Gauge beast::insight::Collector::makeGauge ( std::string const & prefix,
std::string const & name )
inherited

Definition at line 94 of file Collector.h.

◆ makeMeter() [2/2]

Meter beast::insight::Collector::makeMeter ( std::string const & prefix,
std::string const & name )
inherited

Definition at line 110 of file Collector.h.

Member Data Documentation

◆ name_

std::string const beast::insight::detail::GroupImp::name_
private

Definition at line 24 of file Groups.cpp.

◆ collector_

Collector::ptr beast::insight::detail::GroupImp::collector_
private

Definition at line 25 of file Groups.cpp.