mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-09 20:31:10 +00:00
13 lines
406 B
Python
13 lines
406 B
Python
from typing import Coroutine
|
|
|
|
from lego_monitoring.alerting.alert import Alert
|
|
from lego_monitoring.core.checkers import BaseChecker
|
|
|
|
|
|
def remind_check(checkers: list[Coroutine | BaseChecker]) -> list[Alert]:
|
|
alerts = []
|
|
for c in checkers:
|
|
if not isinstance(c, BaseChecker) or not c.persistent or not c.remind:
|
|
continue
|
|
alerts.extend(c.current_alerts)
|
|
return alerts
|