perf(X-Pack): 阈值告警记录定时清理

This commit is contained in:
fit2cloud-chenyw 2024-08-30 12:28:36 +08:00
parent 05d35475f5
commit ee3125a6e4
5 changed files with 7 additions and 4 deletions

View File

@ -2442,6 +2442,7 @@ export default {
dsExecuteTime: '数据源检测频率',
frontTimeOut: '请求超时时间',
logLiveTime: '操作日志保留时间',
thresholdLogLiveTime: '阈值告警记录保留时间',
exportFileLiveTime: '后台导出文件保留时间',
platformOid: '第三方平台用户组织',
platformRid: '第三方平台用户角色',

View File

@ -124,7 +124,7 @@ const edit = (list, orgOptions, roleOptions, loginOptions) => {
state.loginOptions = loginOptions || []
state.settingList = list.map(item => {
const pkey = item.pkey
if (pkey === 'basic.logLiveTime') {
if (pkey === 'basic.logLiveTime' || pkey === 'basic.thresholdLogLiveTime') {
rule[pkey.split('.')[1]] = [
{
required: true,
@ -272,7 +272,7 @@ defineExpose({
type="number"
/>
</div>
<div v-else-if="item.pkey === 'logLiveTime'">
<div v-else-if="item.pkey === 'logLiveTime' || item.pkey === 'thresholdLogLiveTime'">
<el-input-number
v-model="state.form[item.pkey]"
autocomplete="off"

@ -1 +1 @@
Subproject commit 6687d589719219603b02ae262e6671971a85cad5
Subproject commit 47251c7975cbee373fd183a3426b3b24526d1d65

View File

@ -10,4 +10,5 @@ public class XpackSettingConstants {
public static final String DIP = "basic.dip";
public static final String PVP = "basic.pvp";
public static final String DEFAULT_LOGIN = "basic.defaultLogin";
public static final String THRSHOLD_LOG_LIVE_TIME = "basic.thresholdLogLiveTime";
}

View File

@ -14,7 +14,8 @@ public class SystemSettingUtils {
XpackSettingConstants.DIP,
XpackSettingConstants.PVP,
XpackSettingConstants.PLATFORM_RID,
XpackSettingConstants.DEFAULT_LOGIN);
XpackSettingConstants.DEFAULT_LOGIN,
XpackSettingConstants.THRSHOLD_LOG_LIVE_TIME);
return xpackSettingList.contains(pkey);
}
}