change RecordsTTL

This commit is contained in:
Fine 2025-05-29 11:10:05 +08:00
parent 5534e95d7f
commit 0ca3992840
4 changed files with 13 additions and 7 deletions

View File

@ -52,10 +52,16 @@ export const MenuItems = {
export const RecordsTTL = {
query: `getRecordsTTL {
value
superDataset
coldValue
coldSuperDataset
normal
trace
zipkinTrace
log
browserErrorLog
coldNormal
coldTrace
coldZipkinTrace
coldLog
coldBrowserErrorLog
}`,
};
export const MetricsTTL = {

View File

@ -87,7 +87,7 @@ limitations under the License. -->
alarmStore.alarms.length === pageSize ? pageSize * pageNum.value + 1 : pageSize * pageNum.value,
);
const maxRange = computed(() =>
getMaxRange(appStore.coldStageMode ? appStore.recordsTTL.coldValue : appStore.recordsTTL.value),
getMaxRange(appStore.coldStageMode ? appStore.recordsTTL.coldNormal : appStore.recordsTTL.normal),
);
refreshAlarms({ pageNum: 1 });

View File

@ -176,7 +176,7 @@ limitations under the License. -->
category: { value: "ALL", label: "All" },
});
const maxRange = computed(() =>
getMaxRange(appStore.coldStageMode ? appStore.recordsTTL.coldSuperDataset : appStore.recordsTTL.superDataset),
getMaxRange(appStore.coldStageMode ? appStore.recordsTTL.coldLog : appStore.recordsTTL.log),
);
if (props.needQuery) {
init();

View File

@ -132,7 +132,7 @@ limitations under the License. -->
});
const durationRow = ref<Duration>(InitializationDurationRow);
const maxRange = computed(() =>
getMaxRange(appStore.coldStageMode ? appStore.recordsTTL.coldSuperDataset : appStore.recordsTTL.superDataset),
getMaxRange(appStore.coldStageMode ? appStore.recordsTTL.coldTrace : appStore.recordsTTL.trace),
);
if (filters.queryOrder) {
traceStore.setTraceCondition({