20#ifndef RIPPLE_CORE_LOADMONITOR_H_INCLUDED
21#define RIPPLE_CORE_LOADMONITOR_H_INCLUDED
23#include <xrpld/core/LoadEvent.h>
24#include <xrpl/basics/UptimeClock.h>
25#include <xrpl/beast/utility/Journal.h>
A generic endpoint for log messages.
void setTargetLatency(std::chrono::milliseconds avg, std::chrono::milliseconds pk)
void addSamples(int count, std::chrono::milliseconds latency)
std::chrono::milliseconds mLatencyMSAvg
void addLoadSample(LoadEvent const &sample)
std::chrono::milliseconds mTargetLatencyAvg
std::chrono::milliseconds mLatencyMSPeak
bool isOverTarget(std::chrono::milliseconds avg, std::chrono::milliseconds peak)
std::chrono::milliseconds mTargetLatencyPk
UptimeClock::time_point mLastUpdate
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::chrono::milliseconds latencyAvg
std::chrono::milliseconds latencyPeak