Class: Azure::ARM::Monitor::Models::AutoscaleProfile

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb

Overview

Autoscale profile.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#capacityScaleCapacity

this profile.

Returns:

  • (ScaleCapacity)

    the number of instances that can be used during


21
22
23
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb', line 21

def capacity
  @capacity
end

#fixed_dateTimeWindow

element is not used if the Recurrence element is used.

Returns:

  • (TimeWindow)

    the specific date-time for the profile. This


30
31
32
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb', line 30

def fixed_date
  @fixed_date
end

#nameString

Returns the name of the profile.

Returns:

  • (String)

    the name of the profile.


17
18
19
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb', line 17

def name
  @name
end

#recurrenceRecurrence

This element is not used if the FixedDate element is used.

Returns:

  • (Recurrence)

    the repeating times at which this profile begins.


34
35
36
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb', line 34

def recurrence
  @recurrence
end

#rulesArray<ScaleRule>

triggers and parameters for the scaling action. A maximum of 10 rules can be specified.

Returns:

  • (Array<ScaleRule>)

    the collection of rules that provide the


26
27
28
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb', line 26

def rules
  @rules
end

Class Method Details

.mapperObject

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


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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# File 'lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb', line 41

def self.mapper()
  {
    required: false,
    serialized_name: 'AutoscaleProfile',
    type: {
      name: 'Composite',
      class_name: 'AutoscaleProfile',
      model_properties: {
        name: {
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        capacity: {
          required: true,
          serialized_name: 'capacity',
          type: {
            name: 'Composite',
            class_name: 'ScaleCapacity'
          }
        },
        rules: {
          required: true,
          serialized_name: 'rules',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'ScaleRuleElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ScaleRule'
                }
            }
          }
        },
        fixed_date: {
          required: false,
          serialized_name: 'fixedDate',
          type: {
            name: 'Composite',
            class_name: 'TimeWindow'
          }
        },
        recurrence: {
          required: false,
          serialized_name: 'recurrence',
          type: {
            name: 'Composite',
            class_name: 'Recurrence'
          }
        }
      }
    }
  }
end