HPAScalingPolicy class
HPAScalingPolicy is a single policy which must hold true for a specified past interval.
Constructors
- HPAScalingPolicy({required int periodSeconds, required String type, required int value})
-
The main constructor.
const
-
HPAScalingPolicy.fromJson(Map<
String, dynamic> json) - Creates a HPAScalingPolicy from JSON data.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- periodSeconds → int
-
PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
Type is used to specify the scaling policy.
final
- value → int
-
Value contains the amount of change which is permitted by the policy. It must be greater than zero.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Converts a HPAScalingPolicy instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
listFromJson(
Iterable< Map< list) → List<String, dynamic> >HPAScalingPolicy> - Creates a list of HPAScalingPolicy from JSON data.