(improvement)(semantic) support adding tag for metric

This commit is contained in:
jolunoluo
2023-09-19 21:13:39 +08:00
parent 6a5a95e543
commit 3fe726ac23
18 changed files with 384 additions and 86 deletions

View File

@@ -190,6 +190,7 @@ CREATE TABLE IF NOT EXISTS `s2_metric` (
`data_format_type` varchar(50) DEFAULT NULL ,
`data_format` varchar(500) DEFAULT NULL,
`alias` varchar(500) DEFAULT NULL,
`tags` varchar(500) DEFAULT NULL,
PRIMARY KEY (`id`)
);
COMMENT ON TABLE s2_metric IS 'metric information table';

View File

@@ -254,6 +254,7 @@ CREATE TABLE `s2_metric` (
`data_format_type` varchar(50) DEFAULT NULL COMMENT '数值类型',
`data_format` varchar(500) DEFAULT NULL COMMENT '数值类型参数',
`alias` varchar(500) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`tags` varchar(500) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='指标表';

View File

@@ -48,5 +48,7 @@ alter table s2_database drop column domain_id;
alter table s2_chat add column agent_id int after chat_id;
--20230907
ALTER TABLE s2_model add alias varchar(200) default null after domain_id;
ALTER TABLE s2_model add alias varchar(200) default null after domain_id;
--20230919
alter table s2_metric add tags varchar(500) null;

View File

@@ -205,6 +205,7 @@ CREATE TABLE IF NOT EXISTS `s2_metric` (
`data_format_type` varchar(50) DEFAULT NULL ,
`data_format` varchar(500) DEFAULT NULL,
`alias` varchar(500) DEFAULT NULL,
`tags` varchar(500) DEFAULT NULL,
PRIMARY KEY (`id`)
);
COMMENT ON TABLE s2_metric IS 'metric information table';