forked from github/dataease
perf(X-Pack): 阈值告警记录定时清理
This commit is contained in:
parent
05d35475f5
commit
ee3125a6e4
@ -2442,6 +2442,7 @@ export default {
|
|||||||
dsExecuteTime: '数据源检测频率',
|
dsExecuteTime: '数据源检测频率',
|
||||||
frontTimeOut: '请求超时时间(秒)',
|
frontTimeOut: '请求超时时间(秒)',
|
||||||
logLiveTime: '操作日志保留时间(天)',
|
logLiveTime: '操作日志保留时间(天)',
|
||||||
|
thresholdLogLiveTime: '阈值告警记录保留时间(天)',
|
||||||
exportFileLiveTime: '后台导出文件保留时间(天)',
|
exportFileLiveTime: '后台导出文件保留时间(天)',
|
||||||
platformOid: '第三方平台用户组织',
|
platformOid: '第三方平台用户组织',
|
||||||
platformRid: '第三方平台用户角色',
|
platformRid: '第三方平台用户角色',
|
||||||
|
@ -124,7 +124,7 @@ const edit = (list, orgOptions, roleOptions, loginOptions) => {
|
|||||||
state.loginOptions = loginOptions || []
|
state.loginOptions = loginOptions || []
|
||||||
state.settingList = list.map(item => {
|
state.settingList = list.map(item => {
|
||||||
const pkey = item.pkey
|
const pkey = item.pkey
|
||||||
if (pkey === 'basic.logLiveTime') {
|
if (pkey === 'basic.logLiveTime' || pkey === 'basic.thresholdLogLiveTime') {
|
||||||
rule[pkey.split('.')[1]] = [
|
rule[pkey.split('.')[1]] = [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
@ -272,7 +272,7 @@ defineExpose({
|
|||||||
type="number"
|
type="number"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="item.pkey === 'logLiveTime'">
|
<div v-else-if="item.pkey === 'logLiveTime' || item.pkey === 'thresholdLogLiveTime'">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
v-model="state.form[item.pkey]"
|
v-model="state.form[item.pkey]"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
|
2
de-xpack
2
de-xpack
@ -1 +1 @@
|
|||||||
Subproject commit 6687d589719219603b02ae262e6671971a85cad5
|
Subproject commit 47251c7975cbee373fd183a3426b3b24526d1d65
|
@ -10,4 +10,5 @@ public class XpackSettingConstants {
|
|||||||
public static final String DIP = "basic.dip";
|
public static final String DIP = "basic.dip";
|
||||||
public static final String PVP = "basic.pvp";
|
public static final String PVP = "basic.pvp";
|
||||||
public static final String DEFAULT_LOGIN = "basic.defaultLogin";
|
public static final String DEFAULT_LOGIN = "basic.defaultLogin";
|
||||||
|
public static final String THRSHOLD_LOG_LIVE_TIME = "basic.thresholdLogLiveTime";
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,8 @@ public class SystemSettingUtils {
|
|||||||
XpackSettingConstants.DIP,
|
XpackSettingConstants.DIP,
|
||||||
XpackSettingConstants.PVP,
|
XpackSettingConstants.PVP,
|
||||||
XpackSettingConstants.PLATFORM_RID,
|
XpackSettingConstants.PLATFORM_RID,
|
||||||
XpackSettingConstants.DEFAULT_LOGIN);
|
XpackSettingConstants.DEFAULT_LOGIN,
|
||||||
|
XpackSettingConstants.THRSHOLD_LOG_LIVE_TIME);
|
||||||
return xpackSettingList.contains(pkey);
|
return xpackSettingList.contains(pkey);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user