MachineAttributes class

Constructors

MachineAttributes({required String fingerprint, int? cores, String? name, String? ip, String? hostname, String? platform, int? maxProcesses, bool? requireHeartbeat, MachineAttributesHeartbeatStatusEnum? heartbeatStatus, int? heartbeatDuration, DateTime? lastHeartbeat, DateTime? nextHeartbeat, DateTime? lastCheckOut, Map<String, Object> metadata = const {}, DateTime? created, DateTime? updated})
Returns a new MachineAttributes instance.

Properties

cores ↔ int?
The number of CPU cores for the machine.
getter/setter pair
created ↔ DateTime?
When the machine was created.
getter/setter pair
fingerprint ↔ String
The fingerprint of the machine.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
heartbeatDuration ↔ int?
The policy's heartbeat duration.
getter/setter pair
heartbeatStatus ↔ MachineAttributesHeartbeatStatusEnum?
The status of the machine's heartbeat.
getter/setter pair
hostname ↔ String?
The hostname of the machine.
getter/setter pair
ip ↔ String?
The IP of the machine.
getter/setter pair
lastCheckOut ↔ DateTime?
When the machine was last checked-out.
getter/setter pair
lastHeartbeat ↔ DateTime?
When the machine last sent a heartbeat ping.
getter/setter pair
maxProcesses ↔ int?
The maximum number of processes the machine can have associated with it.
getter/setter pair
metadata ↔ Map<String, Object>
Object containing machine metadata.
getter/setter pair
name ↔ String?
The human-readable name of the machine.
getter/setter pair
nextHeartbeat ↔ DateTime?
The time at which the machine is required to send a heartbeat ping by.
getter/setter pair
platform ↔ String?
The platform of the machine.
getter/setter pair
requireHeartbeat ↔ bool?
Whether or not the machine requires heartbeat pings, i.e. the policy requires heartbeats, or the machine has an active heartbeat monitor.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
updated ↔ DateTime?
When the machine was last updated.
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) → MachineAttributes?
Returns a new MachineAttributes instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<MachineAttributes>
mapFromJson(dynamic json) → Map<String, MachineAttributes>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<MachineAttributes>>

Constants

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