41 lines
1.0 KiB
JavaScript
41 lines
1.0 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
/**
|
|
* 获取预警统计概览
|
|
* @returns {Promise} 返回预警统计数据
|
|
*/
|
|
export function getAlertStatisticsOverview() {
|
|
return request.get('/api/admin/alert/statistics/overview')
|
|
}
|
|
|
|
/**
|
|
* 获取预警趋势统计
|
|
* @returns {Promise} 返回预警趋势统计数据
|
|
*/
|
|
export function getAlertStatisticsTrend() {
|
|
return request.get('/api/admin/alert/statistics/trend')
|
|
}
|
|
|
|
/**
|
|
* 获取指标预警统计
|
|
* @returns {Promise} 返回各指标预警统计数据
|
|
*/
|
|
export function getAlertStatisticsByIndicator() {
|
|
return request.get('/api/admin/alert/statistics/by-indicator')
|
|
}
|
|
|
|
/**
|
|
* 获取规则预警统计
|
|
* @returns {Promise} 返回规则预警统计数据
|
|
*/
|
|
export function getAlertStatisticsByRule() {
|
|
return request.get('/api/admin/alert/statistics/by-rule')
|
|
}
|
|
|
|
/**
|
|
* 获取监测点预警统计
|
|
* @returns {Promise} 返回监测点预警统计数据
|
|
*/
|
|
export function getAlertStatisticsByPoint() {
|
|
return request.get('/api/admin/alert/statistics/by-point')
|
|
} |