@declared
def allperfs(obj_ref):
 obj = get_object(obj_ref)
 p = PerfDatas(obj.perf_data)
 logger.debug('[trigger] I get all perfdatas')
 return dict([(metric.name, p[metric.name]) for metric in p])

@ declared def allperfs ( obj_ref ) : obj = get_object ( obj_ref ) p = PerfDatas ( obj . perf_data ) logger . debug ( '[trigger] I get all perfdatas' ) return dict ( [ ( metric . name , p [ metric . name ] ) for metric in p ] )
get all perfdatas from a service or a host .