Class: EcsDeploy::AutoScaler::TriggerConfig
- Inherits:
-
Struct
- Object
- Struct
- EcsDeploy::AutoScaler::TriggerConfig
- Includes:
- ConfigBase
- Defined in:
- lib/ecs_deploy/auto_scaler/trigger_config.rb
Instance Attribute Summary collapse
-
#alarm_name ⇒ Object
Returns the value of attribute alarm_name.
-
#prioritized_over_upscale_triggers ⇒ Object
Returns the value of attribute prioritized_over_upscale_triggers.
-
#region ⇒ Object
Returns the value of attribute region.
-
#state ⇒ Object
Returns the value of attribute state.
-
#step ⇒ Object
Returns the value of attribute step.
Instance Method Summary collapse
Methods included from ConfigBase
Instance Attribute Details
#alarm_name ⇒ Object
Returns the value of attribute alarm_name
8 9 10 |
# File 'lib/ecs_deploy/auto_scaler/trigger_config.rb', line 8 def alarm_name @alarm_name end |
#prioritized_over_upscale_triggers ⇒ Object
Returns the value of attribute prioritized_over_upscale_triggers
8 9 10 |
# File 'lib/ecs_deploy/auto_scaler/trigger_config.rb', line 8 def prioritized_over_upscale_triggers @prioritized_over_upscale_triggers end |
#region ⇒ Object
Returns the value of attribute region
8 9 10 |
# File 'lib/ecs_deploy/auto_scaler/trigger_config.rb', line 8 def region @region end |
#state ⇒ Object
Returns the value of attribute state
8 9 10 |
# File 'lib/ecs_deploy/auto_scaler/trigger_config.rb', line 8 def state @state end |
#step ⇒ Object
Returns the value of attribute step
8 9 10 |
# File 'lib/ecs_deploy/auto_scaler/trigger_config.rb', line 8 def step @step end |
Instance Method Details
#match? ⇒ Boolean
11 12 13 |
# File 'lib/ecs_deploy/auto_scaler/trigger_config.rb', line 11 def match? fetch_alarm.state_value == state end |
#prioritized_over_upscale_triggers? ⇒ Boolean
15 16 17 |
# File 'lib/ecs_deploy/auto_scaler/trigger_config.rb', line 15 def prioritized_over_upscale_triggers? !!prioritized_over_upscale_triggers end |