コード例 #1
0
    def aodh(cls):
        """aodh client

        :rtype: aodhclient.v2.client.Client
        """
        if not cls._aodh:
            cls._aodh = os_clients.aodh_client(cls._conf)
        return cls._aodh
コード例 #2
0
 def client(self):
     if not self._client:
         self._client = os_clients.aodh_client()
     return self._client
コード例 #3
0
ファイル: aodh_notifier.py プロジェクト: wookiist/vitrage
 def __init__(self):
     super(AodhNotifier, self).__init__()
     self.client = os_clients.aodh_client()