MetricIdentifier class
MetricIdentifier defines the name and optionally selector for a metric.
Constructors
- MetricIdentifier({required String name, LabelSelector? selector})
-
Default constructor.
const
-
MetricIdentifier.fromJson(Map<
String, dynamic> json) -
Creates a MetricIdentifier from JSON data.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
name is the name of the given metric.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selector → LabelSelector?
-
selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Converts a MetricIdentifier instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited