ResourceUsage class

Constructors

ResourceUsage({num? costCents, num? cpuVcpuHours, num? memGbHours, num? storageIoBytes})
Returns a new ResourceUsage instance.

Properties

costCents ↔ num?
CostCents would be the window's spend in cents. Always null here — the money a run costs is the metering ledger's, joined by the run id, and repeating it from this side would be a second number that could disagree with the bill.
getter/setter pair
cpuVcpuHours ↔ num?
CPUVcpuHours would be vCPU-hours over the window. Always null: this store holds agent definitions and run I/O, and nothing here meters a CPU. Null is the honest answer and 0 would be a claim.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
memGbHours ↔ num?
MemGbHours would be gigabyte-hours of memory. Always null, same reason.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
storageIoBytes ↔ num?
StorageIoBytes would be bytes moved to and from storage. Always null, same reason.
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) → ResourceUsage?
Returns a new ResourceUsage instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ResourceUsage>
mapFromJson(dynamic json) → Map<String, ResourceUsage>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ResourceUsage>>

Constants

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