LatencyStat class

Constructors

LatencyStat({bool? available, num? p50Ms, num? p95Ms, num? p99Ms})
Returns a new LatencyStat instance.

Properties

available ↔ bool?
false when no GenAI spans carry timing; the percentiles are then null
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
p50Ms ↔ num?
median latency over the window
getter/setter pair
p95Ms ↔ num?
95th-percentile latency
getter/setter pair
p99Ms ↔ num?
99th-percentile latency
getter/setter pair
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
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(dynamic value) → LatencyStat?
Returns a new LatencyStat instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<LatencyStat>
mapFromJson(dynamic json) → Map<String, LatencyStat>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<LatencyStat>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.