Lines Matching refs:alarmKey

148     for (auto& [alarmKey, timer] : alarms)  in checkAlarms()
150 const auto& [sensorPath, shutdownType, alarmType] = alarmKey; in checkAlarms()
169 checkAlarm(value, alarmKey); in checkAlarms()
196 AlarmKey alarmKey{sensorPath, *type, AlarmType::low}; in propertiesChanged() local
197 auto alarm = alarms.find(alarmKey); in propertiesChanged()
200 alarms.emplace(alarmKey, nullptr); in propertiesChanged()
202 checkAlarm(std::get<bool>(properties.at(lowAlarmName)), alarmKey); in propertiesChanged()
208 AlarmKey alarmKey{sensorPath, *type, AlarmType::high}; in propertiesChanged() local
209 auto alarm = alarms.find(alarmKey); in propertiesChanged()
212 alarms.emplace(alarmKey, nullptr); in propertiesChanged()
214 checkAlarm(std::get<bool>(properties.at(highAlarmName)), alarmKey); in propertiesChanged()
218 void ShutdownAlarmMonitor::checkAlarm(bool value, const AlarmKey& alarmKey) in checkAlarm() argument
220 auto alarm = alarms.find(alarmKey); in checkAlarm()
232 startTimer(alarmKey); in checkAlarm()
239 stopTimer(alarmKey); in checkAlarm()
244 void ShutdownAlarmMonitor::startTimer(const AlarmKey& alarmKey) in startTimer() argument
246 const auto& [sensorPath, shutdownType, alarmType] = alarmKey; in startTimer()
251 auto alarm = alarms.find(alarmKey); in startTimer()
270 createEventLog(alarmKey, true, value); in startTimer()
279 auto previousStartTime = timestamps.get().find(alarmKey); in startTimer()
323 event, std::bind(&ShutdownAlarmMonitor::timerExpired, this, alarmKey)); in startTimer()
329 timestamps.add(alarmKey, now); in startTimer()
332 void ShutdownAlarmMonitor::stopTimer(const AlarmKey& alarmKey) in stopTimer() argument
334 const auto& [sensorPath, shutdownType, alarmType] = alarmKey; in stopTimer()
340 auto alarm = alarms.find(alarmKey); in stopTimer()
346 createEventLog(alarmKey, false, value); in stopTimer()
357 timestamps.erase(alarmKey); in stopTimer()
379 void ShutdownAlarmMonitor::timerExpired(const AlarmKey& alarmKey) in timerExpired() argument
381 const auto& [sensorPath, shutdownType, alarmType] = alarmKey; in timerExpired()
395 createEventLog(alarmKey, true, value, true); in timerExpired()
401 timestamps.erase(alarmKey); in timerExpired()
428 const AlarmKey& alarmKey, bool alarmValue, in createEventLog() argument
432 const auto& [sensorPath, shutdownType, alarmType] = alarmKey; in createEventLog()