4 @file MetricTagsCount.py 5 @author scorp <developers.hce@gmail.com> 6 @link http://hierarchical-cluster-engine.com/ 7 @copyright Copyright © 2013 IOIX Ukraine 8 @license http://hierarchical-cluster-engine.com/license/ 9 @package HCE project node API 17 from BaseMetric
import BaseMetric
32 super(MetricTagsCount, self).
__init__(names)
40 ret = {
"count": 0,
"percent": 0}
41 for key
in result.tags:
42 if result.isTagFilled(key):
44 if len(result.tags) > 0:
45 ret[
"percent"] = ret[
"count"] * 100 / len(result.tags)
def retForMultiNames(self, retDict, metricName)