Class: Apcera::RolloutConfig
- Inherits:
-
BaseObject
- Object
- BaseObject
- Apcera::RolloutConfig
- Defined in:
- lib/apcera/models/rollout_config.rb
Instance Attribute Summary collapse
-
#errored_state_window ⇒ Object
Returns the value of attribute errored_state_window.
-
#flapping_minimum_restarts ⇒ Object
Returns the value of attribute flapping_minimum_restarts.
-
#flapping_percent ⇒ Object
Returns the value of attribute flapping_percent.
-
#flapping_window ⇒ Object
Returns the value of attribute flapping_window.
-
#force_stop_old_instances_after ⇒ Object
Returns the value of attribute force_stop_old_instances_after.
Class Method Summary collapse
-
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ RolloutConfig
constructor
A new instance of RolloutConfig.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ RolloutConfig
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/apcera/models/rollout_config.rb', line 39 def initialize(attributes = {}) return if !attributes.is_a?(Hash) || attributes.empty? # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'errored_state_window'] self.errored_state_window = attributes[:'errored_state_window'] end if attributes[:'flapping_minimum_restarts'] self.flapping_minimum_restarts = attributes[:'flapping_minimum_restarts'] end if attributes[:'flapping_percent'] self.flapping_percent = attributes[:'flapping_percent'] end if attributes[:'flapping_window'] self.flapping_window = attributes[:'flapping_window'] end if attributes[:'force_stop_old_instances_after'] self.force_stop_old_instances_after = attributes[:'force_stop_old_instances_after'] end end |
Instance Attribute Details
#errored_state_window ⇒ Object
Returns the value of attribute errored_state_window.
4 5 6 |
# File 'lib/apcera/models/rollout_config.rb', line 4 def errored_state_window @errored_state_window end |
#flapping_minimum_restarts ⇒ Object
Returns the value of attribute flapping_minimum_restarts.
4 5 6 |
# File 'lib/apcera/models/rollout_config.rb', line 4 def flapping_minimum_restarts @flapping_minimum_restarts end |
#flapping_percent ⇒ Object
Returns the value of attribute flapping_percent.
4 5 6 |
# File 'lib/apcera/models/rollout_config.rb', line 4 def flapping_percent @flapping_percent end |
#flapping_window ⇒ Object
Returns the value of attribute flapping_window.
4 5 6 |
# File 'lib/apcera/models/rollout_config.rb', line 4 def flapping_window @flapping_window end |
#force_stop_old_instances_after ⇒ Object
Returns the value of attribute force_stop_old_instances_after.
4 5 6 |
# File 'lib/apcera/models/rollout_config.rb', line 4 def force_stop_old_instances_after @force_stop_old_instances_after end |
Class Method Details
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/apcera/models/rollout_config.rb', line 6 def self.attribute_map { # The number of seconds a job should be cycling between flapping states before being considered in an errored state and stop attempting any restarts. :'errored_state_window' => :'errored_state_window', # The minimum number of tasks that must have failed in order to trigger a flapping state. :'flapping_minimum_restarts' => :'flapping_minimum_restarts', # The number of instances that must have restarted in a given window for flapping to kick in. :'flapping_percent' => :'flapping_percent', # The number of seconds over which the job's flapping window operates. :'flapping_window' => :'flapping_window', # If this field is non-zero then it will be used to represent how long an old version of a job is allowed to exist in the cluster. If this is zero then no fixed length is established and updates will be applied by starting a new version and then only when that instance is running will the old instance be killed. :'force_stop_old_instances_after' => :'force_stop_old_instances_after' } end |
.swagger_types ⇒ Object
attribute type
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/apcera/models/rollout_config.rb', line 28 def self.swagger_types { :'errored_state_window' => :'Integer', :'flapping_minimum_restarts' => :'Integer', :'flapping_percent' => :'Float', :'flapping_window' => :'Integer', :'force_stop_old_instances_after' => :'Integer' } end |