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
파일: base.py 프로젝트: danoffek/vitrage
 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
파일: driver.py 프로젝트: openstack/vitrage
 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
파일: base.py 프로젝트: openstack/vitrage
 def setUpClass(cls):
     super(BaseAlarmsTest, cls).setUpClass()
     cls.ceilometer_client = os_clients.ceilometer_client(cls.conf)