Get an associated AlertType object for this alert (based on the type index)
(self)
| 189 | |
| 190 | @property |
| 191 | def alert_type(self) -> enums.AlertType: |
| 192 | """ |
| 193 | Get an associated AlertType object for this alert (based on the type index) |
| 194 | """ |
| 195 | alert_type = enums.AlertTypes.find(self.type) |
| 196 | if not alert_type: |
| 197 | alert_type = enums.AlertTypes.default.value |
| 198 | |
| 199 | return alert_type |
| 200 | |
| 201 | @property |
| 202 | def message(self): |