Files
PTah 2b76ae8497 feat: ingest HTTP 201/409 for event_id idempotency
- Validate UUID format; log created/duplicate/rejected

- Tests for 201, 409, 422; update agent-integration and work-plan

- Docs: neutral IDE wording (no product-specific editor names)
2026-05-28 09:13:12 +10:00

46 lines
1.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Диаграмма потоков данных (рис. 1 к ТЗ)
Используется в [TZ.md](../TZ.md), раздел 3.
В GitLab/GitHub и в VS Code с поддержкой Mermaid диаграмма рендерится автоматически.
## Экспорт в PNG/SVG
1. Открыть этот файл в preview редактора или на https://mermaid.live
2. Экспортировать как изображение для презентаций
```mermaid
flowchart LR
subgraph agents [Агенты на хостах]
SSH[ssh-monitor Linux]
RDP[RDP-login-monitor Windows]
end
subgraph sac [Security Alert Center Ubuntu 24.04]
API[Ingest API HTTPS]
Q[Очередь / воркер]
DB[(PostgreSQL)]
RT[Realtime SSE/WebSocket]
UI[Web UI]
NOTIFY[Правила оповещений]
end
subgraph channels [Каналы наружу]
TG[Telegram]
MAIL[Email]
WEBHOOK[Webhook / Slack]
end
SSH -->|JSON события + API key| API
RDP -->|JSON события + API key| API
API --> Q --> DB
DB --> UI
DB --> RT --> UI
DB --> NOTIFY --> TG
NOTIFY --> MAIL
NOTIFY --> WEBHOOK
```
## Режим UseSAC=exclusive
При включённом `UseSAC` стрелки от агентов к Telegram/email **отсутствуют**; доставка пользователю только через блок `NOTIFY` в SAC.