Class: Azure::ServiceFabric::V6_5_0_36::Models::AverageServiceLoadScalingTrigger
- Inherits:
-
ScalingTriggerDescription
- Object
- ScalingTriggerDescription
- Azure::ServiceFabric::V6_5_0_36::Models::AverageServiceLoadScalingTrigger
- Includes:
- MsRestAzure
- Defined in:
- lib/6.5.0.36/generated/azure_service_fabric/models/average_service_load_scaling_trigger.rb
Overview
Represents a scaling policy related to an average load of a metric/resource of a service.
Instance Attribute Summary collapse
-
#Kind ⇒ Object
Returns the value of attribute Kind.
-
#lower_load_threshold ⇒ String
operation should be performed.
-
#metric_name ⇒ String
tracked.
-
#scale_interval_in_seconds ⇒ Integer
whether to scale or not.
-
#upper_load_threshold ⇒ String
operation should be performed.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for AverageServiceLoadScalingTrigger class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ AverageServiceLoadScalingTrigger
constructor
A new instance of AverageServiceLoadScalingTrigger.
Constructor Details
#initialize ⇒ AverageServiceLoadScalingTrigger
Returns a new instance of AverageServiceLoadScalingTrigger.
17 18 19 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/average_service_load_scaling_trigger.rb', line 17 def initialize @Kind = "AverageServiceLoad" end |
Instance Attribute Details
#Kind ⇒ Object
Returns the value of attribute Kind.
21 22 23 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/average_service_load_scaling_trigger.rb', line 21 def Kind @Kind end |
#lower_load_threshold ⇒ String
operation should be performed.
29 30 31 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/average_service_load_scaling_trigger.rb', line 29 def lower_load_threshold @lower_load_threshold end |
#metric_name ⇒ String
tracked.
25 26 27 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/average_service_load_scaling_trigger.rb', line 25 def metric_name @metric_name end |
#scale_interval_in_seconds ⇒ Integer
whether to scale or not.
37 38 39 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/average_service_load_scaling_trigger.rb', line 37 def scale_interval_in_seconds @scale_interval_in_seconds end |
#upper_load_threshold ⇒ String
operation should be performed.
33 34 35 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/average_service_load_scaling_trigger.rb', line 33 def upper_load_threshold @upper_load_threshold end |
Class Method Details
.mapper ⇒ Object
Mapper for AverageServiceLoadScalingTrigger class as Ruby Hash. This will be used for serialization/deserialization.
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 99 100 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/average_service_load_scaling_trigger.rb', line 44 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'AverageServiceLoad', type: { name: 'Composite', class_name: 'AverageServiceLoadScalingTrigger', model_properties: { Kind: { client_side_validation: true, required: true, serialized_name: 'Kind', type: { name: 'String' } }, metric_name: { client_side_validation: true, required: true, serialized_name: 'MetricName', type: { name: 'String' } }, lower_load_threshold: { client_side_validation: true, required: true, serialized_name: 'LowerLoadThreshold', type: { name: 'String' } }, upper_load_threshold: { client_side_validation: true, required: true, serialized_name: 'UpperLoadThreshold', type: { name: 'String' } }, scale_interval_in_seconds: { client_side_validation: true, required: true, serialized_name: 'ScaleIntervalInSeconds', constraints: { InclusiveMaximum: 4294967295, InclusiveMinimum: 0 }, type: { name: 'Number' } } } } } end |