blob: 7e0babdf624067cc52013c91f2d282c250b44c31 [file] [log] [blame]
Wludzik, Jozef1477fe62021-01-02 11:56:10 +01001#pragma once
2
Krzysztof Grobelny51f0fd52021-12-28 16:32:08 +01003#include "types/duration_types.hpp"
Szymon Dompkeb7b7e1b2022-05-19 10:15:48 +02004#include "types/trigger_types.hpp"
Krzysztof Grobelny51f0fd52021-12-28 16:32:08 +01005
Wludzik, Jozef1477fe62021-01-02 11:56:10 +01006#include <cstdint>
7#include <string>
8
9namespace interfaces
10{
11
12class TriggerAction
13{
14 public:
15 virtual ~TriggerAction() = default;
16
Szymon Dompkeb7b7e1b2022-05-19 10:15:48 +020017 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, Jozef1477fe62021-01-02 11:56:10 +010022};
23} // namespace interfaces