运维服务中台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.7 KiB

2 years ago
'use strict';
const application = require('../../controllers/alarm/app');
const dataAlarm = require('../../controllers/alarm/data');
2 years ago
module.exports = function (app, router, opts) {
2 years ago
// 应用告警
2 years ago
app.fs.api.logAttr['POST/alarm/application/inspection'] = { content: '保存应用巡检信息', visible: true };
router.post('/alarm/application/inspection', application.inspection);
2 years ago
app.fs.api.logAttr['GET/alarm/application/inspection'] = { content: '查询应用巡检信息', visible: true };
router.get('/alarm/application/inspection', application.inspectionList);
2 years ago
app.fs.api.logAttr['PUT/alarm/application/noted'] = { content: '保存检验状态', visible: true };
2 years ago
router.put('/alarm/application/noted', application.notedInspection);
2 years ago
app.fs.api.logAttr['POST/alarm/application/api'] = { content: '保存应用接口/元素错误信息', visible: true };
2 years ago
router.post('/alarm/application/api', application.apiError);
2 years ago
app.fs.api.logAttr['GET/alarm/application/api'] = { content: '查询应用接口/元素错误信息', visible: true };
router.get('/alarm/application/api', application.apiErrorList);
app.fs.api.logAttr['POST/alarm/application/api_confirm'] = { content: '确认应用接口/元素错误信息', visible: true };
2 years ago
router.post('/alarm/application/api_confirm', application.confirmApiError);
// 数据告警
app.fs.api.logAttr['GET/alarm/data/list'] = { content: '查询数据告警列表', visible: true };
router.get('/alarm/data/list', dataAlarm.list);
app.fs.api.logAttr['GET/alarm/data/detail'] = { content: '查询数据告警详情', visible: true };
router.get('/alarm/data/detail', dataAlarm.detail);
2 years ago
};