feat(1c): add file-based analytics stack scaffold

This commit is contained in:
igor04091968
2026-05-21 23:34:55 +03:00
parent b420104f1f
commit 04b45ecf03
30 changed files with 1537 additions and 13 deletions
@@ -0,0 +1,16 @@
INSERT INTO analytics_1c.cases
SELECT
ts AS opened_at,
detection_id AS case_id,
infobase,
concat('1C ', upper(severity), ' · ', rule_title, ' · ', entity_id) AS title,
severity,
'open' AS status,
'' AS assignee,
detection_id,
entity_type,
entity_id,
summary
FROM analytics_1c.detections
WHERE severity IN ('high', 'critical')
AND detection_id NOT IN (SELECT case_id FROM analytics_1c.cases);