Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
SkyWalking
提交
c394dce9
S
SkyWalking
项目概览
apache
/
SkyWalking
上一次同步 1 年多
通知
302
Star
21345
Fork
6091
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c394dce9
编写于
12月 22, 2015
作者:
Z
zhangxin10
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1. 新添加规则字段,excludeExceptions,用于过滤异常所使用
2. 更新SQL脚本 3.跟新数据库的连接语句
上级
45bbf0cd
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
703 addition
and
619 deletion
+703
-619
skywalking-webui/src/main/java/com/ai/cloud/controller/AlarmRuleCtl.java
...i/src/main/java/com/ai/cloud/controller/AlarmRuleCtl.java
+1
-0
skywalking-webui/src/main/resources/jdbc.properties
skywalking-webui/src/main/resources/jdbc.properties
+3
-3
skywalking-webui/src/main/sql/table.mysql
skywalking-webui/src/main/sql/table.mysql
+121
-63
skywalking-webui/src/main/webapp/ftl/applist.ftl
skywalking-webui/src/main/webapp/ftl/applist.ftl
+578
-553
未找到文件。
skywalking-webui/src/main/java/com/ai/cloud/controller/AlarmRuleCtl.java
浏览文件 @
c394dce9
...
...
@@ -333,6 +333,7 @@ public class AlarmRuleCtl {
ruleMVO
.
setTodoType
(
todoType
);
JSONObject
confArgs
=
new
JSONObject
();
confArgs
.
put
(
"period"
,
period
);
confArgs
.
put
(
"excludeExceptions"
,
json
.
get
(
"excludeExceptions"
));
if
(
Constants
.
TODO_TYPE_0
.
equals
(
todoType
))
{
// 设置邮件相关的信息
JSONObject
mailInfo
=
new
JSONObject
();
...
...
skywalking-webui/src/main/resources/jdbc.properties
浏览文件 @
c394dce9
jdbc.driverClassName
=
com.mysql.jdbc.Driver
jdbc.url
=
jdbc:mysql://10.1.2
28.200:31306/test
jdbc.username
=
devrdbusr13
jdbc.password
=
devrdbusr13
jdbc.url
=
jdbc:mysql://10.1.2
41.20:31306/sw_db
jdbc.username
=
sw_dbusr01
jdbc.password
=
sw_dbusr01
jdbc.maxTotal
=
200
jdbc.maxIdle
=
50
jdbc.maxWaitMillis
=
1000
...
...
skywalking-webui/src/main/sql/table.mysql
浏览文件 @
c394dce9
-- MySQL Script generated by MySQL Workbench
-- 12/15/15 10:31:42
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- Schema mydb
-- -----------------------------------------------------
-- -----------------------------------------------------
-- Table `user_info`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `user_info` ;
CREATE TABLE IF NOT EXISTS `user_info` (
`uid` INT UNSIGNED NOT NULL AUTO_INCREMENT
COMMENT ''
,
`user_name` VARCHAR(100) NOT NULL
COMMENT ''
,
`password` VARCHAR(32) NOT NULL
COMMENT ''
,
`role_type` VARCHAR(45) NOT NULL DEFAULT 'user'
COMMENT ''
,
`create_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
COMMENT ''
,
`sts` VARCHAR(2) NOT NULL
COMMENT ''
,
`modify_time` DATETIME NULL DEFAULT CURRENT_TIMESTAMP
COMMENT ''
,
PRIMARY KEY (`uid`)
COMMENT ''
,
UNIQUE INDEX `user_name_UNIQUE` (`user_name` ASC)
COMMENT ''
)
`uid` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`user_name` VARCHAR(100) NOT NULL,
`password` VARCHAR(32) NOT NULL,
`role_type` VARCHAR(45) NOT NULL DEFAULT 'user',
`create_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
`sts` VARCHAR(2) NOT NULL,
`modify_time` DATETIME NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`uid`),
UNIQUE INDEX `user_name_UNIQUE` (`user_name` ASC))
ENGINE = InnoDB;
...
...
@@ -19,11 +35,11 @@ ENGINE = InnoDB;
DROP TABLE IF EXISTS `user_info_ext` ;
CREATE TABLE IF NOT EXISTS `user_info_ext` (
`eid` INT UNSIGNED NOT NULL AUTO_INCREMENT
COMMENT ''
,
`uid` INT NOT NULL
COMMENT ''
,
`email` VARCHAR(200) NULL
COMMENT ''
,
`create_time` DATETIME NULL DEFAULT CURRENT_TIMESTAMP
COMMENT ''
,
PRIMARY KEY (`eid`)
COMMENT ''
)
`eid` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`uid` INT NOT NULL,
`email` VARCHAR(200) NULL,
`create_time` DATETIME NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`eid`))
ENGINE = InnoDB;
...
...
@@ -33,10 +49,10 @@ ENGINE = InnoDB;
DROP TABLE IF EXISTS `login_log` ;
CREATE TABLE IF NOT EXISTS `login_log` (
`log_id` INT UNSIGNED NOT NULL AUTO_INCREMENT
COMMENT ''
,
`uid` INT NOT NULL
COMMENT ''
,
`login_time` DATETIME NULL DEFAULT CURRENT_TIMESTAMP
COMMENT ''
,
PRIMARY KEY (`log_id`)
COMMENT ''
)
`log_id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`uid` INT NOT NULL,
`login_time` DATETIME NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`log_id`))
ENGINE = InnoDB;
...
...
@@ -46,12 +62,12 @@ ENGINE = InnoDB;
DROP TABLE IF EXISTS `application_info` ;
CREATE TABLE IF NOT EXISTS `application_info` (
`app_id` INT UNSIGNED NOT NULL AUTO_INCREMENT
COMMENT ''
,
`uid` INT NOT NULL
COMMENT ''
,
`app_code` VARCHAR(200) NOT NULL
COMMENT ''
,
`create_time` DATETIME NULL
COMMENT ''
,
`sts` VARCHAR(2) NULL
COMMENT ''
,
PRIMARY KEY (`app_id`)
COMMENT ''
)
`app_id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`uid` INT NOT NULL,
`app_code` VARCHAR(200) NOT NULL,
`create_time` DATETIME NULL,
`sts` VARCHAR(2) NULL,
PRIMARY KEY (`app_id`))
ENGINE = InnoDB;
...
...
@@ -61,15 +77,18 @@ ENGINE = InnoDB;
DROP TABLE IF EXISTS `data_info` ;
CREATE TABLE IF NOT EXISTS `data_info` (
`did` INT UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '',
`tab_info` VARCHAR(45) NOT NULL COMMENT '',
`col_info` VARCHAR(45) NOT NULL COMMENT '',
`code` VARCHAR(45) NOT NULL COMMENT '',
`word` VARCHAR(45) NOT NULL COMMENT '',
`word_desc` VARCHAR(200) NULL COMMENT '',
`sts` VARCHAR(2) NULL COMMENT '',
`create_time` DATETIME NULL COMMENT '',
PRIMARY KEY (`did`) COMMENT '')
`did` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`tab_info` VARCHAR(45) NOT NULL,
`col_info` VARCHAR(45) NOT NULL,
`code` VARCHAR(45) NOT NULL,
`word` VARCHAR(45) NOT NULL,
`code_desc` VARCHAR(200) NULL,
`order_id` INT UNSIGNED NULL,
`create_time` DATETIME NULL DEFAULT CURRENT_TIMESTAMP,
`sts` VARCHAR(2) NULL,
`modify_time` DATETIME NULL DEFAULT CURRENT_TIMESTAMP,
`parent_did` INT UNSIGNED NULL,
PRIMARY KEY (`did`))
ENGINE = InnoDB;
...
...
@@ -79,17 +98,16 @@ ENGINE = InnoDB;
DROP TABLE IF EXISTS `alarm_rule` ;
CREATE TABLE IF NOT EXISTS `alarm_rule` (
`rule_id` INT UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '',
`app_id` VARCHAR(45) NULL COMMENT '',
`uid` VARCHAR(45) NOT NULL COMMENT '',
`config_args` VARCHAR(200) NULL COMMENT '',
`is_global` VARCHAR(2) NOT NULL COMMENT '',
`todo_type` VARCHAR(4) NOT NULL COMMENT '',
`todo_content` VARCHAR(1000) NULL COMMENT '',
`create_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '',
`sts` VARCHAR(2) NULL COMMENT '',
`modify_time` DATETIME NULL DEFAULT CURRENT_TIMESTAMP COMMENT '',
PRIMARY KEY (`rule_id`) COMMENT '')
`rule_id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`app_id` VARCHAR(45) NULL,
`uid` VARCHAR(45) NOT NULL,
`is_global` VARCHAR(2) NOT NULL,
`todo_type` VARCHAR(4) NOT NULL,
`config_args` VARCHAR(2000) NULL,
`create_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
`sts` VARCHAR(2) NULL,
`modify_time` DATETIME NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`rule_id`))
ENGINE = InnoDB;
...
...
@@ -99,12 +117,12 @@ ENGINE = InnoDB;
DROP TABLE IF EXISTS `include_rule` ;
CREATE TABLE IF NOT EXISTS `include_rule` (
`irid` INT UNSIGNED NOT NULL AUTO_INCREMENT
COMMENT ''
,
`rule_value` VARCHAR(200) NULL
COMMENT ''
,
`create_time` DATETIME NULL
COMMENT ''
,
`sts` VARCHAR(2) NULL
COMMENT ''
,
`rule_id` INT UNSIGNED NOT NULL
COMMENT ''
,
PRIMARY KEY (`irid`)
COMMENT ''
)
`irid` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`rule_value` VARCHAR(200) NULL,
`create_time` DATETIME NULL,
`sts` VARCHAR(2) NULL,
`rule_id` INT UNSIGNED NOT NULL,
PRIMARY KEY (`irid`))
ENGINE = InnoDB;
...
...
@@ -114,12 +132,12 @@ ENGINE = InnoDB;
DROP TABLE IF EXISTS `exclude_rule` ;
CREATE TABLE IF NOT EXISTS `exclude_rule` (
`erid` INT UNSIGNED NOT NULL AUTO_INCREMENT
COMMENT ''
,
`rule_value` VARCHAR(200) NULL
COMMENT ''
,
`create_time` DATETIME NULL
COMMENT ''
,
`sts` VARCHAR(2) NULL
COMMENT ''
,
`rule_id` INT UNSIGNED NOT NULL
COMMENT ''
,
PRIMARY KEY (`erid`)
COMMENT ''
)
`erid` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`rule_value` VARCHAR(200) NULL,
`create_time` DATETIME NULL,
`sts` VARCHAR(2) NULL,
`rule_id` INT UNSIGNED NOT NULL,
PRIMARY KEY (`erid`))
ENGINE = InnoDB;
...
...
@@ -129,10 +147,50 @@ ENGINE = InnoDB;
DROP TABLE IF EXISTS `email_expression` ;
CREATE TABLE IF NOT EXISTS `email_expression` (
`tid` INT UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '',
`expr_name` VARCHAR(100) NOT NULL COMMENT '',
`expr_val` VARCHAR(100) NOT NULL COMMENT '',
`create_time` DATETIME NULL COMMENT '',
`sts` VARCHAR(2) NULL COMMENT '',
PRIMARY KEY (`tid`) COMMENT '')
ENGINE = InnoDB;
\ No newline at end of file
`tid` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`expr_name` VARCHAR(100) NOT NULL,
`expr_val` VARCHAR(100) NOT NULL,
`create_time` DATETIME NULL,
`sts` VARCHAR(2) NULL,
PRIMARY KEY (`tid`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `system_config`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `system_config` ;
CREATE TABLE IF NOT EXISTS `system_config` (
`config_id` INT UNSIGNED NOT NULL,
`conf_key` VARCHAR(200) NOT NULL,
`conf_value` VARCHAR(500) NOT NULL,
`val_type` VARCHAR(45) NOT NULL,
`val_desc` VARCHAR(200) NULL,
`create_time` DATETIME NULL,
`sts` VARCHAR(2) NOT NULL,
`modify_time` DATETIME NULL,
PRIMARY KEY (`config_id`),
UNIQUE INDEX `conf_key_UNIQUE` (`conf_key` ASC))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `app_auth_info`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `app_auth_info` ;
CREATE TABLE IF NOT EXISTS `app_auth_info` (
`info_id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`app_id` VARCHAR(45) NOT NULL,
`auth_json` VARCHAR(3000) NOT NULL,
`create_time` DATETIME NULL,
`sts` VARCHAR(45) NULL,
`modify_time` DATETIME NULL,
PRIMARY KEY (`info_id`))
ENGINE = InnoDB;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
skywalking-webui/src/main/webapp/ftl/applist.ftl
浏览文件 @
c394dce9
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录