Lines Matching refs:metrics
2960 def mapMetricsHexToChar(metrics): argument
2968 if metricsFlagMap.get(metrics):
2969 return metricsFlagMap.get(metrics), False
2970 elif metricsReservedFlagMap.get(metrics):
2971 return metricsReservedFlagMap.get(metrics), True
2973 logging.warning("Not found flag mapping for given metrics: {}".format(metrics))
2977 def getMetricsFlagsFromHexStr(metrics): argument
2981 if metrics.startswith('0x'):
2982 metrics = metrics[2:]
2983 hexMetricsArray = bytearray.fromhex(metrics)
2994 def LinkMetricsSingleReq(self, dst_addr, metrics): argument
2995 cmd = 'linkmetrics query %s single %s' % (dst_addr, self.getMetricsFlagsFromHexStr(metrics))
2999 def LinkMetricsMgmtReq(self, dst_addr, type_, flags, metrics, series_id): argument
3004 cmd += ' %s' % (self.getMetricsFlagsFromHexStr(metrics))
3008 cmd += ' register %s' % (self.getMetricsFlagsFromHexStr(metrics))