Searched refs:unit_type (Results 1 – 2 of 2) sorted by relevance
76 def __init__(self, value, unit_type, unit, name=None): argument77 if unit_type not in CONVERSION_TABLES:80 unit_type, str(CONVERSION_TABLES.keys)))84 self._unit_type = unit_type
112 unit_type = 'power'114 unit_type = 'current'116 unit_type = 'voltage'123 metrics.append(power_metrics.Metric(avg, unit_type, unit, name=name))