ProcessAttributes class

Constructors

ProcessAttributes({required int pid, required ProcessAttributesStatusEnum status, required DateTime? lastHeartbeat, required DateTime? nextHeartbeat, required int? interval, Map<String, Object> metadata = const {}, required DateTime created, required DateTime updated})
Returns a new ProcessAttributes instance.

Properties

created ↔ DateTime
When the process was created.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
interval ↔ int?
The heartbeat interval for the process, in seconds. The process must send heartbeat pings within this timeframe to remain alive. This is inherited from the license's policy.
getter/setter pair
lastHeartbeat ↔ DateTime?
When the process last sent a heartbeat ping. The initial value of this attribute will be equal to the process's created timestamp.
getter/setter pair
metadata ↔ Map<String, Object>
Object containing process metadata.
getter/setter pair
nextHeartbeat ↔ DateTime?
The time at which the process is required to send its next heartbeat ping by. This attribute is calculated using the license policy's heartbeat duration.
getter/setter pair
pid ↔ int
The pid of the process. This can be an arbitrary string, but must be unique within the scope of the process it belongs to.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ ProcessAttributesStatusEnum
The status of the process's heartbeat. One of: ALIVE, DEAD, or RESURRECTED.
getter/setter pair
updated ↔ DateTime
When the process 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) → ProcessAttributes?
Returns a new ProcessAttributes instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ProcessAttributes>
mapFromJson(dynamic json) → Map<String, ProcessAttributes>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ProcessAttributes>>

Constants

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