You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/02/14 01:10:14 UTC
[GitHub] [servicecomb-kie] GuoYL123 commented on a change in pull request
#94: #79 record polling history
GuoYL123 commented on a change in pull request #94: #79 record polling history
URL: https://github.com/apache/servicecomb-kie/pull/94#discussion_r379205440
##########
File path: pkg/model/kv.go
##########
@@ -52,3 +52,17 @@ type ViewResponse struct {
Total int `json:"total,omitempty"`
Data []*ViewDoc `json:"data,omitempty"`
}
+
+//PollingDetail record operation history
+type PollingDetail struct {
+ ID string `json:"id,omitempty" yaml:"id,omitempty"`
+ SessionID string `json:"session_id,omitempty" yaml:"session_id,omitempty"`
+ Domain string `json:"domain,omitempty" yaml:"domain,omitempty"`
+ PollingData map[string]interface{} `json:"polling_data,omitempty" yaml:"polling_data,omitempty"`
+ IP string `json:"ip,omitempty" yaml:"ip,omitempty"`
+ UserAgent string `json:"user_agent,omitempty" yaml:"user_agent,omitempty"`
+ URLPath string `json:"url_path,omitempty" yaml:"url_path,omitempty"`
+ ResponseBody interface{} `json:"response_body,omitempty" yaml:"response_body,omitempty"`
Review comment:
这里不考虑有新的接口需要记录数据吗?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services