TopSnapshot class

Everything the top screen shows about a project at one moment.

runtime is always present. A panel whose data could not be fetched is null, so the screen can say that it is unavailable.

Constructors

TopSnapshot({required CapsuleRuntimeStatus runtime, required DateTime updatedAt, required List<DeployAttempt>? deployments, required List<PodResourceSeries>? podResources, required CapsuleNetworkSeries? network, required DatabaseMetrics? database, required DateTime metricsUntil, required List<LogRecord>? logs, bool isStatusStale = false})
const

Properties

database → DatabaseMetrics?
final
deployments → List<DeployAttempt>?
The most recent deploy attempts, newest first.
final
hashCode → int
The hash code for this object.
no setterinherited
isStatusStale → bool
Whether the latest refresh of runtime failed, so runtime holds the values from updatedAt instead of the current ones.
final
logs → List<LogRecord>?
The most recent log records, oldest first.
final
metricsUntil → DateTime
The end of the window that the metrics series cover.
final
network → CapsuleNetworkSeries?
final
podResources → List<PodResourceSeries>?
final
runtime → CapsuleRuntimeStatus
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
updatedAt → DateTime
When runtime was last fetched.
final

Methods

copyWith({CapsuleRuntimeStatus? runtime, DateTime? updatedAt, List<DeployAttempt>? deployments, List<PodResourceSeries>? podResources, CapsuleNetworkSeries? network, DatabaseMetrics? database, DateTime? metricsUntil, List<LogRecord>? logs, bool? isStatusStale}) → TopSnapshot
Returns a copy where each given value replaces the current one.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
withMetrics({required List<PodResourceSeries>? podResources, required CapsuleNetworkSeries? network, required DatabaseMetrics? database, required DateTime metricsUntil}) → TopSnapshot
Returns a copy with the metrics of the window ending at metricsUntil.

Operators

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