URI Statistics Alarm
Was this helpful?
Was this helpful?
CREATE TABLE `pinot_alarm_history` (
`history_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`rule_id` int(10) unsigned NOT NULL,
`timestamp` datetime NOT NULL,
PRIMARY KEY (`history_id`)
);CREATE TABLE `pinot_alarm_rule` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`service_name` varchar(30) NOT NULL,
`application_name` varchar(30) NOT NULL,
`category_name` varchar(30) NOT NULL,
`checker_name` varchar(30) NOT NULL,
`target` varchar(256) NOT NULL,
`condition` varchar(30) NOT NULL,
`threshold` decimal(10,2) DEFAULT NULL,
`baseline` varchar(30) DEFAULT NULL,
`user_group_id` varchar(30) NOT NULL,
`sms_send` char(1) DEFAULT NULL,
`email_send` char(1) DEFAULT NULL,
`webhook_send` char(1) DEFAULT NULL,
`notes` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
);CREATE TABLE `pinot_webhook_send` (
`webhook_send_info_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`webhook_id` int(10) unsigned NOT NULL,
`rule_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`webhook_send_info_id`),
UNIQUE KEY `webhook_send_info_id_UNIQUE` (`webhook_send_info_id`)
);CREATE TABLE `pinot_alarm_history` (
`history_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`rule_id` int(10) unsigned NOT NULL,
`timestamp` datetime NOT NULL,
PRIMARY KEY (`history_id`)
);CREATE TABLE `pinot_alarm_rule` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`service_name` varchar(30) NOT NULL,
`application_name` varchar(30) NOT NULL,
`category_name` varchar(30) NOT NULL,
`checker_name` varchar(30) NOT NULL,
`target` varchar(256) NOT NULL,
`condition` varchar(30) NOT NULL,
`threshold` decimal(10,2) DEFAULT NULL,
`baseline` varchar(30) DEFAULT NULL,
`user_group_id` varchar(30) NOT NULL,
`sms_send` char(1) DEFAULT NULL,
`email_send` char(1) DEFAULT NULL,
`webhook_send` char(1) DEFAULT NULL,
`notes` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
);CREATE TABLE `pinot_webhook_send` (
`webhook_send_info_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`webhook_id` int(10) unsigned NOT NULL,
`rule_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`webhook_send_info_id`),
UNIQUE KEY `webhook_send_info_id_UNIQUE` (`webhook_send_info_id`)
);