CREATE STABLE IF NOT EXISTS alarm_log (`ts` TIMESTAMP,`alarm_value` DOUBLE ,`level` INT) TAGS (`tenant_id` BIGINT,`application_id` BIGINT,`indicator_id` BIGINT,`monitor_point_id` BIGINT,`alarm_key` NCHAR(20),`alarm_type` INT);
ALTER STABLE alarm_log ADD COLUMN `status` INT;
ALTER STABLE alarm_log ADD TAG `alarm_rule_id` BIGINT;
ALTER STABLE alarm_log ADD TAG `device_id` BIGINT;
ALTER STABLE alarm_log ADD COLUMN `whether_push` INT;
ALTER STABLE alarm_log ADD COLUMN `alarm_msg` NCHAR(64);
ALTER STABLE alarm_log ADD COLUMN `alarm_device_type` INT;
ALTER STABLE alarm_log ADD COLUMN `trigger_type` INT;

ALTER STABLE alarm_log ADD TAG `alarm_object` INT;
ALTER STABLE alarm_log ADD TAG `application_ids` NCHAR(128);

--CREATE STABLE `alarm_log` (`ts` TIMESTAMP, `alarm_value` DOUBLE, `level` INT, `status` INT, `alarm_msg` NCHAR(64), `alarm_device_type` INT, `trigger_type` INT, `whether_push` INT) TAGS (`tenant_id` BIGINT, `application_id` BIGINT, `indicator_id` BIGINT, `monitor_point_id` BIGINT, `alarm_key` NCHAR(20), `alarm_type` INT, `alarm_rule_id` BIGINT, `device_id` BIGINT, `alarm_object` INT, `application_ids` NCHAR(128));
