Diff -- drift_sense.ALERT_RULES

O Operator
Diff

drift_sense.ALERT_RULES

on local at 2026-07-12 00:05:01

Added
+3
lines
Removed
-0
lines
Context
19
unchanged
Blobs
from 65784959e8b4
to bf5a4e0eeb32
Unified diff
Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.
11CREATE TABLE `ALERT_RULES` (
22 `alert_rule_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
33 `rule_name` varchar(200) NOT NULL,
44 `is_active` tinyint(1) NOT NULL DEFAULT '1',
55 `match_kind` enum('file','schema','either') NOT NULL DEFAULT 'either',
66 `match_path_glob` varchar(500) DEFAULT NULL,
77 `match_status_list` varchar(200) DEFAULT NULL,
88 `exclude_ts_only` tinyint(1) NOT NULL DEFAULT '1',
99 `delivery_kind` enum('slack','discord','generic_webhook','email') NOT NULL DEFAULT 'generic_webhook',
1010 `delivery_url` varchar(2000) DEFAULT NULL,
1111 `delivery_email` varchar(500) DEFAULT NULL,
1212 `rate_limit_per_min` int(10) unsigned NOT NULL DEFAULT '0',
1313 `coalesce_window_s` int(10) unsigned NOT NULL DEFAULT '0',
1414 `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
1515 `last_fired_at` datetime DEFAULT NULL,
1616 `fire_count` int(10) unsigned NOT NULL DEFAULT '0',
17 `frequency_threshold` int(10) unsigned NOT NULL DEFAULT '0',
18 `frequency_window_min` int(10) unsigned NOT NULL DEFAULT '60',
19 `last_frequency_fire_at` datetime DEFAULT NULL,
1720 PRIMARY KEY (`alert_rule_id`),
1821 KEY `idx_active` (`is_active`)
1922) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4