MetricResult class

Metric result from rules execution

Constructors

MetricResult({required String key, required String type, int count = 1, int duration = 0, Map<String, dynamic> dimensions = const {}})
const
MetricResult.fromMap(Map<String, dynamic> mapData)
factory

Properties

count int
final
dimensions Map<String, dynamic>
final
duration int
final
hashCode int
The hash code for this object.
no setterinherited
key String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
final

Methods

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

Operators

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

Static Methods

tryFromMap(Map<String, dynamic> mapData) MetricResult?