Diff -- drift_sense.ALERT_RULES

O Operator
Diff

drift_sense.ALERT_RULES

on local at 2026-07-11 19:00:02

Added
+1
lines
Removed
-1
lines
Context
18
unchanged
Blobs
from 79c1d77e4489
to 65784959e8b4
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',
1717 PRIMARY KEY (`alert_rule_id`),
1818 KEY `idx_active` (`is_active`)
19) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4
19) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4