def ceilometer(cls):
        """ceilometer client

        :rtype: ceilometerclient.v2.client.Client
        """
        if not cls._ceilometer:
            cls._ceilometer = os_clients.ceilometer_client(cls._conf)
        return cls._ceilometer
Пример #2
0
 def __init__(self, conf):
     super(AodhNotifier, self).__init__(conf)
     self.client = os_clients.ceilometer_client(conf)
Пример #3
0
 def setUpClass(cls):
     super(BaseTemplateTest, cls).setUpClass()
     cls.ceilometer_client = os_clients.ceilometer_client(cls.conf)
Пример #4
0
 def client(self):
     if not self._client:
         self._client = os_clients.ceilometer_client(self.conf)
     return self._client
Пример #5
0
 def client(self):
     if not self._client:
         self._client = os_clients.ceilometer_client(self.conf)
     return self._client
Пример #6
0
 def __init__(self, conf):
     super(AodhNotifier, self).__init__(conf)
     self.client = os_clients.ceilometer_client(conf)
Пример #7
0
 def setUpClass(cls):
     super(BaseAlarmsTest, cls).setUpClass()
     cls.ceilometer_client = os_clients.ceilometer_client(cls.conf)