Class: LogStash::Instrument::Snapshot

Inherits:
Object
  • Object
show all
Includes:
Util::Loggable
Defined in:
lib/logstash/instrument/snapshot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util::Loggable

included, #logger, #slow_logger

Constructor Details

#initialize(metric_store, created_at = Time.now) ⇒ Snapshot

Returns a new instance of Snapshot.



10
11
12
13
# File 'lib/logstash/instrument/snapshot.rb', line 10

def initialize(metric_store, created_at = Time.now)
  @metric_store = metric_store
  @created_at = created_at
end

Instance Attribute Details

#created_atObject (readonly)

Returns the value of attribute created_at.



8
9
10
# File 'lib/logstash/instrument/snapshot.rb', line 8

def created_at
  @created_at
end

#metric_storeObject (readonly)

Returns the value of attribute metric_store.



8
9
10
# File 'lib/logstash/instrument/snapshot.rb', line 8

def metric_store
  @metric_store
end