Using rebase.alert()
string
required
A short description of the alert, for example “Data out of bounds”.
string
required
A longer, more detailed description of why the alert got triggered.
AlertLevel
A flag specifying how important the alert is. Must be one of
AlertLevel.INFO,
AlertLevel.WARNING, or AlertLevel.ERROR. AlertLevelis imported from rebase.integer
default:300
Number of seconds to add as buffer time between two alerts with the same title.
This allows to reduce alert spam.
Example
This is a simple example of an alert that is created when the production falls below 80% of the theoretical production. In order to avoid alert spam, we set therebase.alert()