ObjectMetricSource class
ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
Constructors
- ObjectMetricSource({required CrossVersionObjectReference describedObject, required MetricIdentifier metric, required MetricTarget target})
-
The main constructor.
const
-
ObjectMetricSource.fromJson(Map<
String, dynamic> json) - Creates a ObjectMetricSource from JSON data.
Properties
- describedObject → CrossVersionObjectReference
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- metric → MetricIdentifier
-
Metric identifies the target metric by name and selector.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- target → MetricTarget
-
Target specifies the target value for the given metric.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Converts a ObjectMetricSource 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> >ObjectMetricSource> - Creates a list of ObjectMetricSource from JSON data.