rippled
|
A metric for reporting event timing. More...
Public Types | |
using | value_type = EventImpl::value_type |
Public Member Functions | |
Event () | |
Create a null metric. More... | |
Event (std::shared_ptr< EventImpl > const &impl) | |
Create the metric reference the specified implementation. More... | |
template<class Rep , class Period > | |
void | notify (std::chrono::duration< Rep, Period > const &value) const |
Push an event notification. More... | |
std::shared_ptr< EventImpl > const & | impl () const |
Private Attributes | |
std::shared_ptr< EventImpl > | m_impl |
A metric for reporting event timing.
An event is an operation that has an associated millisecond time, or other integral value. Because events happen at a specific moment, the metric only supports a push-style interface.
This is a lightweight reference wrapper which is cheap to copy and assign. When the last reference goes away, the metric is no longer collected.
beast::insight::Event::Event | ( | ) |
|
explicit |
void beast::insight::Event::notify | ( | std::chrono::duration< Rep, Period > const & | value | ) | const |
std::shared_ptr<EventImpl> const& beast::insight::Event::impl | ( | ) | const |
|
private |