| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- import request from '@/utils/request'
- /**
- * 分页查询
- */
- export function getAlertByPage(data) {
- return request({
- url: '/alert/page',
- method: 'GET',
- params: data
- })
- }
- /**
- * 列表查询
- */
- export function getAlertByList(data) {
- return request({
- url: '/alert',
- method: 'GET',
- params: data
- })
- }
- /**
- * 基于ID查询Alert
- */
- export function getAlertById(alertId) {
- return request({
- url: `/alert/${alertId}`,
- method: 'GET'
- })
- }
- /**
- * 开始
- */
- export function startAlert(data) {
- return request({
- url: `/alert/start`,
- method: 'POST',
- data
- })
- }
- /**
- * 处理
- */
- export function handleAlert(data) {
- return request({
- url: `/alert/handle`,
- method: 'POST',
- data
- })
- }
- /**
- * 删除
- */
- export function deleteAlertById(alertId) {
- return request({
- url: `/alert/${alertId}`,
- method: 'DELETE'
- })
- }
- /**
- * 查询统计结果
- */
- export function getAlertCounter() {
- return request({
- url: '/alert/statis/getCounter',
- method: 'GET'
- })
- }
|