Fix the alarm exception about the alarmDefinition 22/12822/1
authorZhang Rong(Jon) <rong.zhang@windriver.com>
Mon, 1 Jul 2024 15:19:44 +0000 (23:19 +0800)
committerJon Zhang <rong.zhang@windriver.com>
Tue, 2 Jul 2024 03:09:27 +0000 (03:09 +0000)
commitc67a8945bac28645e4ddbbb9d69225f1e830cabc
treec57e363b1545007dc0a312c19cf60aeb41f6b13f
parentd526dada19a291932dd2c235fc2c40f0422ccdd7
Fix the alarm exception about the alarmDefinition

When the alarm is inserted into the database, the alarmDefinition does
not exist a definition to mapping with alarm. It will throw an
exception.

This commit will add the new alarm definitions.

Test Case:
PASS - Test a new alarm without definition before, it worked as
       expect.

Issue-ID: INF-478

Change-Id: I201806298270f0df5ca035768d08efb1add1ab8e
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
(cherry picked from commit 6748085fe78a9ab979d9f29cde6440f7da63d711)
configs/events.yaml [changed mode: 0755->0644]