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.

Returns:

  • (Duration)

    the amount of time to wait since the last scaling



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

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

#typeString

to ChangeCount. Default value: ‘ChangeCount’ .

Returns:

  • (String)

    the type of action that should occur, this must be set



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

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



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

def value
  @value
end

Class Method Details

.mapperObject

Mapper for ScaleAction class as Ruby Hash. This will be used for serialization/deserialization.



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
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 39

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,
          is_constant: true,
          serialized_name: 'type',
          default_value: 'ChangeCount',
          type: {
            name: 'String'
          }
        },
        value: {
          required: false,
          serialized_name: 'value',
          default_value: '1',
          type: {
            name: 'String'
          }
        },
        cooldown: {
          required: true,
          serialized_name: 'cooldown',
          type: {
            name: 'TimeSpan'
          }
        }
      }
    }
  }
end