-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: track the processing of alerts (#586)
- Loading branch information
Showing
34 changed files
with
1,384 additions
and
329 deletions.
There are no files selected for viewing
152 changes: 0 additions & 152 deletions
152
...mmon/common-service/src/main/java/io/holoinsight/server/common/service/FuseProtector.java
This file was deleted.
Oops, something went wrong.
100 changes: 0 additions & 100 deletions
100
.../common-service/src/test/java/io/holoinsight/server/common/service/FuseProtectorTest.java
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
...n-flyway/src/main/resources/db/migration/V15__230718_CREATE_alert_notify_record_TABLE.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
CREATE TABLE `alert_notify_record` ( | ||
`id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键id', | ||
`history_id` BIGINT DEFAULT NULL COMMENT '历史id', | ||
`history_detail_id` BIGINT DEFAULT NULL COMMENT '历史详情id', | ||
`unique_id` VARCHAR ( 64 ) DEFAULT NULL, | ||
`rule_name` VARCHAR ( 255 ) DEFAULT NULL COMMENT '告警规则名称', | ||
`gmt_create` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP comment '创建时间', | ||
`gmt_modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment '修改时间', | ||
`notify_error_time` TIMESTAMP DEFAULT CURRENT_TIMESTAMP COMMENT '告警异常时间', | ||
`is_success` TINYINT NOT NULL COMMENT '告警是否成功', | ||
`notify_channel` VARCHAR ( 255 ) DEFAULT NULL COMMENT '通知渠道', | ||
`notify_error_node` LONGTEXT DEFAULT NULL COMMENT '通知异常节点', | ||
`notify_user` TEXT DEFAULT NULL COMMENT '通知人信息', | ||
`tenant` VARCHAR ( 64 ) DEFAULT NULL COMMENT '租户', | ||
`extra` LONGTEXT DEFAULT NULL COMMENT '额外信息', | ||
`trigger_result` LONGTEXT DEFAULT NULL COMMENT '告警计算信息', | ||
`env_type` VARCHAR ( 255 ) DEFAULT NULL COMMENT '运行环境', | ||
`workspace` VARCHAR ( 64 ) DEFAULT NULL, | ||
PRIMARY KEY ( `id` ), | ||
INDEX ( `history_detail_id` ), | ||
INDEX ( `history_id` ), | ||
INDEX ( `unique_id` )) ENGINE = INNODB COMMENT = '告警通知记录'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.