perf: 抓包功能优化

This commit is contained in:
TsMask
2024-08-20 15:49:03 +08:00
parent 03352f3aa8
commit 999ccf64ad
4 changed files with 285 additions and 142 deletions

View File

@@ -18,10 +18,21 @@ export function dumpStop(data: Record<string, string>) {
});
}
// 网元抓包PACP 下载
export function dumpDownload(data: Record<string, string>) {
return request({
url: '/trace/tcpdump/download',
method: 'get',
params: data,
responseType: 'blob',
timeout: 60_000,
});
}
// UPF标准版内部抓包
export function traceUPF(data: Record<string, string>) {
return request({
url: '/trace/tcpdump/traceUPF',
url: '/trace/tcpdump/upf',
method: 'post',
data: data,
});