class Azure::ServiceFabric::V6_5_0_36::Models::AveragePartitionLoadScalingTrigger
Represents a scaling trigger related to an average load of a metric/resource of a partition.
Attributes
Kind[RW]
lower_load_threshold[RW]
@return [String] The lower limit of the load below which a scale in operation should be performed.
metric_name[RW]
@return [String] The name of the metric for which usage should be tracked.
scale_interval_in_seconds[RW]
@return [Integer] The period in seconds on which a decision is made whether to scale or not.
upper_load_threshold[RW]
@return [String] The upper limit of the load beyond which a scale out operation should be performed.
Public Class Methods
mapper()
click to toggle source
Mapper for AveragePartitionLoadScalingTrigger
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/6.5.0.36/generated/azure_service_fabric/models/average_partition_load_scaling_trigger.rb, line 44 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'AveragePartitionLoad', type: { name: 'Composite', class_name: 'AveragePartitionLoadScalingTrigger', 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
new()
click to toggle source
# File lib/6.5.0.36/generated/azure_service_fabric/models/average_partition_load_scaling_trigger.rb, line 17 def initialize @Kind = "AveragePartitionLoad" end