UsageSummary class

Constructors

UsageSummary({Accounts? accounts, String? end, String? interval, LLM? llm, String? range, UsageScope? scope, Sources? sources, Spend? spend, String? start})
Returns a new UsageSummary instance.

Properties

accounts ↔ Accounts?
Accounts is the caller's own linked provider accounts beside the org's Hanzo-routed usage, labelled row by row and never summed together.
getter/setter pair
end ↔ String?
End is the window's exclusive end, RFC3339 UTC.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
interval ↔ String?
Interval is the bucket width the spend series is gap-filled at.
getter/setter pair
llm ↔ LLM?
LLM is the org's Hanzo-routed inference totals from the warehouse.
getter/setter pair
range ↔ String?
Range is the window label that was served.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope ↔ UsageScope?
Scope is the tenant and subject the roll-up was answered for.
getter/setter pair
sources ↔ Sources?
Sources says which upstreams actually answered, so a zero can be read as "no data yet" rather than as a measurement.
getter/setter pair
spend ↔ Spend?
Spend is the categorized cost roll-up from the billing ledger.
getter/setter pair
start ↔ String?
Start is the window's inclusive start, 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) → UsageSummary?
Returns a new UsageSummary instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<UsageSummary>
mapFromJson(dynamic json) → Map<String, UsageSummary>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<UsageSummary>>

Constants

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