QueryMetrics class
Metrics for a specific query's performance.
Constructors
-
QueryMetrics({required List<
Duration> fetchHistory, Duration? lastFetchDuration, required int referenceCount, ThroughputMetrics? throughputMetrics}) -
const
-
QueryMetrics.fromJson(Map<
String, dynamic> json) -
Creates a QueryMetrics instance from a JSON map.
factory
Properties
- averageFetchTime → Duration?
-
Average fetch time for this query
no setter
- fetchCount → int
-
Number of times this query has been fetched
no setter
-
fetchHistory
→ List<
Duration> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastFetchDuration → Duration?
-
final
- maxFetchTime → Duration?
-
Maximum fetch time for this query
no setter
- referenceCount → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- throughputMetrics → ThroughputMetrics?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this instance to a JSON-serializable map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited