From 2033edbefdb1476e597e031a0b291b5ccf8973d8 Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Wed, 18 May 2022 15:59:02 +0800 Subject: [PATCH] fix processes fliter --- src/types/ebpf.d.ts | 2 +- .../related/ebpf/components/EBPFSchedules.vue | 36 ++++++++++++++----- 2 files changed, 29 insertions(+), 9 deletions(-) diff --git a/src/types/ebpf.d.ts b/src/types/ebpf.d.ts index b40597ef..4598528e 100644 --- a/src/types/ebpf.d.ts +++ b/src/types/ebpf.d.ts @@ -52,7 +52,7 @@ export type Process = { instanceName: string; agentId: string; detectType: string; - attributes: { name: string; value: string }; + attributes: { name: string; value: string }[]; labels: string[]; }; export type StackElement = { diff --git a/src/views/dashboard/related/ebpf/components/EBPFSchedules.vue b/src/views/dashboard/related/ebpf/components/EBPFSchedules.vue index bb8a88e7..2e144ad4 100644 --- a/src/views/dashboard/related/ebpf/components/EBPFSchedules.vue +++ b/src/views/dashboard/related/ebpf/components/EBPFSchedules.vue @@ -34,7 +34,7 @@ limitations under the License. --> placeholder="Please input name" class="input-with-search" size="small" - @change="searchProcesses" + @change="searchProcesses(0)" >