Class: LogStash::Instrument::Snapshot
- Inherits:
-
Object
- Object
- LogStash::Instrument::Snapshot
- Includes:
- Util::Loggable
- Defined in:
- lib/logstash/instrument/snapshot.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#metric_store ⇒ Object
readonly
Returns the value of attribute metric_store.
Instance Method Summary collapse
-
#initialize(metric_store, created_at = Time.now) ⇒ Snapshot
constructor
A new instance of Snapshot.
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_at ⇒ Object (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_store ⇒ Object (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 |