X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=o2ims%2Fdomain%2Fevents.py;h=eb0250f3385e96bed49bed63f4c143c4584934a6;hb=d2f6cc674bf3623caf114a8d7709e70d55ec9340;hp=485804008e3c5609bd959952a44204b8ec0a9731;hpb=c76580a35c3461254e1d8c91025019f52f723021;p=pti%2Fo2.git diff --git a/o2ims/domain/events.py b/o2ims/domain/events.py index 4858040..eb0250f 100644 --- a/o2ims/domain/events.py +++ b/o2ims/domain/events.py @@ -18,6 +18,7 @@ from datetime import datetime from o2common.domain.events import Event from o2ims.domain.subscription_obj import NotificationEventEnum +from o2ims.domain.alarm_obj import AlarmNotificationEventEnum @dataclass @@ -52,3 +53,10 @@ class ResourceChanged(Event): class ConfigurationChanged(Event): id: str updatetime: datetime.now() + + +@dataclass +class AlarmEventChanged(Event): + id: str + notificationEventType: AlarmNotificationEventEnum + updatetime: datetime.now()