C++ Actor Framework 0.19
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | List of all members
caf::telemetry::dbl_gauge Class Reference

A metric that represents a single integer value that can arbitrarily go up and down. More...

#include <dbl_gauge.hpp>

Public Types

using value_type = double
 
using family_setting = unit_t
 

Public Member Functions

 dbl_gauge (double value) noexcept
 
 dbl_gauge (span< const label >) noexcept
 
void inc () noexcept
 Increments the gauge by 1.
 
void inc (double amount) noexcept
 Increments the gauge by amount.
 
void dec () noexcept
 Decrements the gauge by 1.
 
void dec (double amount) noexcept
 Decrements the gauge by amount.
 
void value (double x) noexcept
 Sets the gauge to x.
 
double value () const noexcept
 Returns the current value of the gauge.
 

Static Public Attributes

static constexpr metric_type runtime_type = metric_type::dbl_gauge
 

Detailed Description

A metric that represents a single integer value that can arbitrarily go up and down.


The documentation for this class was generated from the following file: