Timeseries class

Constructors

Timeseries({String? end, String? interval, String? range, Scope? scope, List<UsagePoint> series = const [], String? source_, String? start})
Returns a new Timeseries instance.

Properties

end ↔ String?
End is the window's exclusive upper bound, RFC3339 UTC.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
interval ↔ String?
Interval is the bucket width: hour or day.
getter/setter pair
range ↔ String?
Range is the window that was actually applied: 24h, 7d, 30d or custom.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope ↔ Scope?
Scope names the tenant these numbers belong to.
getter/setter pair
series ↔ List<UsagePoint>
Series is one point per bucket, oldest first, with empty buckets zero-filled.
getter/setter pair
source_ ↔ String?
Source is the warehouse table the series read.
getter/setter pair
start ↔ String?
Start is the window's inclusive lower bound, RFC3339 UTC.
getter/setter pair

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

Constants

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