mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 11:25:22 +00:00
get schedules
This commit is contained in:
parent
6ffd2a4673
commit
a9a4a94e4e
@ -22,7 +22,6 @@ import {
|
||||
EBPFTaskList,
|
||||
AnalyzationTrees,
|
||||
} from "@/types/ebpf";
|
||||
import { Trace, Span } from "@/types/trace";
|
||||
import { store } from "@/store";
|
||||
import graphql from "@/graphql";
|
||||
import { AxiosResponse } from "axios";
|
||||
@ -54,7 +53,7 @@ export const ebpfStore = defineStore({
|
||||
setSelectedTask(task: EBPFTaskList) {
|
||||
this.selectedTask = task;
|
||||
},
|
||||
setCurrentSchedule(s: Trace) {
|
||||
setCurrentSchedule(s: EBPFProfilingSchedule) {
|
||||
this.currentSchedule = s;
|
||||
},
|
||||
setAnalyzeTrees(tree: AnalyzationTrees[]) {
|
||||
@ -123,8 +122,8 @@ export const ebpfStore = defineStore({
|
||||
this.eBPFSchedules = eBPFSchedules;
|
||||
if (!eBPFSchedules.length) {
|
||||
this.eBPFSchedules = [];
|
||||
this.analyzeTrees = [];
|
||||
}
|
||||
this.analyzeTrees = [];
|
||||
return res.data;
|
||||
},
|
||||
async getEBPFAnalyze(params: {
|
||||
|
@ -179,7 +179,7 @@ async function analyzeEBPF() {
|
||||
}
|
||||
}
|
||||
|
||||
function visTimeline() {
|
||||
function getSchedules() {
|
||||
labels.value = [{ label: "All", value: "0" }];
|
||||
selectedLabels.value = ["0"];
|
||||
processes.value = [];
|
||||
@ -199,6 +199,7 @@ function visTimeline() {
|
||||
duration.value = [];
|
||||
}
|
||||
searchProcesses(0);
|
||||
analyzeEBPF();
|
||||
}
|
||||
|
||||
function changePage(pageIndex: number) {
|
||||
@ -240,7 +241,7 @@ function searchAttribute(
|
||||
watch(
|
||||
() => ebpfStore.eBPFSchedules,
|
||||
() => {
|
||||
visTimeline();
|
||||
getSchedules();
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user