Wludzik, Jozef | d960e1f | 2021-01-08 09:25:59 +0100 | [diff] [blame] | 1 | #include "trigger_actions.hpp" |
| 2 | |
Krzysztof Grobelny | e6d4887 | 2022-02-08 13:41:30 +0100 | [diff] [blame] | 3 | #include "messages/update_report_ind.hpp" |
Szymon Dompke | f670b02 | 2022-03-16 19:21:11 +0100 | [diff] [blame] | 4 | #include "types/trigger_types.hpp" |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 5 | #include "utils/clock.hpp" |
Krzysztof Grobelny | e6d4887 | 2022-02-08 13:41:30 +0100 | [diff] [blame] | 6 | #include "utils/messanger.hpp" |
| 7 | |
Wludzik, Jozef | d960e1f | 2021-01-08 09:25:59 +0100 | [diff] [blame] | 8 | #include <phosphor-logging/log.hpp> |
| 9 | |
| 10 | #include <ctime> |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 11 | #include <iomanip> |
| 12 | #include <sstream> |
Wludzik, Jozef | d960e1f | 2021-01-08 09:25:59 +0100 | [diff] [blame] | 13 | |
| 14 | namespace action |
| 15 | { |
| 16 | |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 17 | namespace |
| 18 | { |
Krzysztof Grobelny | 51f0fd5 | 2021-12-28 16:32:08 +0100 | [diff] [blame] | 19 | std::string timestampToString(Milliseconds timestamp) |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 20 | { |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 21 | std::time_t t = static_cast<time_t>( |
| 22 | std::chrono::duration_cast<std::chrono::seconds>(timestamp).count()); |
| 23 | std::stringstream ss; |
| 24 | ss << std::put_time(std::gmtime(&t), "%FT%T.") << std::setw(3) |
| 25 | << std::setfill('0') << timestamp.count() % 1000 << 'Z'; |
| 26 | return ss.str(); |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 27 | } |
| 28 | } // namespace |
| 29 | |
| 30 | namespace numeric |
| 31 | { |
| 32 | |
Wludzik, Jozef | d960e1f | 2021-01-08 09:25:59 +0100 | [diff] [blame] | 33 | static const char* getDirection(double value, double threshold) |
| 34 | { |
| 35 | if (value < threshold) |
| 36 | { |
| 37 | return "decreasing"; |
| 38 | } |
| 39 | if (value > threshold) |
| 40 | { |
| 41 | return "increasing"; |
| 42 | } |
| 43 | throw std::runtime_error("Invalid value"); |
| 44 | } |
| 45 | |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 46 | void LogToJournal::commit(const std::string& triggerId, |
| 47 | const ThresholdName thresholdNameInIn, |
| 48 | const std::string& sensorName, |
| 49 | const Milliseconds timestamp, |
| 50 | const TriggerValue triggerValue) |
Wludzik, Jozef | d960e1f | 2021-01-08 09:25:59 +0100 | [diff] [blame] | 51 | { |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 52 | double value = std::get<double>(triggerValue); |
| 53 | std::string thresholdName = ::numeric::typeToString(type); |
| 54 | auto direction = getDirection(value, threshold); |
| 55 | |
| 56 | std::string msg = "Numeric threshold '" + thresholdName + "' of trigger '" + |
| 57 | triggerId + "' is crossed on sensor " + sensorName + |
| 58 | ", recorded value: " + std::to_string(value) + |
| 59 | ", crossing direction: " + direction + |
| 60 | ", timestamp: " + timestampToString(timestamp); |
Wludzik, Jozef | d960e1f | 2021-01-08 09:25:59 +0100 | [diff] [blame] | 61 | |
| 62 | phosphor::logging::log<phosphor::logging::level::INFO>(msg.c_str()); |
| 63 | } |
| 64 | |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 65 | const char* LogToRedfishEventLog::getRedfishMessageId() const |
Wludzik, Jozef | d960e1f | 2021-01-08 09:25:59 +0100 | [diff] [blame] | 66 | { |
| 67 | switch (type) |
| 68 | { |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 69 | case ::numeric::Type::upperCritical: |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 70 | return redfish_message_ids::TriggerNumericCritical; |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 71 | case ::numeric::Type::lowerCritical: |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 72 | return redfish_message_ids::TriggerNumericCritical; |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 73 | case ::numeric::Type::upperWarning: |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 74 | return redfish_message_ids::TriggerNumericWarning; |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 75 | case ::numeric::Type::lowerWarning: |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 76 | return redfish_message_ids::TriggerNumericWarning; |
Wludzik, Jozef | d960e1f | 2021-01-08 09:25:59 +0100 | [diff] [blame] | 77 | } |
| 78 | throw std::runtime_error("Invalid type"); |
| 79 | } |
| 80 | |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 81 | void LogToRedfishEventLog::commit(const std::string& triggerId, |
| 82 | const ThresholdName thresholdNameInIn, |
| 83 | const std::string& sensorName, |
| 84 | const Milliseconds timestamp, |
| 85 | const TriggerValue triggerValue) |
Wludzik, Jozef | d960e1f | 2021-01-08 09:25:59 +0100 | [diff] [blame] | 86 | { |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 87 | double value = std::get<double>(triggerValue); |
| 88 | std::string thresholdName = ::numeric::typeToString(type); |
| 89 | auto direction = getDirection(value, threshold); |
| 90 | auto timestampStr = timestampToString(timestamp); |
| 91 | |
Wludzik, Jozef | d960e1f | 2021-01-08 09:25:59 +0100 | [diff] [blame] | 92 | phosphor::logging::log<phosphor::logging::level::INFO>( |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 93 | "Logging numeric trigger action to Redfish Event Log.", |
| 94 | phosphor::logging::entry("REDFISH_MESSAGE_ID=%s", |
| 95 | getRedfishMessageId()), |
| 96 | phosphor::logging::entry("REDFISH_MESSAGE_ARGS=%s,%s,%s,%f,%s,%s", |
| 97 | thresholdName.c_str(), triggerId.c_str(), |
| 98 | sensorName.c_str(), value, direction, |
| 99 | timestampStr.c_str())); |
Wludzik, Jozef | d960e1f | 2021-01-08 09:25:59 +0100 | [diff] [blame] | 100 | } |
| 101 | |
Szymon Dompke | 2001301 | 2021-07-23 09:54:20 +0200 | [diff] [blame] | 102 | void fillActions( |
| 103 | std::vector<std::unique_ptr<interfaces::TriggerAction>>& actionsIf, |
| 104 | const std::vector<TriggerAction>& ActionsEnum, ::numeric::Type type, |
Krzysztof Grobelny | e6d4887 | 2022-02-08 13:41:30 +0100 | [diff] [blame] | 105 | double thresholdValue, boost::asio::io_context& ioc, |
Szymon Dompke | 94f71c5 | 2021-12-10 07:16:33 +0100 | [diff] [blame] | 106 | const std::shared_ptr<std::vector<std::string>>& reportIds) |
Szymon Dompke | 2001301 | 2021-07-23 09:54:20 +0200 | [diff] [blame] | 107 | { |
| 108 | actionsIf.reserve(ActionsEnum.size()); |
| 109 | for (auto actionType : ActionsEnum) |
| 110 | { |
| 111 | switch (actionType) |
| 112 | { |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 113 | case TriggerAction::LogToJournal: |
Szymon Dompke | 2001301 | 2021-07-23 09:54:20 +0200 | [diff] [blame] | 114 | { |
| 115 | actionsIf.emplace_back( |
| 116 | std::make_unique<LogToJournal>(type, thresholdValue)); |
| 117 | break; |
| 118 | } |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 119 | case TriggerAction::LogToRedfishEventLog: |
Szymon Dompke | 2001301 | 2021-07-23 09:54:20 +0200 | [diff] [blame] | 120 | { |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 121 | actionsIf.emplace_back(std::make_unique<LogToRedfishEventLog>( |
| 122 | type, thresholdValue)); |
Szymon Dompke | 2001301 | 2021-07-23 09:54:20 +0200 | [diff] [blame] | 123 | break; |
| 124 | } |
| 125 | case TriggerAction::UpdateReport: |
| 126 | { |
| 127 | actionsIf.emplace_back( |
Krzysztof Grobelny | e6d4887 | 2022-02-08 13:41:30 +0100 | [diff] [blame] | 128 | std::make_unique<UpdateReport>(ioc, reportIds)); |
Szymon Dompke | 2001301 | 2021-07-23 09:54:20 +0200 | [diff] [blame] | 129 | break; |
| 130 | } |
| 131 | } |
| 132 | } |
| 133 | } |
| 134 | |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 135 | } // namespace numeric |
| 136 | |
| 137 | namespace discrete |
| 138 | { |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 139 | |
| 140 | void LogToJournal::commit(const std::string& triggerId, |
| 141 | const ThresholdName thresholdNameIn, |
| 142 | const std::string& sensorName, |
| 143 | const Milliseconds timestamp, |
| 144 | const TriggerValue triggerValue) |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 145 | { |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 146 | auto value = std::get<std::string>(triggerValue); |
| 147 | |
| 148 | std::string msg = "Discrete condition '" + thresholdNameIn->get() + |
| 149 | "' of trigger '" + triggerId + "' is met on sensor " + |
| 150 | sensorName + ", recorded value: " + value + |
| 151 | ", severity: " + ::discrete::severityToString(severity) + |
| 152 | ", timestamp: " + timestampToString(timestamp); |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 153 | |
| 154 | phosphor::logging::log<phosphor::logging::level::INFO>(msg.c_str()); |
| 155 | } |
| 156 | |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 157 | const char* LogToRedfishEventLog::getRedfishMessageId() const |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 158 | { |
| 159 | switch (severity) |
| 160 | { |
| 161 | case ::discrete::Severity::ok: |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 162 | return redfish_message_ids::TriggerDiscreteOK; |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 163 | case ::discrete::Severity::warning: |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 164 | return redfish_message_ids::TriggerDiscreteWarning; |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 165 | case ::discrete::Severity::critical: |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 166 | return redfish_message_ids::TriggerDiscreteCritical; |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 167 | } |
| 168 | throw std::runtime_error("Invalid severity"); |
| 169 | } |
| 170 | |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 171 | void LogToRedfishEventLog::commit(const std::string& triggerId, |
| 172 | const ThresholdName thresholdNameIn, |
| 173 | const std::string& sensorName, |
| 174 | const Milliseconds timestamp, |
| 175 | const TriggerValue triggerValue) |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 176 | { |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 177 | auto value = std::get<std::string>(triggerValue); |
| 178 | auto timestampStr = timestampToString(timestamp); |
| 179 | |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 180 | phosphor::logging::log<phosphor::logging::level::INFO>( |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 181 | "Logging discrete trigger action to Redfish Event Log.", |
| 182 | phosphor::logging::entry("REDFISH_MESSAGE_ID=%s", |
| 183 | getRedfishMessageId()), |
| 184 | phosphor::logging::entry("REDFISH_MESSAGE_ARGS=%s,%s,%s,%s,%s", |
| 185 | thresholdNameIn->get().c_str(), |
| 186 | triggerId.c_str(), sensorName.c_str(), |
| 187 | value.c_str(), timestampStr.c_str())); |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 188 | } |
| 189 | |
Szymon Dompke | 2001301 | 2021-07-23 09:54:20 +0200 | [diff] [blame] | 190 | void fillActions( |
| 191 | std::vector<std::unique_ptr<interfaces::TriggerAction>>& actionsIf, |
| 192 | const std::vector<TriggerAction>& ActionsEnum, |
Krzysztof Grobelny | e6d4887 | 2022-02-08 13:41:30 +0100 | [diff] [blame] | 193 | ::discrete::Severity severity, boost::asio::io_context& ioc, |
Szymon Dompke | 94f71c5 | 2021-12-10 07:16:33 +0100 | [diff] [blame] | 194 | const std::shared_ptr<std::vector<std::string>>& reportIds) |
Szymon Dompke | 2001301 | 2021-07-23 09:54:20 +0200 | [diff] [blame] | 195 | { |
| 196 | actionsIf.reserve(ActionsEnum.size()); |
| 197 | for (auto actionType : ActionsEnum) |
| 198 | { |
| 199 | switch (actionType) |
| 200 | { |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 201 | case TriggerAction::LogToJournal: |
Szymon Dompke | 2001301 | 2021-07-23 09:54:20 +0200 | [diff] [blame] | 202 | { |
| 203 | actionsIf.emplace_back( |
| 204 | std::make_unique<LogToJournal>(severity)); |
| 205 | break; |
| 206 | } |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 207 | case TriggerAction::LogToRedfishEventLog: |
Szymon Dompke | 2001301 | 2021-07-23 09:54:20 +0200 | [diff] [blame] | 208 | { |
| 209 | actionsIf.emplace_back( |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 210 | std::make_unique<LogToRedfishEventLog>(severity)); |
Szymon Dompke | 2001301 | 2021-07-23 09:54:20 +0200 | [diff] [blame] | 211 | break; |
| 212 | } |
| 213 | case TriggerAction::UpdateReport: |
| 214 | { |
| 215 | actionsIf.emplace_back( |
Krzysztof Grobelny | e6d4887 | 2022-02-08 13:41:30 +0100 | [diff] [blame] | 216 | std::make_unique<UpdateReport>(ioc, reportIds)); |
Szymon Dompke | 2001301 | 2021-07-23 09:54:20 +0200 | [diff] [blame] | 217 | break; |
| 218 | } |
| 219 | } |
| 220 | } |
| 221 | } |
| 222 | |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 223 | namespace onChange |
| 224 | { |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 225 | void LogToJournal::commit(const std::string& triggerId, |
| 226 | const ThresholdName thresholdNameIn, |
| 227 | const std::string& sensorName, |
| 228 | const Milliseconds timestamp, |
| 229 | const TriggerValue triggerValue) |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 230 | { |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 231 | auto value = triggerValueToString(triggerValue); |
| 232 | std::string msg = "Discrete condition 'OnChange' of trigger '" + triggerId + |
| 233 | "' is met on sensor: " + sensorName + |
| 234 | ", recorded value: " + value + |
| 235 | ", timestamp: " + timestampToString(timestamp); |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 236 | |
| 237 | phosphor::logging::log<phosphor::logging::level::INFO>(msg.c_str()); |
| 238 | } |
| 239 | |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 240 | void LogToRedfishEventLog::commit(const std::string& triggerId, |
| 241 | const ThresholdName thresholdNameIn, |
| 242 | const std::string& sensorName, |
| 243 | const Milliseconds timestamp, |
| 244 | const TriggerValue triggerValue) |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 245 | { |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 246 | auto value = triggerValueToString(triggerValue); |
| 247 | auto timestampStr = timestampToString(timestamp); |
| 248 | |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 249 | phosphor::logging::log<phosphor::logging::level::INFO>( |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 250 | "Logging onChange discrete trigger action to Redfish Event Log.", |
| 251 | phosphor::logging::entry("REDFISH_MESSAGE_ID=%s", |
| 252 | redfish_message_ids::TriggerDiscreteOK), |
| 253 | phosphor::logging::entry("REDFISH_MESSAGE_ARGS=%s,%s,%s,%s,%s", |
| 254 | "OnChange", triggerId.c_str(), |
| 255 | sensorName.c_str(), value.c_str(), |
| 256 | timestampStr.c_str())); |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 257 | } |
Szymon Dompke | 2001301 | 2021-07-23 09:54:20 +0200 | [diff] [blame] | 258 | |
| 259 | void fillActions( |
| 260 | std::vector<std::unique_ptr<interfaces::TriggerAction>>& actionsIf, |
Krzysztof Grobelny | e6d4887 | 2022-02-08 13:41:30 +0100 | [diff] [blame] | 261 | const std::vector<TriggerAction>& ActionsEnum, boost::asio::io_context& ioc, |
Szymon Dompke | 94f71c5 | 2021-12-10 07:16:33 +0100 | [diff] [blame] | 262 | const std::shared_ptr<std::vector<std::string>>& reportIds) |
Szymon Dompke | 2001301 | 2021-07-23 09:54:20 +0200 | [diff] [blame] | 263 | { |
| 264 | actionsIf.reserve(ActionsEnum.size()); |
| 265 | for (auto actionType : ActionsEnum) |
| 266 | { |
| 267 | switch (actionType) |
| 268 | { |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 269 | case TriggerAction::LogToJournal: |
Szymon Dompke | 2001301 | 2021-07-23 09:54:20 +0200 | [diff] [blame] | 270 | { |
| 271 | actionsIf.emplace_back(std::make_unique<LogToJournal>()); |
| 272 | break; |
| 273 | } |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 274 | case TriggerAction::LogToRedfishEventLog: |
Szymon Dompke | 2001301 | 2021-07-23 09:54:20 +0200 | [diff] [blame] | 275 | { |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 276 | actionsIf.emplace_back( |
| 277 | std::make_unique<LogToRedfishEventLog>()); |
Szymon Dompke | 2001301 | 2021-07-23 09:54:20 +0200 | [diff] [blame] | 278 | break; |
| 279 | } |
| 280 | case TriggerAction::UpdateReport: |
| 281 | { |
| 282 | actionsIf.emplace_back( |
Krzysztof Grobelny | e6d4887 | 2022-02-08 13:41:30 +0100 | [diff] [blame] | 283 | std::make_unique<UpdateReport>(ioc, reportIds)); |
Szymon Dompke | 2001301 | 2021-07-23 09:54:20 +0200 | [diff] [blame] | 284 | break; |
| 285 | } |
| 286 | } |
| 287 | } |
| 288 | } |
Szymon Dompke | f763c9e | 2021-03-12 09:19:22 +0100 | [diff] [blame] | 289 | } // namespace onChange |
| 290 | } // namespace discrete |
| 291 | |
Szymon Dompke | b7b7e1b | 2022-05-19 10:15:48 +0200 | [diff] [blame] | 292 | void UpdateReport::commit(const std::string& triggerId, |
| 293 | const ThresholdName thresholdNameIn, |
| 294 | const std::string& sensorName, |
| 295 | const Milliseconds timestamp, |
| 296 | const TriggerValue triggerValue) |
Wludzik, Jozef | d960e1f | 2021-01-08 09:25:59 +0100 | [diff] [blame] | 297 | { |
Krzysztof Grobelny | e6d4887 | 2022-02-08 13:41:30 +0100 | [diff] [blame] | 298 | if (reportIds->empty()) |
Wludzik, Jozef | d960e1f | 2021-01-08 09:25:59 +0100 | [diff] [blame] | 299 | { |
Krzysztof Grobelny | e6d4887 | 2022-02-08 13:41:30 +0100 | [diff] [blame] | 300 | return; |
Wludzik, Jozef | d960e1f | 2021-01-08 09:25:59 +0100 | [diff] [blame] | 301 | } |
Krzysztof Grobelny | e6d4887 | 2022-02-08 13:41:30 +0100 | [diff] [blame] | 302 | |
| 303 | utils::Messanger messanger(ioc); |
| 304 | messanger.send(messages::UpdateReportInd{*reportIds}); |
Wludzik, Jozef | d960e1f | 2021-01-08 09:25:59 +0100 | [diff] [blame] | 305 | } |
| 306 | } // namespace action |