示例#1
0
 def pmid_name_lookup(self, cluster, item):
     """
     Lookup the name associated with a performance metric identifier.
     """
     try:
         name = self._metric_names[cpmda.pmda_pmid(cluster, item)]
     except KeyError:
         name = None
     return name
示例#2
0
 def pmid(cluster, item):
     return cpmda.pmda_pmid(cluster, item)
示例#3
0
文件: pmda.py 项目: tongfw/pcp
 def pmid(cluster, item):
     return cpmda.pmda_pmid(cluster, item)