Module: Edge

Included in:
Entry, LogStash::Outputs::Percy
Defined in:
lib/logstash/outputs/Edge/batch.rb,
lib/logstash/outputs/Edge/entry.rb,
lib/logstash/outputs/Edge/label.rb,
lib/logstash/outputs/Edge/sample.rb,
lib/logstash/outputs/Edge/TimeSeries.rb

Defined Under Namespace

Classes: Batch, Entry, Label, Sample, TimeSeries

Instance Method Summary collapse

Instance Method Details

#to_ns(s) ⇒ Object



2
3
4
# File 'lib/logstash/outputs/Edge/entry.rb', line 2

def to_ns(s)
    (s.to_f * (10**9)).to_i
end