Class: Azure::ARM::Insights::Models::AutoscaleProfile

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_insights/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



20
21
22
# File 'lib/generated/azure_mgmt_insights/models/autoscale_profile.rb', line 20

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



29
30
31
# File 'lib/generated/azure_mgmt_insights/models/autoscale_profile.rb', line 29

def fixed_date
  @fixed_date
end

#nameString

Returns the name of the profile.

Returns:

  • (String)

    the name of the profile.



16
17
18
# File 'lib/generated/azure_mgmt_insights/models/autoscale_profile.rb', line 16

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.



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

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



25
26
27
# File 'lib/generated/azure_mgmt_insights/models/autoscale_profile.rb', line 25

def rules
  @rules
end

Class Method Details

.mapperObject

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

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