Alert class

A rule currently breached by a node.

Annotations
  • @immutable

Constructors

Alert({required AlertRule rule, required String nodeId, required DateTime since, double? value})
Creates an alert.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
A line an operator can read.
no setter
nodeId String
The node breaching it.
final
rule AlertRule
The rule that is breached.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
since DateTime
When the condition started — not when the alert fired.
final
value double?
The value that breached it (a percentage), or null for offline.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
JSON form.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromJson(Map<String, dynamic> json) Alert
Decodes from JSON.