|
rippled
|
A metric for measuring an integral value. More...
#include <Counter.h>

Public Types | |
| using | value_type = CounterImpl::value_type |
Public Member Functions | |
| Counter () | |
| Create a null metric. | |
| Counter (std::shared_ptr< CounterImpl > const &impl) | |
| Create the metric reference the specified implementation. | |
| std::shared_ptr< CounterImpl > | m_impl |
| void | increment (value_type amount) const |
| Increment the counter. | |
| Counter const & | operator+= (value_type amount) const |
| Counter const & | operator-= (value_type amount) const |
| Counter const & | operator++ () const |
| Counter const & | operator++ (int) const |
| Counter const & | operator-- () const |
| Counter const & | operator-- (int) const |
A metric for measuring an integral value.
A counter is a gauge calculated at the server. The owner of the counter may increment and decrement the value by an amount.
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::Counter::Counter | ( | ) |
|
explicit |
| void beast::insight::Counter::increment | ( | value_type | amount | ) | const |
| Counter const & beast::insight::Counter::operator+= | ( | value_type | amount | ) | const |
| Counter const & beast::insight::Counter::operator-= | ( | value_type | amount | ) | const |
| Counter const & beast::insight::Counter::operator++ | ( | ) | const |
| Counter const & beast::insight::Counter::operator++ | ( | int | ) | const |
| Counter const & beast::insight::Counter::operator-- | ( | ) | const |
| Counter const & beast::insight::Counter::operator-- | ( | int | ) | const |
|
private |