|
xrpld
|
Ledger-age gauges reported to the insight collector. More...

Public Member Functions | |
| template<class Handler> | |
| Stats (Handler const &handler, beast::insight::Collector::Ptr const &collector) | |
| Registers the hook and the gauges. | |
Public Attributes | |
| beast::insight::Hook | hook |
| Keeps the sampling callback registered for as long as Stats lives. | |
| beast::insight::Gauge | validatedLedgerAge |
| Age of the validated ledger, in seconds, counted from its sign time; two weeks when there is none. | |
| beast::insight::Gauge | publishedLedgerAge |
| Age of the published ledger, in seconds; two weeks when there is none. | |
Ledger-age gauges reported to the insight collector.
The collector calls the hook, which samples the two ages; nothing here is configurable.
Definition at line 1063 of file LedgerMaster.h.
| xrpl::LedgerMaster::Stats::Stats | ( | Handler const & | handler, |
| beast::insight::Collector::Ptr const & | collector ) |
Registers the hook and the gauges.
| handler | Callable the collector invokes to sample the gauges. |
| collector | Sink the gauges are reported to. |
Definition at line 1072 of file LedgerMaster.h.
| beast::insight::Hook xrpl::LedgerMaster::Stats::hook |
Keeps the sampling callback registered for as long as Stats lives.
Definition at line 1082 of file LedgerMaster.h.
| beast::insight::Gauge xrpl::LedgerMaster::Stats::validatedLedgerAge |
Age of the validated ledger, in seconds, counted from its sign time; two weeks when there is none.
Definition at line 1088 of file LedgerMaster.h.
| beast::insight::Gauge xrpl::LedgerMaster::Stats::publishedLedgerAge |
Age of the published ledger, in seconds; two weeks when there is none.
Definition at line 1093 of file LedgerMaster.h.