SampleView class

Constructors

SampleView({String? at, int? costCents, int? cpus, String? gpuModel, num? gpuUtil, int? gpus, String? host, String? kind, num? load1, num? load5, num? load15, int? memFree, int? memUsed, int? memory, String? source_, String? unit})
Returns a new SampleView instance.

Properties

at ↔ String?
At is when the reading was MEASURED, RFC 3339 in UTC — the x-axis a chart plots against. The series is returned oldest first, so it only increases.
getter/setter pair
costCents ↔ int?
CostCents is what this unit resold for over the hour the reading falls in, in whole US cents. 0 means UNPRICED, not free: the operator's own machines — a linked run-target, a dialed-in BYO worker — are metered for utilization and never resold, so only a priced source ever fills it.
getter/setter pair
cpus ↔ int?
CPUs is logical cores. The static capability rides every row on purpose: a chart can size load against cores without joining a registry whose row may since have been rewritten or the unit deregistered.
getter/setter pair
gpuModel ↔ String?
GPUModel names the representative accelerator ("GB10"); GPUs carries how many.
getter/setter pair
gpus ↔ int?
GPUs is how many accelerators the reading covers.
getter/setter pair
gpuUtil ↔ num?
GPUUtil is aggregate accelerator utilization as a FRACTION of 1 — 0.42 is 42% busy. Anything a reporter sends outside 0..1 is clamped into it on write.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
host ↔ String?
Host is the hostname the unit reported at the time of the reading.
getter/setter pair
kind ↔ String?
Kind is what the measured unit is: laptop, cloud, gpu, cluster, machine or worker.
getter/setter pair
load1 ↔ num?
Load1 is the 1-minute load average — runnable processes, not a percentage.
getter/setter pair
load15 ↔ num?
Load15 is the 15-minute load average, the same units as Load1.
getter/setter pair
load5 ↔ num?
Load5 is the 5-minute load average, the same units as Load1.
getter/setter pair
memFree ↔ int?
MemFree is host memory available, in BYTES, as reported rather than derived.
getter/setter pair
memory ↔ int?
Memory is total system RAM in BYTES at the time of the reading.
getter/setter pair
memUsed ↔ int?
MemUsed is host memory in use, in BYTES.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source_ ↔ String?
Source is the plane that reported the reading: "agent", "byo" or "visor" — the same vocabulary the board's rows carry, and what ?source= narrows on.
getter/setter pair
unit ↔ String?
Unit is the source's own id for the measured unit. With Source it is the key the chart groups by, and the key the board joins a unit's latest reading on.
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) → SampleView?
Returns a new SampleView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<SampleView>
mapFromJson(dynamic json) → Map<String, SampleView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<SampleView>>

Constants

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