Sha256: 57b9b775c49cd8996c07392167969f5571186a72e9981357e8cf3dc6ad85b745

Contents?: true

Size: 1.47 KB

Versions: 1

Compression:

Stored size: 1.47 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ARM::Monitor
  module Models
    #
    # A rule that provide the triggers and parameters for the scaling action.
    #
    class ScaleRule

      include MsRestAzure

      include MsRest::JSONable
      # @return [MetricTrigger] the trigger that results in a scaling action.
      attr_accessor :metric_trigger

      # @return [ScaleAction] the parameters for the scaling action.
      attr_accessor :scale_action


      #
      # Mapper for ScaleRule class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'ScaleRule',
          type: {
            name: 'Composite',
            class_name: 'ScaleRule',
            model_properties: {
              metric_trigger: {
                required: true,
                serialized_name: 'metricTrigger',
                type: {
                  name: 'Composite',
                  class_name: 'MetricTrigger'
                }
              },
              scale_action: {
                required: true,
                serialized_name: 'scaleAction',
                type: {
                  name: 'Composite',
                  class_name: 'ScaleAction'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
azure_mgmt_monitor-0.13.0 lib/generated/azure_mgmt_monitor/models/scale_rule.rb