From 4fb232f8cb4ee8040e1438d0027c6ac7722f6742 Mon Sep 17 00:00:00 2001 From: wklken Date: Mon, 25 Dec 2023 17:35:23 +0800 Subject: [PATCH] fix(apis/web/access_log): change log fields order --- .../apigateway/biz/access_log/constants.py | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/dashboard/apigateway/apigateway/biz/access_log/constants.py b/src/dashboard/apigateway/apigateway/biz/access_log/constants.py index e9df3ddbb..55cc812b6 100644 --- a/src/dashboard/apigateway/apigateway/biz/access_log/constants.py +++ b/src/dashboard/apigateway/apigateway/biz/access_log/constants.py @@ -31,28 +31,28 @@ "is_filter": False, }, { - "label": _("环境"), - "field": "stage", + "label": _("蓝鲸应用"), + "field": "app_code", "is_filter": True, }, { - "label": _("资源ID"), - "field": "resource_id", + "label": _("客户端IP"), + "field": "client_ip", "is_filter": True, }, { - "label": _("资源名称"), - "field": "resource_name", + "label": _("环境"), + "field": "stage", "is_filter": True, }, { - "label": _("蓝鲸应用"), - "field": "app_code", + "label": _("资源ID"), + "field": "resource_id", "is_filter": True, }, { - "label": _("客户端IP"), - "field": "client_ip", + "label": _("资源名称"), + "field": "resource_name", "is_filter": True, }, { @@ -70,6 +70,16 @@ "field": "http_path", "is_filter": True, }, + { + "label": "QueryString", + "field": "params", + "is_filter": True, + }, + { + "label": "Body", + "field": "body", + "is_filter": True, + }, { "label": _("后端请求方法"), "field": "backend_method", @@ -90,16 +100,6 @@ "field": "backend_path", "is_filter": True, }, - { - "label": "QueryString", - "field": "params", - "is_filter": True, - }, - { - "label": "Body", - "field": "body", - "is_filter": True, - }, { "label": _("响应正文"), "field": "response_body", @@ -110,11 +110,11 @@ "field": "status", "is_filter": True, }, - { - "label": _("请求头"), - "field": "headers", - "is_filter": False, - }, + # { + # "label": _("请求头"), + # "field": "headers", + # "is_filter": False, + # }, { "label": _("请求总耗时"), "field": "request_duration",