#include <>>
|
| static const float | UNKNOWN = FLT_MIN |
| | Use for unknown min or max values. More...
|
| |
Class to represent a RRD data source.
- Author
- Tim Niemueller
Definition at line 40 of file rrd_descriptions.h.
◆ Type
Data source type.
| Enumerator |
|---|
| GAUGE | Gauge value.
|
| COUNTER | Counter value.
|
| DERIVE | Derived value.
|
| ABSOLUTE | Absolute value.
|
| COMPUTE | Computed value.
|
Definition at line 44 of file rrd_descriptions.h.
◆ RRDDataSource() [1/3]
| fawkes::RRDDataSource::RRDDataSource |
( |
const char * |
name, |
|
|
Type |
type, |
|
|
unsigned int |
heartbeat = 30, |
|
|
float |
min = 0, |
|
|
float |
max = UNKNOWN |
|
) |
| |
Constructor for regular data source.
- Parameters
-
| name | name of the data source |
| type | type of the data source, may not be COMPUTE. |
| heartbeat | Number of seconds after which a new value must be received before the value is considered to be unknown. |
| min | minimum value, use UNKNOWN constant if not known |
| max | maximum value, use UNKNOWN constant if not known |
Definition at line 59 of file rrd_descriptions.cpp.
◆ RRDDataSource() [2/3]
| fawkes::RRDDataSource::RRDDataSource |
( |
const char * |
name, |
|
|
const char * |
rpn_expression |
|
) |
| |
Constructor for expression RRDs.
- Parameters
-
| name | name of the data source |
| rpn_expression | RPN expression |
Definition at line 83 of file rrd_descriptions.cpp.
◆ RRDDataSource() [3/3]
| fawkes::RRDDataSource::RRDDataSource |
( |
const RRDDataSource & |
other | ) |
|
◆ ~RRDDataSource()
| fawkes::RRDDataSource::~RRDDataSource |
( |
| ) |
|
◆ get_heartbeat()
| unsigned int fawkes::RRDDataSource::get_heartbeat |
( |
| ) |
const |
|
inline |
◆ get_max()
| float fawkes::RRDDataSource::get_max |
( |
| ) |
const |
|
inline |
◆ get_min()
| float fawkes::RRDDataSource::get_min |
( |
| ) |
const |
|
inline |
◆ get_name()
| const char* fawkes::RRDDataSource::get_name |
( |
| ) |
const |
|
inline |
◆ get_rpn_expression()
| const char* fawkes::RRDDataSource::get_rpn_expression |
( |
| ) |
const |
|
inline |
◆ get_type()
| Type fawkes::RRDDataSource::get_type |
( |
| ) |
const |
|
inline |
◆ operator=()
Assignment operator.
- Parameters
-
| other | Instance to copy data from. |
- Returns
- reference to this instance
Definition at line 124 of file rrd_descriptions.cpp.
◆ to_string()
| const char * fawkes::RRDDataSource::to_string |
( |
| ) |
const |
Get string reprensetation.
- Returns
- string representation suitable to be bassed to rrd_create().
Definition at line 149 of file rrd_descriptions.cpp.
◆ UNKNOWN
| const float fawkes::RRDDataSource::UNKNOWN = FLT_MIN |
|
static |
The documentation for this class was generated from the following files: