fix: 提取默认默认时间条件为配置

This commit is contained in:
chenjinsong
2023-11-06 17:40:24 +08:00
parent f8e9d36c8a
commit ffb822d65d

View File

@@ -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
}