Lines Matching refs:metric
233 def GetMetricQuota(regions_info, zone, metric): argument
248 if quota["metric"] == metric:
250 logger.info("Can't get %s quota info from zone(%s)", metric, zone)
265 for metric in _METRICS:
266 quota = self.GetMetricQuota(regions_info, zone, metric)
269 "Can't query the metric(%s) in zone(%s)", metric, zone)
271 if quota[_LIMIT] - quota[_USAGE] < _REQUIRE_METRICS[metric]:
273 "The metric(%s) is over limit in zone(%s)", metric, zone)
1473 for metric in self.MACHINE_SIZE_METRICS:
1474 if metric not in machine_info_1 or metric not in machine_info_2:
1477 % (metric, machine_info_1, machine_info_2))
1478 cmp_result = machine_info_1[metric] - machine_info_2[metric]