MetricTarget class
MetricTarget defines the target value, average value, or average utilization of a specific metric.
Constructors
- MetricTarget({int? averageUtilization, String? averageValue, required String type, String? value})
-
The main constructor.
const
-
MetricTarget.fromJson(Map<
String, dynamic> json) - Creates a MetricTarget from JSON data.
Properties
- averageUtilization → int?
-
AverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type.
final
- averageValue → String?
-
AverageValue is the target value of the average of the metric across all relevant pods (as a quantity).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
Type represents whether the metric type is Utilization, Value, or AverageValue.
final
- value → String?
-
Value is the target value of the metric (as a quantity).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Converts a MetricTarget 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> >MetricTarget> - Creates a list of MetricTarget from JSON data.