vendor/bundle/jruby/2.3.0/gems/logstash-input-ganglia-3.1.4/lib/logstash/inputs/ganglia/gmondpacket.rb
# Parsing a data packet : type 133..135
# Requires metadata to be available for correct parsing of the value
Parsing a data packet : type 133..135
Requires metadata to be available for correct parsing of the value
Parsing a data packet : type 133 .. 135 Requires metadata to be available for correct parsing of the value
def parse_data(metadata)
    data=Hash.new
    data['hostname']=@xdr.string
    metricname=@xdr.string
    data['name']=metricname
    data['spoof']=@xdr.uint32
    data['format']=@xdr.string
    data['val']=parse_value(@type)
    data['tn']=0
    return data
  end
def parse_data ( metadata ) data = Hash . new data [ 'hostname' ] = @xdr . string metricname = @xdr . string data [ 'name' ] = metricname data [ 'spoof' ] = @xdr . uint32 data [ 'format' ] = @xdr . string data [ 'val' ] = parse_value ( @type ) data [ 'tn' ] = 0 return data end
Parsing a data packet : type 133..135
Requires metadata to be available for correct parsing of the value
Parsing a data packet : type 133 .. 135 Requires metadata to be available for correct parsing of the value
# If we received a packet, last update was 0 time ago
metadata
<not_specific>