@declared
def perf(obj_ref, metric_name):
 obj = get_object(obj_ref)
 p = PerfDatas(obj.perf_data)
 if (metric_name in p):
  logger.debug('[trigger] I found the perfdata')
  return p[metric_name].value
 logger.debug('[trigger] I am in perf command')
 return None

@ declared def perf ( obj_ref , metric_name ) : obj = get_object ( obj_ref ) p = PerfDatas ( obj . perf_data ) if ( metric_name in p ) : logger . debug ( '[trigger] I found the perfdata' ) return p [ metric_name ] . value logger . debug ( '[trigger] I am in perf command' ) return None
get perf data from a service .