ResourceMetricSource class
ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set.
Constructors
- ResourceMetricSource({required String name, required MetricTarget target})
-
Default constructor.
const
-
ResourceMetricSource.fromJson(Map<
String, dynamic> json) -
Creates a ResourceMetricSource from JSON data.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
name is the name of the resource in question.
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 ResourceMetricSource instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited