- 在 CDN 日志请求结构中添加 Keyword 字段 - 在发送 CDN 日志请求时加入 keyword 参数 - 同时更新 WAF 日志请求处理,添加 Keyword 参数
@@ -12,6 +12,7 @@ type Request struct {
HourTo string `json:"hourTo" form:"hourTo"`
Reverse bool `json:"reverse" form:"reverse" default:"false"`
RequestId string `json:"requestId" form:"requestId"`
+ Keyword string `json:"keyword" form:"keyword"`
}
@@ -14,4 +14,5 @@ type GetCdnLog struct {
@@ -1197,6 +1197,7 @@ func (s *cdnService) GetAccessLog(ctx context.Context, req cdn.Request) (cdn.Dat
"hourTo": req.HourTo,
"reverse" : req.Reverse,
"requestId": req.RequestId,
+ "keyword" : req.Keyword,
apiUrl := s.Url + "HTTPAccessLogService/listHTTPAccessLogs"
resBody, err := s.sendDataWithTokenRetry(ctx, formData, apiUrl)
@@ -57,6 +57,7 @@ func (s *cdnLogService) GetAccessLog(ctx *gin.Context,req v1.GetCdnLog) (cdnStru
HourTo: req.HourTo,
Reverse: req.Reverse,
RequestId: req.RequestId,
+ Keyword: req.Keyword,
})
if err != nil {