DVStatusSnapshot class

What the application publishes for its status page.

Constructors

DVStatusSnapshot({required DateTime generatedAt, required Map<String, DVComponentStatus> components, required List<DVPublicIncident> incidents})
const

Properties

components → Map<String, DVComponentStatus>
final
generatedAt → DateTime
When this was true.
final
hashCode → int
The hash code for this object.
no setterinherited
incidents → List<DVPublicIncident>
final
overall → DVComponentStatus
The worst component -- and never "operational" while a listed incident is open, which is the page contradicting its own incident notice.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Static Methods

build({required DVHealthReport health, required List<DVIncident> incidents, required DateTime now, Duration resolvedWithin = const Duration(days: 7)}) → DVStatusSnapshot
Builds the public snapshot.
fromJson(Map<String, Object?> json) → DVStatusSnapshot