mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2026-05-28 02:08:36 +00:00
feat: add task list
This commit is contained in:
@@ -49,8 +49,6 @@ export const ControlsTypes = [
|
||||
"ContinuousProfiling",
|
||||
];
|
||||
export enum EBPFProfilingTriggerType {
|
||||
// Appoint the task executing total duration
|
||||
FIXED_TIME,
|
||||
// Trigger by the reach the continuous profiling policy
|
||||
CONTINUOUS_PROFILING,
|
||||
FIXED_TIME = "FIXED_TIME",
|
||||
CONTINUOUS_PROFILING = "CONTINUOUS_PROFILING",
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ import type { AxiosResponse } from "axios";
|
||||
import type { Call } from "@/types/topology";
|
||||
import type { LayoutConfig } from "@/types/dashboard";
|
||||
import type { DurationTime } from "@/types/app";
|
||||
import { EBPFProfilingTriggerType } from "../data";
|
||||
|
||||
interface ContinousProfilingState {
|
||||
strategyList: Array<Recordable<StrategyItem>>;
|
||||
@@ -156,6 +157,11 @@ export const continousProfilingStore = defineStore({
|
||||
};
|
||||
});
|
||||
this.setSelectedStrategy(this.strategyList[0] || {});
|
||||
this.getContinousTaskList({
|
||||
serviceId: params.serviceId,
|
||||
targets: [this.selectedStrategy.type],
|
||||
triggerType: EBPFProfilingTriggerType.CONTINUOUS_PROFILING,
|
||||
});
|
||||
if (!this.strategyList.length) {
|
||||
this.nodes = [];
|
||||
this.calls = [];
|
||||
|
||||
Reference in New Issue
Block a user