Class: Azure::ServiceFabric::V6_5_0_36::Models::AverageServiceLoadScalingTrigger

Inherits:
ScalingTriggerDescription show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAverageServiceLoadScalingTrigger

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

#KindObject

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_thresholdString

operation should be performed.

Returns:

  • (String)

    The lower limit of the load below which a scale in



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_nameString

tracked.

Returns:

  • (String)

    The name of the metric for which usage should be



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_secondsInteger

whether to scale or not.

Returns:

  • (Integer)

    The period in seconds on which a decision is made



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_thresholdString

operation should be performed.

Returns:

  • (String)

    The upper limit of the load beyond which a scale out



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

.mapperObject

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