Wludzik, Jozef | 1477fe6 | 2021-01-02 11:56:10 +0100 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Krzysztof Grobelny | 51f0fd5 | 2021-12-28 16:32:08 +0100 | [diff] [blame] | 3 | #include "types/duration_types.hpp" |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 4 | #include "types/trigger_types.hpp" |
Krzysztof Grobelny | 51f0fd5 | 2021-12-28 16:32:08 +0100 | [diff] [blame] | 5 | |
Wludzik, Jozef | 1477fe6 | 2021-01-02 11:56:10 +0100 | [diff] [blame] | 6 | #include <cstdint> |
| 7 | #include <string> |
| 8 | |
| 9 | namespace interfaces |
| 10 | { |
| 11 | |
| 12 | class TriggerAction |
| 13 | { |
| 14 | public: |
| 15 | virtual ~TriggerAction() = default; |
| 16 | |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 17 | virtual void commit(const std::string& triggerId, |
| 18 | const ThresholdName thresholdName, |
| 19 | const std::string& sensorId, |
| 20 | const Milliseconds timestamp, |
| 21 | const TriggerValue value) = 0; |
Wludzik, Jozef | 1477fe6 | 2021-01-02 11:56:10 +0100 | [diff] [blame] | 22 | }; |
| 23 | } // namespace interfaces |