Class: Edge::Sample

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/outputs/Edge/sample.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timestamp_param, value_param) ⇒ Sample

Returns a new instance of Sample.



6
7
8
9
# File 'lib/logstash/outputs/Edge/sample.rb', line 6

def initialize(timestamp_param, value_param)
    timestamp = timestamp_param
    value = value_param
end

Instance Attribute Details

#timestampObject (readonly)

Returns the value of attribute timestamp.



4
5
6
# File 'lib/logstash/outputs/Edge/sample.rb', line 4

def timestamp
  @timestamp
end

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/logstash/outputs/Edge/sample.rb', line 4

def value
  @value
end