xrpld
Loading...
Searching...
No Matches
include
xrpl
beast
insight
StatsDCollector.h
1
#pragma once
2
3
#include <xrpl/beast/insight/Collector.h>
4
#include <xrpl/beast/net/IPEndpoint.h>
5
#include <xrpl/beast/utility/Journal.h>
6
7
#include <
memory
>
8
#include <
string
>
9
10
namespace
beast::insight
{
11
17
class
StatsDCollector
:
public
Collector
18
{
19
public
:
20
explicit
StatsDCollector
() =
default
;
21
28
static
std::shared_ptr<StatsDCollector>
29
make
(
ip::Endpoint
const
& address,
std::string
const
& prefix,
Journal
journal);
30
};
31
32
}
// namespace beast::insight
std::string
beast::Journal
A generic endpoint for log messages.
Definition
Journal.h:44
beast::insight::Collector
Interface for a manager that allows collection of metrics.
Definition
Collector.h:27
beast::insight::StatsDCollector::StatsDCollector
StatsDCollector()=default
beast::insight::StatsDCollector::make
static std::shared_ptr< StatsDCollector > make(ip::Endpoint const &address, std::string const &prefix, Journal journal)
Create a StatsD collector.
Definition
StatsDCollector.cpp:710
beast::ip::Endpoint
A version-independent IP address and port combination.
Definition
IPEndpoint.h:24
memory
beast::insight
Definition
Collector.h:13
std::shared_ptr
string
Generated by
1.16.1