X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2ims%2Fdomain%2Fevents.py;h=ede48d2003c1257bb0d32667d1bca7418362d0a1;hb=cd999dd33a2449fd8480fd641678360a749e5498;hp=6f81a8463851e833584e76d2ebca074bf6f69934;hpb=3da89330f3837ac6cffd2cad4c4018c9f8c3327d;p=pti%2Fo2.git diff --git a/o2ims/domain/events.py b/o2ims/domain/events.py index 6f81a84..ede48d2 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 @@ -30,6 +31,14 @@ class OcloudChanged(Event): @dataclass class ResourceTypeChanged(Event): id: str + notificationEventType: NotificationEventEnum + updatetime: datetime.now() + + +@dataclass +class DmsChanged(Event): + id: str + notificationEventType: NotificationEventEnum updatetime: datetime.now() @@ -49,6 +58,7 @@ class ResourceChanged(Event): @dataclass -class RegistrationChanged(Event): +class AlarmEventChanged(Event): id: str + notificationEventType: AlarmNotificationEventEnum updatetime: datetime.now()