diff --git a/src/graphql/fragments/ebpf.ts b/src/graphql/fragments/ebpf.ts index 69cd87fd..2f4ce803 100644 --- a/src/graphql/fragments/ebpf.ts +++ b/src/graphql/fragments/ebpf.ts @@ -37,6 +37,8 @@ export const queryEBPFTasks = { query: ` queryEBPFTasks: queryEBPFProfilingTasks(serviceId: $serviceId) { taskId + serviceName + serviceId processLabels taskStartTime triggerType diff --git a/src/locales/lang/en.ts b/src/locales/lang/en.ts index d4b0be3b..8fe35b87 100644 --- a/src/locales/lang/en.ts +++ b/src/locales/lang/en.ts @@ -131,6 +131,9 @@ const msg = { metricLabel: "Metric Label", showUnit: "Show Unit", noGraph: "No Graph", + taskId: "Task ID", + triggerType: "Trigger Type", + targetType: "Target Type", hourTip: "Select Hour", minuteTip: "Select Minute", secondTip: "Select Second", diff --git a/src/locales/lang/zh.ts b/src/locales/lang/zh.ts index 476dd473..3942c4e0 100644 --- a/src/locales/lang/zh.ts +++ b/src/locales/lang/zh.ts @@ -129,6 +129,9 @@ const msg = { metricLabel: "指标标签", showUnit: "显示单位", noGraph: "无图表", + taskId: "任务ID", + triggerType: "触发类型", + targetType: "目标类型", hourTip: "选择小时", minuteTip: "选择分钟", secondTip: "选择秒数", diff --git a/src/types/ebpf.d.ts b/src/types/ebpf.d.ts index 2c491f93..72a5168b 100644 --- a/src/types/ebpf.d.ts +++ b/src/types/ebpf.d.ts @@ -22,3 +22,15 @@ export interface EBPFTaskCreationRequest { duration: number; targetType: string; } + +export interface EBPFTaskList { + taskId: string; + serviceName: string; + serviceId: string; + processLabels: string[]; + taskStartTime: number; + fixedTriggerDuration: number; + targetType: string; + createTime: number; + triggerType: string; +} diff --git a/src/views/dashboard/related/ebpf/components/TaskList.vue b/src/views/dashboard/related/ebpf/components/TaskList.vue index ce625cf0..61fe77dd 100644 --- a/src/views/dashboard/related/ebpf/components/TaskList.vue +++ b/src/views/dashboard/related/ebpf/components/TaskList.vue @@ -30,12 +30,12 @@ limitations under the License. -->