A reaction's effect on a Metric. More...
#include <xronos/sdk/reaction.hh>
Public Member Functions | |
| MetricEffect (Metric &metric, const ReactionContext &context) | |
| Constructor. | |
| void | record (double value) |
| Record a value at the current timestamp. | |
| void | record (std::int64_t value) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
A reaction's effect on a Metric.
Through it the handler records values.
| xronos::sdk::BaseReaction::MetricEffect::MetricEffect | ( | Metric & | metric, |
| const ReactionContext & | context ) |
| void xronos::sdk::BaseReaction::MetricEffect::record | ( | double | value | ) |
Record a value at the current timestamp.
| value | The value to record. |
| ValidationError | If called before execution has started. |