Allows a reaction to record telemetry data using a given Metric.
More...
#include <xronos/sdk/reaction.hh>
|
| MetricEffect (Metric &metric, ReactionContext context) |
| Constructor.
|
void | record (double value) noexcept |
| Record a value at the current timestamp.
|
void | record (std::int64_t value) noexcept |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
Allows a reaction to record telemetry data using a given Metric.
◆ MetricEffect()
Constructor.
- Parameters
-
metric | The Metric for which the reaction should be able to record data. |
context | The context of the reaction the effect is declared for. Can be obtained using context(). |
◆ record()
void xronos::sdk::BaseReaction::MetricEffect::record |
( |
double | value | ) |
|
|
noexcept |
Record a value at the current timestamp.
- Parameters
-
value | The value to record. |
The documentation for this class was generated from the following file: