diff --git a/public/config.js b/public/config.js index e8347076..d25526db 100644 --- a/public/config.js +++ b/public/config.js @@ -3,3 +3,18 @@ const BASE_CONFIG = { version: '23.10', apiVersion: 'v1' } +// 默认时间过滤条件,单位分钟. 0表示请求接口时不传时间参数 +const DEFAULT_TIME_FILTER_RANGE = { + dashboard: 60, + entity: { + list: 60, + trafficLine: 60, + informationAggregation: 0, + relatedEntity: 60 * 24 * 7, + openPort: 60 * 24 * 7, + securityEvent: 60 * 24 * 7, + performanceEvent: 60 * 24 * 7, + behaviorPattern: 60 * 24 * 7 + }, + detection: 60 +}