Class: Amigo::Autoscaler::Persisted
- Inherits:
-
Struct
- Object
- Struct
- Amigo::Autoscaler::Persisted
- Defined in:
- lib/amigo/autoscaler.rb
Overview
Struct representing data serialized to Redis. Useful for diagnostics. Can be retried with fetch_persisted.
Instance Attribute Summary collapse
-
#depth ⇒ Object
readonly
0 if not in a latency event.
Instance Method Summary collapse
-
#last_alerted_at(value) ⇒ Object
0-time if there is no recent alert.
-
#latency_event_started_at(value) ⇒ Object
0-time if not in a latency event.
Instance Attribute Details
#depth ⇒ Object (readonly)
0 if not in a latency event.
44 |
# File 'lib/amigo/autoscaler.rb', line 44 Persisted = Struct.new(:last_alerted_at, :depth, :latency_event_started_at) |
Instance Method Details
#last_alerted_at=(value) ⇒ Object
0-time if there is no recent alert.
44 |
# File 'lib/amigo/autoscaler.rb', line 44 Persisted = Struct.new(:last_alerted_at, :depth, :latency_event_started_at) |
#latency_event_started_at=(value) ⇒ Object
0-time if not in a latency event.
44 |
# File 'lib/amigo/autoscaler.rb', line 44 Persisted = Struct.new(:last_alerted_at, :depth, :latency_event_started_at) |