diff --git a/pkg/model/db_schema.go b/pkg/model/db_schema.go index da15c815..0776aba5 100644 --- a/pkg/model/db_schema.go +++ b/pkg/model/db_schema.go @@ -59,18 +59,18 @@ type ViewDoc struct { //PollingDetail is db struct, it record operation history type PollingDetail struct { - ID string `json:"id,omitempty" yaml:"id,omitempty"` - SessionID string `json:"session_id,omitempty" bson:"session_id," yaml:"session_id,omitempty"` - SessionGroup string `json:"session_group,omitempty" bson:"session_group," yaml:"session_group,omitempty"` - Domain string `json:"domain,omitempty" yaml:"domain,omitempty"` - PollingData map[string]interface{} `json:"polling_data,omitempty" yaml:"polling_data,omitempty"` - Revision string `json:"revision,omitempty" yaml:"revision,omitempty"` - IP string `json:"ip,omitempty" yaml:"ip,omitempty"` - UserAgent string `json:"user_agent,omitempty" bson:"user_agent," yaml:"user_agent,omitempty"` - URLPath string `json:"url_path,omitempty" bson:"url_path," yaml:"url_path,omitempty"` - ResponseBody []*KVDoc `json:"kv,omitempty" bson:"kv," yaml:"kv,omitempty"` - ResponseCode int `json:"response_code,omitempty" bson:"response_code," yaml:"response_code,omitempty"` - Timestamp time.Time `json:"times_tamp,omitempty" yaml:"times_tamp,omitempty"` + ID string `json:"id,omitempty" yaml:"id,omitempty"` + SessionID string `json:"session_id,omitempty" bson:"session_id," yaml:"session_id,omitempty"` + SessionGroup string `json:"session_group,omitempty" bson:"session_group," yaml:"session_group,omitempty"` + Domain string `json:"domain,omitempty" yaml:"domain,omitempty"` + PollingData map[string]interface{} `json:"polling_data,omitempty" yaml:"polling_data,omitempty"` + Revision string `json:"revision,omitempty" yaml:"revision,omitempty"` + IP string `json:"ip,omitempty" yaml:"ip,omitempty"` + UserAgent string `json:"user_agent,omitempty" bson:"user_agent," yaml:"user_agent,omitempty"` + URLPath string `json:"url_path,omitempty" bson:"url_path," yaml:"url_path,omitempty"` + ResponseBody []*KVDoc `json:"kv,omitempty" bson:"kv," yaml:"kv,omitempty"` + ResponseCode int `json:"response_code,omitempty" bson:"response_code," yaml:"response_code,omitempty"` + Timestamp time.Time `json:"times_tamp,omitempty" yaml:"times_tamp,omitempty"` } // UpdateKVRequest is db struct, it contains kv update request params