BudgetPolicy class
One budget rule a named metric must satisfy.
Constructors
- BudgetPolicy({required String metricName, required MeasurementSource requiredSource, required BudgetDirection direction, required double limit, double? regressionTolerancePercent, int? maxAgeMs})
-
const
-
BudgetPolicy.fromJson(Map<
String, Object?> json) -
factory
Properties
- direction → BudgetDirection
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- limit → double
-
final
- maxAgeMs → int?
-
If set, a measurement older than this (relative to
nowMspassed to checkPerformanceBudgets) is PerformanceBudgetViolationKind.staleMeasurement rather than silently trusted forever — forces a periodic re-run of whatever produced it (mainly a real-device smoke test).final - metricName → String
-
final
- regressionTolerancePercent → double?
-
If set (and a baseline metric with the same name is supplied), a
fresh value worse than the baseline by more than this percentage is
flagged as PerformanceBudgetViolationKind.regression — separate
from an absolute PerformanceBudgetViolationKind.budgetExceeded,
since a value can regress while still sitting under the hard limit.
final
- requiredSource → MeasurementSource
-
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited