X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2common%2Fadapter%2Fnotifications.py;fp=o2common%2Fadapter%2Fnotifications.py;h=4c49c1b7aa7ac4767f499590fc05bd7f905b014d;hb=5e02e76308e1677fb106572b885a366eb6c0fbec;hp=0000000000000000000000000000000000000000;hpb=de778bc19d9329d3c1c3c536bfd702423102277b;p=pti%2Fo2.git diff --git a/o2common/adapter/notifications.py b/o2common/adapter/notifications.py new file mode 100644 index 0000000..4c49c1b --- /dev/null +++ b/o2common/adapter/notifications.py @@ -0,0 +1,20 @@ +# pylint: disable=too-few-public-methods +import abc +from o2ims import config + + +SMO_O2_ENDPOINT = config.get_smo_o2endpoint() + + +class AbstractNotifications(abc.ABC): + @abc.abstractmethod + def send(self, message): + raise NotImplementedError + + +class SmoO2Notifications(AbstractNotifications): + def __init__(self, smoO2Endpoint=SMO_O2_ENDPOINT): + self.smoO2Endpoint = smoO2Endpoint + + def send(self, message): + pass