- Alembic 005: таблицы irm_alerts и incident_alert_links - Модуль alerts: API/UI, Ack/Resolve, привязка к инциденту через alert_ids - Вебхук Grafana: одна транзакция ingress + irm_alerts; разбор payload в grafana_payload - По умолчанию инцидент из вебхука не создаётся (AUTO_INCIDENT_FROM_ALERT) - Документация IRM_GRAFANA_PARITY.md, обновления IRM.md и CHANGELOG Made-with: Cursor
10 lines
291 B
Python
10 lines
291 B
Python
"""API модуля алертов без БД."""
|
|
|
|
from fastapi.testclient import TestClient
|
|
|
|
|
|
def test_alerts_list_no_db(client: TestClient) -> None:
|
|
r = client.get("/api/v1/modules/alerts/")
|
|
assert r.status_code == 200
|
|
assert r.json() == {"items": [], "database": "disabled"}
|