xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
include
xrpl
beast
insight
Groups.h
1
#pragma once
2
3
#include <xrpl/beast/insight/Collector.h>
4
#include <xrpl/beast/insight/Group.h>
5
6
#include <
memory
>
7
#include <
string
>
8
9
namespace
beast::insight
{
10
14
class
Groups
15
{
16
public
:
17
virtual
~Groups
() = 0;
18
23
virtual
Group::Ptr
const
&
24
get
(
std::string
const
& name) = 0;
25
26
Group::Ptr
const
&
27
operator[]
(
std::string
const
& name)
28
{
29
return
get
(name);
30
}
31
32
};
33
37
std::unique_ptr<Groups>
38
makeGroups
(
Collector::Ptr
const
& collector);
39
40
}
// namespace beast::insight
std::string
beast::insight::Collector::Ptr
std::shared_ptr< Collector > Ptr
Definition
Collector.h:29
beast::insight::Group::Ptr
std::shared_ptr< Group > Ptr
Definition
Group.h:16
beast::insight::Groups
A container for managing a set of metric groups.
Definition
Groups.h:15
beast::insight::Groups::~Groups
virtual ~Groups()=0
beast::insight::Groups::operator[]
Group::Ptr const & operator[](std::string const &name)
Definition
Groups.h:27
beast::insight::Groups::get
virtual Group::Ptr const & get(std::string const &name)=0
Find or create a new collector with a given name.
memory
beast::insight
Definition
Collector.h:13
beast::insight::makeGroups
std::unique_ptr< Groups > makeGroups(Collector::Ptr const &collector)
Create a group container that uses the specified collector.
Definition
Groups.cpp:115
string
std::unique_ptr
Generated by
1.17.0