Class: Azure::ARM::Insights::Models::ScaleAction
- Inherits:
-
Object
- Object
- Azure::ARM::Insights::Models::ScaleAction
- Includes:
- MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_insights/models/scale_action.rb
Overview
The parameters for the scaling action.
Instance Attribute Summary collapse
-
#cooldown ⇒ Duration
action before this action occurs.
-
#direction ⇒ ScaleDirection
action increases or decreases the number of instances.
-
#type ⇒ ScaleType
rule fires.
-
#value ⇒ String
scaling action.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ScaleAction class as Ruby Hash.
Instance Attribute Details
#cooldown ⇒ Duration
action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format.
33 34 35 |
# File 'lib/generated/azure_mgmt_insights/models/scale_action.rb', line 33 def cooldown @cooldown end |
#direction ⇒ ScaleDirection
action increases or decreases the number of instances. Possible values include: ‘None’, ‘Increase’, ‘Decrease’
18 19 20 |
# File 'lib/generated/azure_mgmt_insights/models/scale_action.rb', line 18 def direction @direction end |
#type ⇒ ScaleType
rule fires. Possible values include: ‘ChangeCount’, ‘PercentChangeCount’, ‘ExactCount’
23 24 25 |
# File 'lib/generated/azure_mgmt_insights/models/scale_action.rb', line 23 def type @type end |
#value ⇒ String
scaling action. This value must be 1 or greater. The default value is
-
Default value: ‘1’ .
28 29 30 |
# File 'lib/generated/azure_mgmt_insights/models/scale_action.rb', line 28 def value @value end |
Class Method Details
.mapper ⇒ Object
Mapper for ScaleAction class as Ruby Hash. This will be used for serialization/deserialization.
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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/generated/azure_mgmt_insights/models/scale_action.rb', line 40 def self.mapper() { required: false, serialized_name: 'ScaleAction', type: { name: 'Composite', class_name: 'ScaleAction', model_properties: { direction: { required: true, serialized_name: 'direction', type: { name: 'Enum', module: 'ScaleDirection' } }, type: { required: true, serialized_name: 'type', type: { name: 'Enum', module: 'ScaleType' } }, value: { required: false, serialized_name: 'value', default_value: '1', type: { name: 'String' } }, cooldown: { required: true, serialized_name: 'cooldown', type: { name: 'TimeSpan' } } } } } end |