DVServiceLevels class

The declared service levels, their sources, and their sampled history.

Constructors

DVServiceLevels({void onDiagnostic(String code, String message)?})

Properties

hashCode → int
The hash code for this object.
no setterinherited
levels → List<DVServiceLevel>
The declared levels, in the order they were added.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(DVServiceLevel level) → void
burnRate(String name, Duration window, {required DateTime now}) → double?
How many times faster than the objective allows the budget is being spent, over the trailing window.
has(String name) → bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeSource(DVAppliesTo applies) → void
sample(DateTime now) → void
Reads every source once and records the counts as of now.
source(DVAppliesTo applies, DVServiceLevelSource source) → void
Where the counts for applies come from.
status(String name, {required DateTime now}) → DVServiceLevelStatus
Where name stands over its objective's window, as of now.
toString() → String
A string representation of this object.
inherited

Operators

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