DVAlertRule class

A rule.

Constructors

DVAlertRule({required String name, required DVSignalRef signal, required DVAlertWhen condition, required Duration forDuration, List<DVAlertTarget> notify = const <DVAlertTarget>[], Duration? resolveAfter, Duration? repeatEvery, List<DVNotificationChannel> channels = const <DVNotificationChannel>[DVNotificationChannel.email, DVNotificationChannel.push, DVNotificationChannel.inApp]})
const

Properties

channels → List<DVNotificationChannel>
The channels recipients are notified on.
final
condition → DVAlertWhen
final
effectiveResolveAfter → Duration
no setter
forDuration → Duration
How long the condition must hold before the rule fires. Required and positive: a rule that fires on one sample fires on a garbage-collection pause, and gets muted.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
final
notify → List<DVAlertTarget>
final
repeatEvery → Duration?
Re-notify while still firing, at this interval. Off by default.
final
resolveAfter → Duration?
How long the condition must stay clear before the alert resolves.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signal → DVSignalRef
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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