def dispatch_stat(result, name, key, conf):
 if (result is None):
  collectd.warning(('mesos-slave plugin: Value not found for %s' % name))
  return
 estype = key.type
 value = result
 log_verbose(conf['verboseLogging'], ('Sending value[%s]: %s=%s for instance:%s' % (estype, name, value, conf['instance'])))
 val = collectd.Values(plugin='mesos-slave')
 val.type = estype
 val.type_instance = name
 val.values = [value]
 val.plugin_instance = conf['instance']
 val.meta = {'0': True}
 val.dispatch()

def dispatch_stat ( result , name , key , conf ) : if ( result is None ) : collectd . warning ( ( 'mesos-slave plugin: Value not found for %s' % name ) ) return estype = key . type value = result log_verbose ( conf [ 'verboseLogging' ] , ( 'Sending value[%s]: %s=%s for instance:%s' % ( estype , name , value , conf [ 'instance' ] ) ) ) val = collectd . Values ( plugin = 'mesos-slave' ) val . type = estype val . type_instance = name val . values = [ value ] val . plugin_instance = conf [ 'instance' ] val . meta = { '0' : True } val . dispatch ( )
read a key from info response data and dispatch a value .