Unverified Commit 28f27044 authored by Zzm0809's avatar Zzm0809 Committed by GitHub

[refactor] move alert rule to register center's alert (#3294)

parent 3c07d9ba
......@@ -83,7 +83,7 @@ public class AlertRuleController {
@ApiOperation("Save or update alert rule")
@Log(title = "Save or update alert rule", businessType = BusinessType.INSERT_OR_UPDATE)
@SaCheckPermission(
value = {PermissionConstants.SYSTEM_ALERT_RULE_ADD, PermissionConstants.SYSTEM_ALERT_RULE_EDIT},
value = {PermissionConstants.REGISTRATION_ALERT_RULE_ADD, PermissionConstants.REGISTRATION_ALERT_RULE_EDIT},
mode = SaMode.OR)
public Result<Boolean> saveOrUpdateAlertRule(@RequestBody AlertRule alertRule) {
boolean saved = alertRuleService.saveOrUpdate(alertRule);
......@@ -105,7 +105,7 @@ public class AlertRuleController {
example = "1")
@ApiOperation("Delete alert rule")
@Log(title = "Delete alert rule", businessType = BusinessType.DELETE)
@SaCheckPermission(PermissionConstants.SYSTEM_ALERT_RULE_DELETE)
@SaCheckPermission(PermissionConstants.REGISTRATION_ALERT_RULE_DELETE)
public Result<Boolean> deleteAlertRuleById(@RequestParam Integer id) {
if (alertRuleService.removeById(id)) {
return Result.succeed(Status.DELETE_SUCCESS);
......
......@@ -148,10 +148,10 @@ insert into dinky_sys_menu values (112, 22, '刷新', '/auth/menu/refresh', null
insert into dinky_sys_menu values (113, 22, '编辑', '/auth/menu/edit', null, 'auth:menu:edit', 'EditOutlined', 'F', 0, 98, '2023-09-22 22:11:41', '2023-09-26 15:12:26', null);
insert into dinky_sys_menu values (114, 22, '添加子项', '/auth/menu/addSub', null, 'auth:menu:addSub', 'PlusOutlined', 'F', 0, 96, '2023-09-22 22:11:41', '2023-09-26 15:12:26', null);
insert into dinky_sys_menu values (115, 22, '删除', '/auth/menu/delete', null, 'auth:menu:delete', 'DeleteOutlined', 'F', 0, 99, '2023-09-22 22:11:41', '2023-09-26 15:12:26', null);
insert into dinky_sys_menu values (116, 6, '告警策略', '/settings/alertrule', './SettingCenter/AlertRule', 'settings:alertrule', 'AndroidOutlined', 'C', 0, 136, '2023-09-22 23:31:10', '2023-09-26 15:19:52', null);
insert into dinky_sys_menu values (117, 116, '添加', '/settings/alertrule/add', null, 'settings:alertrule:add', 'PlusOutlined', 'F', 0, 137, '2023-09-22 23:34:51', '2023-09-26 15:20:03', null);
insert into dinky_sys_menu values (118, 116, '删除', '/settings/alertrule/delete', null, 'settings:alertrule:delete', 'DeleteOutlined', 'F', 0, 139, '2023-09-22 23:35:20', '2023-09-26 15:20:21', null);
insert into dinky_sys_menu values (119, 116, '编辑', '/settings/alertrule/edit', null, 'settings:alertrule:edit', 'EditOutlined', 'F', 0, 138, '2023-09-22 23:36:32', '2023-09-26 15:20:13', null);
insert into dinky_sys_menu values (116, 12, '告警策略', '/registration/alert/rule', './RegCenter/Alert/AlertRule', 'registration:alert:rule', 'AndroidOutlined', 'C', 0, 136, '2023-09-22 23:31:10', '2023-09-26 15:19:52', null);
insert into dinky_sys_menu values (117, 116, '添加', '/registration/alert/rule/add', null, 'registration:alert:rule:add', 'PlusOutlined', 'F', 0, 137, '2023-09-22 23:34:51', '2023-09-26 15:20:03', null);
insert into dinky_sys_menu values (118, 116, '删除', '/registration/alert/rule/delete', null, 'registration:alert:rule:delete', 'DeleteOutlined', 'F', 0, 139, '2023-09-22 23:35:20', '2023-09-26 15:20:21', null);
insert into dinky_sys_menu values (119, 116, '编辑', '/registration/alert/rule/edit', null, 'registration:alert:rule:edit', 'EditOutlined', 'F', 0, 138, '2023-09-22 23:36:32', '2023-09-26 15:20:13', null);
insert into dinky_sys_menu values (120, 8, 'Dinky 服务监控', '/metrics/server', './Metrics/Server', 'metrics:server', 'DashboardOutlined', 'F', 0, 141, '2023-09-22 23:37:43', '2023-09-26 15:21:00', null);
insert into dinky_sys_menu values (121, 8, 'Flink 任务监控', '/metrics/job', './Metrics/Job', 'metrics:job', 'DashboardTwoTone', 'C', 0, 142, '2023-09-22 23:38:34', '2023-09-26 15:21:08', null);
insert into dinky_sys_menu values (122, 24, 'Dinky 环境配置', '/settings/globalsetting/dinky', null, 'settings:globalsetting:dinky', 'SettingOutlined', 'F', 0, 117, '2023-09-22 23:40:30', '2023-09-26 15:16:20', null);
......
......@@ -55,6 +55,15 @@ public class PermissionConstants {
public static final String REGISTRATION_ALERT_TEMPLATE_DELETE = "registration:alert:template:delete";
/**
* alert 策略
*/
public static final String REGISTRATION_ALERT_RULE_ADD = "registration:alert:rule:add";
public static final String REGISTRATION_ALERT_RULE_EDIT = "registration:alert:rule:edit";
public static final String REGISTRATION_ALERT_RULE_DELETE = "registration:alert:rule:delete";
/**
* catalog
* todo: add catalog permission
......@@ -231,13 +240,4 @@ public class PermissionConstants {
public static final String SYSTEM_SETTING_INFO_LOG_LIST = "settings:systemlog:loglist";
public static final String SYSTEM_SETTING_INFO_ROOT_LOG = "settings:systemlog:rootlog";
/**
* alert 策略
*/
public static final String SYSTEM_ALERT_RULE_ADD = "settings:alertrule:add";
public static final String SYSTEM_ALERT_RULE_EDIT = "settings:alertrule:edit";
public static final String SYSTEM_ALERT_RULE_DELETE = "settings:alertrule:delete";
}
......@@ -157,6 +157,11 @@ export default [
path: '/registration/alert/template',
name: 'template',
component: './RegCenter/Alert/AlertTemplate'
},
{
path: '/registration/alert/rule',
name: 'rule',
component: './RegCenter/Alert/AlertRule'
}
]
},
......@@ -270,12 +275,6 @@ export default [
// icon: 'ReconciliationOutlined',
// component: './SettingCenter/Process'
// },
{
path: '/settings/alertrule',
name: 'alertrule',
icon: 'ReconciliationOutlined',
component: './SettingCenter/AlertRule'
},
{
path: '/settings/classloaderjars',
name: 'classloaderjars',
......
......@@ -64,6 +64,7 @@ export default {
'menu.registration.alert.instance': 'Alert Instance',
'menu.registration.alert.group': 'Alert Group',
'menu.registration.alert.template': 'Alert Template',
'menu.registration.alert.rule': 'Alert Rules',
'menu.registration.document': 'Document',
'menu.registration.fragment': 'Global Variable',
'menu.registration.gitproject': 'Git Project(Beta)',
......@@ -83,7 +84,6 @@ export default {
'menu.settings.classloaderjars': 'ClassLoader Jars',
'menu.settings.process': 'Process List',
'menu.settings.services': 'Servers List',
'menu.settings.alertrule': 'Alert Rules',
'menu.metrics': 'Metrics',
'menu.about': 'About',
'menu.version': 'Version: {version}',
......
......@@ -64,6 +64,7 @@ export default {
'menu.registration.alert.instance': '告警实例',
'menu.registration.alert.group': '告警组',
'menu.registration.alert.template': '告警模板',
'menu.registration.alert.rule': '告警策略',
'menu.registration.document': '文档',
'menu.registration.fragment': '全局变量',
'menu.registration.gitproject': 'Git 项目(Beta)',
......@@ -83,7 +84,6 @@ export default {
'menu.settings.classloaderjars': '类加载器 Jars',
'menu.settings.process': '进程列表',
'menu.settings.services': '服务器列表',
'menu.settings.alertrule': '告警策略',
'menu.metrics': '监控',
'menu.about': '关于',
'menu.version': '版本:{version}',
......
......@@ -82,7 +82,7 @@ export default {
'datastudio.middle.qg.fragment': '全局变量',
'datastudio.middle.qg.gitprojects': 'Git 项目',
'datastudio.middle.qg.resource': '资源',
'datastudio.middle.qg.alertRule': '告警规则',
'datastudio.middle.qg.alertRule': '告警策略',
'datastudio.middle.qg.alertTemplate': '注册告警模板',
'datastudio.middle.qg.accountCenter': '个人中心',
'datastudio.middle.qg.globalsetting': '全局配置',
......
......@@ -22,7 +22,7 @@ import {
AllRuleOperator,
EqRuleOperator,
OperatorType
} from '@/pages/SettingCenter/AlertRule/AlertRuleList/RuleEditForm/constants';
} from '@/pages/RegCenter/Alert/AlertRule/AlertRuleList/RuleEditForm/constants';
import { l } from '@/utils/intl';
import { ProFormDigit, ProFormSelect, ProFormText } from '@ant-design/pro-components';
import { DefaultOptionType } from 'antd/es/select';
......
......@@ -18,15 +18,16 @@
*/
import { Authorized } from '@/hooks/useAccess';
import {
RuleType,
TriggerType
} from '@/pages/SettingCenter/AlertRule/AlertRuleList/RuleEditForm/constants';
} from '@/pages/RegCenter/Alert/AlertRule/AlertRuleList/RuleEditForm/constants';
import {
AlertRulesOption,
buildValueItem,
getOperatorOptions
} from '@/pages/SettingCenter/AlertRule/AlertRuleList/RuleEditForm/function';
} from '@/pages/RegCenter/Alert/AlertRule/AlertRuleList/RuleEditForm/function';
import { getData } from '@/services/api';
import { SWITCH_OPTIONS } from '@/services/constants';
import { API_CONSTANTS } from '@/services/endpoints';
......
......@@ -22,8 +22,8 @@ import { EditBtn } from '@/components/CallBackButton/EditBtn';
import { EnableSwitchBtn } from '@/components/CallBackButton/EnableSwitchBtn';
import { PopconfirmDeleteBtn } from '@/components/CallBackButton/PopconfirmDeleteBtn';
import { Authorized, HasAuthority } from '@/hooks/useAccess';
import RuleEditForm from '@/pages/SettingCenter/AlertRule/AlertRuleList/RuleEditForm';
import { RuleType } from '@/pages/SettingCenter/AlertRule/AlertRuleList/RuleEditForm/constants';
import RuleEditForm from '@/pages/RegCenter/Alert/AlertRule/AlertRuleList/RuleEditForm';
import { RuleType } from '@/pages/RegCenter/Alert/AlertRule/AlertRuleList/RuleEditForm/constants';
import { queryList } from '@/services/api';
import { handleAddOrUpdate, handleRemoveById } from '@/services/BusinessCrud';
import { PROTABLE_OPTIONS_PUBLIC, STATUS_ENUM, STATUS_MAPPING } from '@/services/constants';
......@@ -111,7 +111,7 @@ const AlertRuleList: React.FC = () => {
<EnableSwitchBtn
key={`${record.id}_enable`}
record={record}
disabled={!HasAuthority(PermissionConstants.SYSTEM_ALERT_RULE_EDIT)}
disabled={!HasAuthority(PermissionConstants.REGISTRATION_ALERT_RULE_EDIT)}
onChange={async () => {
record.enabled = !record.enabled;
record.rule = JSON.stringify(record.rule);
......@@ -140,13 +140,13 @@ const AlertRuleList: React.FC = () => {
render: (_text: any, record: AlertRule) => [
<Authorized
key={`${record.id}_edit_auth`}
path={PermissionConstants.SYSTEM_ALERT_RULE_EDIT}
path={PermissionConstants.REGISTRATION_ALERT_RULE_EDIT}
>
<EditBtn key={`${record.id}_edit`} onClick={() => editClick(record)} />
</Authorized>,
<Authorized
key={`${record.id}_delete_auth`}
path={PermissionConstants.SYSTEM_ALERT_RULE_DELETE}
path={PermissionConstants.REGISTRATION_ALERT_RULE_DELETE}
>
<>
{record.ruleType != RuleType.SYSTEM && (
......@@ -170,7 +170,10 @@ const AlertRuleList: React.FC = () => {
loading={ruleState.loading}
{...PROTABLE_OPTIONS_PUBLIC}
toolBarRender={() => [
<Authorized key={`CreateRule_auth`} path={PermissionConstants.SYSTEM_ALERT_RULE_ADD}>
<Authorized
key={`CreateRule_auth`}
path={PermissionConstants.REGISTRATION_ALERT_RULE_ADD}
>
<CreateBtn
key={'CreateRule'}
onClick={() => setRuleState((prevState) => ({ ...prevState, addedOpen: true }))}
......
......@@ -93,6 +93,13 @@ export enum PermissionConstants {
REGISTRATION_ALERT_TEMPLATE_EDIT = '/registration/alert/template/edit',
REGISTRATION_ALERT_TEMPLATE_DELETE = '/registration/alert/template/delete',
/**
* registration alert rule
*/
REGISTRATION_ALERT_RULE_ADD = '/registration/alert/rule/add',
REGISTRATION_ALERT_RULE_EDIT = '/registration/alert/rule/edit',
REGISTRATION_ALERT_RULE_DELETE = '/registration/alert/rule/delete',
/**
* cluster config
*/
......@@ -241,12 +248,5 @@ export enum PermissionConstants {
* system log
*/
SYSTEM_SETTING_INFO_LOG_LIST = '/settings/systemlog/loglist',
SYSTEM_SETTING_INFO_ROOT_LOG = '/settings/systemlog/rootlog',
/**
* alert 策略
*/
SYSTEM_ALERT_RULE_ADD = '/settings/alertrule/add',
SYSTEM_ALERT_RULE_EDIT = '/settings/alertrule/edit',
SYSTEM_ALERT_RULE_DELETE = '/settings/alertrule/delete'
SYSTEM_SETTING_INFO_ROOT_LOG = '/settings/systemlog/rootlog'
}
......@@ -107,6 +107,6 @@ title: 任务详情
:::warning 注意
任务告警只有当 任务的生命周期为 `已发布`时,且满足告警规则,并关联了告警组,当任务某个指标满足告警规则时,会触发告警,并在此处展示.
任务告警只有当 任务的生命周期为 `已发布`时,且满足告警策略,并关联了告警组,当任务某个指标满足告警策略时,会触发告警,并在此处展示.
:::
\ No newline at end of file
......@@ -9,7 +9,7 @@ title: 告警组
1. 只适用于 `FlinkSQL,FlinkJar` 任务
2. 作业为`已发布`状态
3. 满足告警规则,且该告警规则关联了告警模板
3. 满足告警策略,且该告警策略关联了告警模板
:::
......
......@@ -10,7 +10,7 @@ title: 告警实例
1. 只适用于 `FlinkSQL,FlinkJar` 任务
2. 作业为`已发布`状态
3. 满足告警规则,且该告警规则关联了告警模板
3. 满足告警策略,且该告警策略关联了告警模板
:::
......
......@@ -7,7 +7,7 @@ title: 告警功能概览
:::info 介绍
Dinky的告警功能,可以通过配置告警实例,告警组,告警模版,告警规则,来实现对 Flink 任务的监控告警
Dinky的告警功能,可以通过配置告警实例,告警组,告警模版,告警策略,来实现对 Flink 任务的监控告警
:::
## 告警实例
......@@ -24,7 +24,7 @@ Dinky的告警功能,可以通过配置告警实例,告警组,告警模版,告
## 告警模版
> 用于配置告警的模版,一个告警模版可以被多个告警规则使用
> 用于配置告警的模版,一个告警模版可以被多个告警策略使用
详情请参考 [告警模版](alert_template)
......@@ -33,4 +33,4 @@ Dinky的告警功能,可以通过配置告警实例,告警组,告警模版,告
> 用于配置告警的策略,可配置多种告警策略,已经内置了部分告警策略,也可自行创建自定义告警策略
详情请参考 [告警策略](../../system_setting/alert_strategy)
\ No newline at end of file
详情请参考 [告警策略](./alert_strategy)
\ No newline at end of file
......@@ -6,7 +6,7 @@ title: 告警策略
---
:::info
告警策略是指在满足告警规则的前提下,告警模板的触发条件。
告警策略是指在满足告警策略的前提下,告警模板的触发条件。
默认情况下,系统内置了一些告警策略,需要注意的是,内置的告警策略不可删除,可以修改告警模版,但是规则不可修改
......@@ -47,4 +47,4 @@ title: 告警策略
![alert_rules](http://pic.dinky.org.cn/dinky/docs/zh-CN/user_guide/system_setting/alert_template/alert_rules.png)
注意: 如需添加自定义告警模版, 请点击 **告警模版下拉框**中的**新建告警模版** 按钮,跳转至告警模版页面, 或者直接在 *
*[告警模版](../register_center/alert/alert_template)** 页面创建告警模版
*[告警模版](./alert_template)** 页面创建告警模版
......@@ -9,7 +9,7 @@ title: 告警模版
1. 只适用于 `FlinkSQL,FlinkJar` 任务
2. 作业为`已发布`状态
3. 满足告警规则,且该告警规则关联了告警模板
3. 满足告警策略,且该告警策略关联了告警模板
:::
## 告警模版列表
......
......@@ -53,7 +53,7 @@ title: 1.0.0 release
- 支持实时打印 Flink 表数据
- 控制台实时打印任务提交 log
- 支持 Flink CDC 3.0 整库同步
- 支持自定义告警规则和自定义告警模板
- 支持自定义告警策略和自定义告警模板
- 支持Flink k8s operator 提交
- 支持代理 Flink webui 访问
- 新增 Flink 任务 Metrics监控自定义图表
......
......@@ -17,7 +17,7 @@ title: 1.0.1 release
:::warning 提示
- 1.0.1 是一个 BUG 修复版本,无数据库升级变更,可以直接升级
- 关于 SCALA 版本: 发版使用 Scala-2.12 , 如你的环境必须使用 Scala-2.11, 请自行编译,请参考 [编译部署](../docs/next/deploy_guide/compile_deploy) , 将 profile 的 scala-2.12 改为 scala-2.11
- 关于 SCALA 版本: 发版使用 Scala-2.12 , 如你的环境必须使用 Scala-2.11, 请自行编译,请参考 [编译部署](https://www.dinky.org.cn/docs/next/deploy_guide/compile_deploy) , 将 profile 的 scala-2.12 改为 scala-2.11
:::
......
......@@ -1887,10 +1887,10 @@ insert into dinky_sys_menu values (112, 22, '刷新', '/auth/menu/refresh', null
insert into dinky_sys_menu values (113, 22, '编辑', '/auth/menu/edit', null, 'auth:menu:edit', 'EditOutlined', 'F', 0, 98, '2023-09-22 22:11:41', '2023-09-26 15:12:26', null);
insert into dinky_sys_menu values (114, 22, '添加子项', '/auth/menu/addSub', null, 'auth:menu:addSub', 'PlusOutlined', 'F', 0, 96, '2023-09-22 22:11:41', '2023-09-26 15:12:26', null);
insert into dinky_sys_menu values (115, 22, '删除', '/auth/menu/delete', null, 'auth:menu:delete', 'DeleteOutlined', 'F', 0, 99, '2023-09-22 22:11:41', '2023-09-26 15:12:26', null);
insert into dinky_sys_menu values (116, 6, '告警策略', '/settings/alertrule', './SettingCenter/AlertRule', 'settings:alertrule', 'AndroidOutlined', 'C', 0, 136, '2023-09-22 23:31:10', '2023-09-26 15:19:52', null);
insert into dinky_sys_menu values (117, 116, '添加', '/settings/alertrule/add', null, 'settings:alertrule:add', 'PlusOutlined', 'F', 0, 137, '2023-09-22 23:34:51', '2023-09-26 15:20:03', null);
insert into dinky_sys_menu values (118, 116, '删除', '/settings/alertrule/delete', null, 'settings:alertrule:delete', 'DeleteOutlined', 'F', 0, 139, '2023-09-22 23:35:20', '2023-09-26 15:20:21', null);
insert into dinky_sys_menu values (119, 116, '编辑', '/settings/alertrule/edit', null, 'settings:alertrule:edit', 'EditOutlined', 'F', 0, 138, '2023-09-22 23:36:32', '2023-09-26 15:20:13', null);
insert into dinky_sys_menu values (116, 12, '告警策略', '/registration/alert/rule', './RegCenter/Alert/AlertRule', 'registration:alert:rule', 'AndroidOutlined', 'C', 0, 136, '2023-09-22 23:31:10', '2023-09-26 15:19:52', null);
insert into dinky_sys_menu values (117, 116, '添加', '/registration/alert/rule/add', null, 'registration:alert:rule:add', 'PlusOutlined', 'F', 0, 137, '2023-09-22 23:34:51', '2023-09-26 15:20:03', null);
insert into dinky_sys_menu values (118, 116, '删除', '/registration/alert/rule/delete', null, 'registration:alert:rule:delete', 'DeleteOutlined', 'F', 0, 139, '2023-09-22 23:35:20', '2023-09-26 15:20:21', null);
insert into dinky_sys_menu values (119, 116, '编辑', '/registration/alert/rule/edit', null, 'registration:alert:rule:edit', 'EditOutlined', 'F', 0, 138, '2023-09-22 23:36:32', '2023-09-26 15:20:13', null);
insert into dinky_sys_menu values (120, 8, 'Dinky 服务监控', '/metrics/server', './Metrics/Server', 'metrics:server', 'DashboardOutlined', 'F', 0, 141, '2023-09-22 23:37:43', '2023-09-26 15:21:00', null);
insert into dinky_sys_menu values (121, 8, 'Flink 任务监控', '/metrics/job', './Metrics/Job', 'metrics:job', 'DashboardTwoTone', 'C', 0, 142, '2023-09-22 23:38:34', '2023-09-26 15:21:08', null);
insert into dinky_sys_menu values (122, 24, 'Dinky 环境配置', '/settings/globalsetting/dinky', null, 'settings:globalsetting:dinky', 'SettingOutlined', 'F', 0, 117, '2023-09-22 23:40:30', '2023-09-26 15:16:20', null);
......
......@@ -3821,18 +3821,10 @@ values (114, 22, '添加子项', '/auth/menu/addSub', null, 'auth:menu:addSub',
insert into dinky_sys_menu
values (115, 22, '删除', '/auth/menu/delete', null, 'auth:menu:delete', 'DeleteOutlined', 'F', 0, 99,
'2023-09-22 22:11:41', '2023-09-26 15:12:26', null);
insert into dinky_sys_menu
values (116, 6, '告警策略', '/settings/alertrule', './SettingCenter/AlertRule', 'settings:alertrule', 'AndroidOutlined',
'C', 0, 136, '2023-09-22 23:31:10', '2023-09-26 15:19:52', null);
insert into dinky_sys_menu
values (117, 116, '添加', '/settings/alertrule/add', null, 'settings:alertrule:add', 'PlusOutlined', 'F', 0, 137,
'2023-09-22 23:34:51', '2023-09-26 15:20:03', null);
insert into dinky_sys_menu
values (118, 116, '删除', '/settings/alertrule/delete', null, 'settings:alertrule:delete', 'DeleteOutlined', 'F', 0,
139, '2023-09-22 23:35:20', '2023-09-26 15:20:21', null);
insert into dinky_sys_menu
values (119, 116, '编辑', '/settings/alertrule/edit', null, 'settings:alertrule:edit', 'EditOutlined', 'F', 0, 138,
'2023-09-22 23:36:32', '2023-09-26 15:20:13', null);
insert into dinky_sys_menu values (116, 12, '告警策略', '/registration/alert/rule', './RegCenter/Alert/AlertRule', 'registration:alert:rule', 'AndroidOutlined', 'C', 0, 136, '2023-09-22 23:31:10', '2023-09-26 15:19:52', null);
insert into dinky_sys_menu values (117, 116, '添加', '/registration/alert/rule/add', null, 'registration:alert:rule:add', 'PlusOutlined', 'F', 0, 137, '2023-09-22 23:34:51', '2023-09-26 15:20:03', null);
insert into dinky_sys_menu values (118, 116, '删除', '/registration/alert/rule/delete', null, 'registration:alert:rule:delete', 'DeleteOutlined', 'F', 0, 139, '2023-09-22 23:35:20', '2023-09-26 15:20:21', null);
insert into dinky_sys_menu values (119, 116, '编辑', '/registration/alert/rule/edit', null, 'registration:alert:rule:edit', 'EditOutlined', 'F', 0, 138, '2023-09-22 23:36:32', '2023-09-26 15:20:13', null);
insert into dinky_sys_menu
values (120, 8, 'Dinky 服务监控', '/metrics/server', './Metrics/Server', 'metrics:server', 'DashboardOutlined', 'F', 0,
141, '2023-09-22 23:37:43', '2023-09-26 15:21:00', null);
......
/*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
begin;
update dinky_sys_menu
set `path`='/registration/alert/rule',
`component`='./RegCenter/Alert/AlertRule',
`perms`='registration:alert:rule',
`parent_id`=12
where `id` = 116;
update dinky_sys_menu
set `path`='/registration/alert/rule/add',
`perms`='registration:alert:rule:add'
where `id` = 117;
update dinky_sys_menu
set `path`='/registration/alert/rule/delete',
`perms`='registration:alert:rule:delete'
where `id` = 118;
update dinky_sys_menu
set `path`='/registration/alert/rule/edit',
`perms`='registration:alert:rule:edit'
where `id` = 119;
commit ;
\ No newline at end of file
/*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
update dinky_sys_menu
set "path"='/registration/alert/rule',
"component"='./RegCenter/Alert/AlertRule',
"perms"='registration:alert:rule',
"parent_id"=12
where "id" = 116;
update dinky_sys_menu
set "path"='/registration/alert/rule/add',
"perms"='registration:alert:rule:add'
where "id" = 117;
update dinky_sys_menu
set "path"='/registration/alert/rule/delete',
"perms"='registration:alert:rule:delete'
where "id" = 118;
update dinky_sys_menu
set "path"='/registration/alert/rule/edit',
"perms"='registration:alert:rule:edit'
where "id" = 119;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment