GpuView class

Constructors

GpuView({String? id, String? location, String? machine, String? memory, String? model, String? name, String? provider, String? region, String? status})
Returns a new GpuView instance.

Properties

hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the card's address: its host machine's id, "#", and the card's ordinal within that machine ("gpu-1#0"). Stable for as long as the machine is, and the only id a single accelerator has — providers do not name cards.
getter/setter pair
location ↔ String?
Location is where the card physically sits, which for every source today is the same value Region carries — the console renders it in its own column.
getter/setter pair
machine ↔ String?
Machine is the id of the machine holding this card, addressable as-is on /v1/visor/machines/:id.
getter/setter pair
memory ↔ String?
Memory is the card's VRAM as its own tooling reported it ("122880 MiB") — a display string in the reporter's units, not a byte count. BYO cards carry it (nvidia-smi); Visor's machine object states no VRAM, so a rented card leaves it empty and the console renders "—" rather than a fabricated 0.
getter/setter pair
model ↔ String?
Model is the accelerator: the model token read out of the size slug for a Visor GPU droplet ("H100", "MI300X"), or the name nvidia-smi reported for a BYO card ("NVIDIA GB10").
getter/setter pair
name ↔ String?
Name is the HOST MACHINE's display name, not the card's — every card in a gpu-h100x8 node repeats it. Model is what says which accelerator this is.
getter/setter pair
provider ↔ String?
Provider distinguishes a BYO accelerator ("byo") from a Visor-provisioned one (the host machine's real provider). It is what tells a card the org owns from a card the org rents.
getter/setter pair
region ↔ String?
Region is the host machine's provider region slug; "on-prem" for a BYO card.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status is the HOST MACHINE's lifecycle state, because nothing upstream reports a card's own health. A card reads running because its machine does.
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) → GpuView?
Returns a new GpuView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<GpuView>
mapFromJson(dynamic json) → Map<String, GpuView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<GpuView>>

Constants

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