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})
-
Default constructor.
const
-
MetricTarget.fromJson(Map<
String, dynamic> json) -
Creates a MetricTarget from JSON data.
factory
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