GuardrailDefinition class

A min/max threshold on 1 named metric — a violation of either bound is what ShadowActivationController treats as "this shadow-activated feature/event is misbehaving, roll it back now". Either bound can be null (no lower/upper check) — but not BOTH; that invariant is enforced by ShadowActivationController.registerGuardrail (ENH-89), not here — a runtime assert on this const-constructible class would be stripped from release builds anyway, and a genuine if/throw here would force every const guardrail list in consumers off const.

Constructors

GuardrailDefinition({required String metricName, double? min, double? max})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
max → double?
final
metricName → String
final
min → double?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
violatedBy(double value) → bool

Operators

operator ==(Object other) → bool
The equality operator.
inherited