AWS services or capabilities described in AWS Documentation may vary by region/location. Click
Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Class: Aws::RailsProvisioner::Scaling::ScheduleScaling
- Inherits:
-
Object
- Object
- Aws::RailsProvisioner::Scaling::ScheduleScaling
show all
- Defined in:
- lib/aws-rails-provisioner/scaling.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
Configurations for scaling policy based on time
421
422
423
424
425
426
427
|
# File 'lib/aws-rails-provisioner/scaling.rb', line 421
def initialize(options = {})
@schedule = options.fetch(:schedule)
@max_capacity = options[:max_capacity]
@min_capacity = options[:min_capacity]
@start_time = options[:start_time]
@end_time = options[:end_time]
end
|
Instance Attribute Details
#end_time ⇒ Integer
442
443
444
|
# File 'lib/aws-rails-provisioner/scaling.rb', line 442
def end_time
@end_time
end
|
#max_capacity ⇒ Integer
433
434
435
|
# File 'lib/aws-rails-provisioner/scaling.rb', line 433
def max_capacity
@max_capacity
end
|
#min_capacity ⇒ Integer
436
437
438
|
# File 'lib/aws-rails-provisioner/scaling.rb', line 436
def min_capacity
@min_capacity
end
|
#schedule ⇒ String
430
431
432
|
# File 'lib/aws-rails-provisioner/scaling.rb', line 430
def schedule
@schedule
end
|
#start_time ⇒ Integer
439
440
441
|
# File 'lib/aws-rails-provisioner/scaling.rb', line 439
def start_time
@start_time
end
|