Class: Azure::ARM::Insights::Models::ScaleAction

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_insights/models/scale_action.rb

Overview

The parameters for the scaling action.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#cooldownDuration

action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format.

Returns:

  • (Duration)

    the amount of time to wait since the last scaling



33
34
35
# File 'lib/generated/azure_mgmt_insights/models/scale_action.rb', line 33

def cooldown
  @cooldown
end

#directionScaleDirection

action increases or decreases the number of instances. Possible values include: ‘None’, ‘Increase’, ‘Decrease’

Returns:



18
19
20
# File 'lib/generated/azure_mgmt_insights/models/scale_action.rb', line 18

def direction
  @direction
end

#typeScaleType

rule fires. Possible values include: ‘ChangeCount’, ‘PercentChangeCount’, ‘ExactCount’

Returns:

  • (ScaleType)

    the type of action that should occur when the scale



23
24
25
# File 'lib/generated/azure_mgmt_insights/models/scale_action.rb', line 23

def type
  @type
end

#valueString

scaling action. This value must be 1 or greater. The default value is

  1. Default value: ‘1’ .

Returns:

  • (String)

    the number of instances that are involved in the



28
29
30
# File 'lib/generated/azure_mgmt_insights/models/scale_action.rb', line 28

def value
  @value
end

Class Method Details

.mapperObject

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