1#ifndef XRPL_OVERLAY_TXMETRICS_H_INCLUDED 
    2#define XRPL_OVERLAY_TXMETRICS_H_INCLUDED 
    4#include <xrpl/json/json_value.h> 
    5#include <xrpl/protocol/messages.h> 
    7#include <boost/circular_buffer.hpp> 
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
 
void addMetrics(std::uint32_t val2)
Add metrics to m2.
 
MultipleMetrics(bool ptu1=true, bool ptu2=true)
 
Run single metrics rolling average.
 
boost::circular_buffer< std::uint64_t > rollingAvgAggreg
 
clock_type::time_point intervalStart
 
SingleMetrics(bool ptu=true)
Class constructor.
 
void addMetrics(std::uint32_t val)
Add metrics value.
 
Run transaction reduce-relay feature related metrics.
 
SingleMetrics suppressedPeers
 
MultipleMetrics transactions
 
MultipleMetrics getLedger
 
void addMetrics(protocol::MessageType type, std::uint32_t val)
Add protocol message metrics.
 
SingleMetrics selectedPeers
 
MultipleMetrics ledgerData
 
Json::Value json() const
Get json representation of the metrics.