set data ts for alarm startTs in AlarmState

This commit is contained in:
YevhenBondarenko 2021-02-04 16:26:50 +02:00 committed by Andrew Shvayka
parent b6299623fe
commit fdf1e7177e

View File

@ -223,7 +223,7 @@ class AlarmState {
currentAlarm.setType(alarmDefinition.getAlarmType());
currentAlarm.setStatus(AlarmStatus.ACTIVE_UNACK);
currentAlarm.setSeverity(severity);
currentAlarm.setStartTs(System.currentTimeMillis());
currentAlarm.setStartTs(dataSnapshot.getTs());
currentAlarm.setEndTs(currentAlarm.getStartTs());
currentAlarm.setDetails(createDetails(ruleState));
currentAlarm.setOriginator(originator);