class Azure::ARM::Insights::Models::AutoscaleProfile

Autoscale profile.

Attributes

capacity[RW]

@return [ScaleCapacity] the number of instances that can be used during this profile.

fixed_date[RW]

@return [TimeWindow] the specific date-time for the profile. This element is not used if the Recurrence element is used.

name[RW]

@return [String] the name of the profile.

recurrence[RW]

@return [Recurrence] the repeating times at which this profile begins. This element is not used if the FixedDate element is used.

rules[RW]

@return [Array<ScaleRule>] the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified.

Public Class Methods

mapper() click to toggle source

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

# 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