Class: Azure::ServiceFabric::V6_5_0_36::Models::AutoScalingMetric

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.5.0.36/generated/azure_service_fabric/models/auto_scaling_metric.rb

Overview

Describes the metric that is used for triggering auto scaling operation. Derived classes will describe resources or metrics.

Direct Known Subclasses

AutoScalingResourceMetric

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAutoScalingMetric

Returns a new instance of AutoScalingMetric.



19
20
21
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/auto_scaling_metric.rb', line 19

def initialize
  @kind = "AutoScalingMetric"
end

Instance Attribute Details

#kindObject

Returns the value of attribute kind.



23
24
25
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/auto_scaling_metric.rb', line 23

def kind
  @kind
end

Class Method Details

.mapperObject

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



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/auto_scaling_metric.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AutoScalingMetric',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'kind',
      uber_parent: 'AutoScalingMetric',
      class_name: 'AutoScalingMetric',
      model_properties: {
      }
    }
  }
end