ThresholdViolation class
A threshold that was exceeded during benchmark execution (FR-005).
Constructors
- ThresholdViolation({required String metric, required String expected, required num actual, required ThresholdSeverity severity, required String message})
-
Creates a violation record.
const
-
ThresholdViolation.fromJson(Map<
String, dynamic> json) -
Deserializes a violation from its JSON representation.
factory
Properties
- actual → num
-
The value actually measured.
final
- expected → String
-
Human-readable expectation, e.g.
latency_p99 lte 40.final - hashCode → int
-
The hash code for this object.
no setteroverride
- message → String
-
Human-readable description of the violation.
final
- metric → String
-
Name of the metric that violated its threshold.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity → ThresholdSeverity
-
Whether this violation fails the benchmark (
error) or only warns.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes the violation to a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override