mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 18:45:23 +00:00
update interval
This commit is contained in:
parent
c29ce4e187
commit
e4a70fb14b
@ -155,7 +155,9 @@ export const networkProfilingStore = defineStore({
|
||||
return res.data;
|
||||
}
|
||||
this.aliveNetwork = res.data.data.keepEBPFNetworkProfiling.status;
|
||||
ElMessage.warning(res.data.data.keepEBPFNetworkProfiling.errorReason);
|
||||
if (!this.aliveNetwork) {
|
||||
ElMessage.warning(res.data.data.keepEBPFNetworkProfiling.errorReason);
|
||||
}
|
||||
return res.data;
|
||||
},
|
||||
async getProcessTopology(params: {
|
||||
|
@ -174,12 +174,17 @@ async function createTask() {
|
||||
}
|
||||
await getTopology();
|
||||
}
|
||||
function enableInterval() {
|
||||
async function enableInterval() {
|
||||
enableTasks.value = !enableTasks.value;
|
||||
if (enableTasks.value) {
|
||||
intervalFn.value = setInterval(() => {
|
||||
fetchTasks();
|
||||
}, 180000);
|
||||
await networkProfilingStore.keepNetworkProfiling(
|
||||
networkProfilingStore.selectedNetworkTask.taskId
|
||||
);
|
||||
if (networkProfilingStore.aliveNetwork) {
|
||||
intervalFn.value = setInterval(() => {
|
||||
fetchTasks();
|
||||
}, 180000);
|
||||
}
|
||||
return;
|
||||
}
|
||||
intervalFn.value && clearInterval(intervalFn.value);
|
||||
|
@ -98,14 +98,14 @@ function visTimeline() {
|
||||
task.value = properties.data;
|
||||
});
|
||||
const itemsAlwaysDraggable =
|
||||
fixedTriggerDuration > 500
|
||||
fixedTriggerDuration > 1800
|
||||
? {
|
||||
item: true,
|
||||
range: true,
|
||||
}
|
||||
: undefined;
|
||||
const editable =
|
||||
fixedTriggerDuration > 500
|
||||
fixedTriggerDuration > 1800
|
||||
? {
|
||||
updateTime: true,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user