예제 #1
0
 def _getMetricConf(self, host_id):
     try:
         return self._temp[host_id]
     except KeyError, e:
         metric_conf = host_metric_conf(host_id)
         self._temp[host_id] = metric_conf
         return metric_conf
예제 #2
0
 def metricList(self, hostID):
     try:
         metric_list = host_metric_conf(hostID)
         #logger.warning(type(metric_list))
         return 1, metric_list
     except Exception, e:
         logger.exception("")
         return 0, ''