Class: Scalingo::Endpoint::Autoscalers
- Inherits:
-
Collection
- Object
- Collection
- Scalingo::Endpoint::Autoscalers
- Defined in:
- lib/scalingo/endpoint/autoscalers.rb
Instance Attribute Summary
Attributes included from Base
Instance Method Summary collapse
-
#create(params) ⇒ Object
-
container_type: can be any container type of an application (e.g. web, clock…) - min_containers: lower limit of containers - max_containers: upper limit of containers - metric: e.g.
-
Methods inherited from Collection
#all, #collection_name, #each, #find, #find_by, #resource_class
Methods included from Scalingo::Endpoint
Methods included from ClassMethods
Methods included from Base
Instance Method Details
#create(params) ⇒ Object
-
container_type: can be any container type of an application (e.g. web, clock…)
-
min_containers: lower limit of containers
-
max_containers: upper limit of containers
-
metric: e.g. RPM per container, RAM consumption. The list of available metrics is here.
-
target: the autoscaler will keep the metric value as close to the target as possible by scaling the application
10 11 12 |
# File 'lib/scalingo/endpoint/autoscalers.rb', line 10 def create(params) post(nil, autoscaler: params) end |