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
namespace
beast::insight
{
8
13
class
StatsDCollector
:
public
Collector
14
{
15
public
:
16
explicit
StatsDCollector
() =
default
;
17
23
static
std::shared_ptr<StatsDCollector>
24
make
(
IP::Endpoint
const
& address,
std::string
const
& prefix,
Journal
journal);
25
};
26
27
}
// namespace beast::insight
std::string
beast::IP::Endpoint
A version-independent IP address and port combination.
Definition
IPEndpoint.h:17
beast::Journal
A generic endpoint for log messages.
Definition
Journal.h:38
beast::insight::Collector
Interface for a manager that allows collection of metrics.
Definition
Collector.h:24
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:719
beast::insight
Definition
Collector.h:11
std::shared_ptr
Generated by
1.16.1