Class: Amigo::Autoscaler::Persisted

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#depthObject (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)