Using rebase.alert()
A short description of the alert, for example “Data out of bounds”.
A longer, more detailed description of why the alert got triggered.
A flag specifying how important the alert is. Must be one of
AlertLevel.INFO,
AlertLevel.WARNING, or AlertLevel.ERROR. AlertLevelis imported from rebase.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()