tianxiaoliang commented on a change in pull request #90: #79 record polling 
history
URL: https://github.com/apache/servicecomb-kie/pull/90#discussion_r378235749
 
 

 ##########
 File path: deployments/db.js
 ##########
 @@ -96,11 +96,53 @@ db.createCollection( "view", {
             }
         } }
 } );
+
+db.createCollection( "polling_detail", {
+    validator: { $jsonSchema: {
+            bsonType: "object",
+            required: [ 
"id","polling_date","ip","user_agent","url_path","response_body","response_header"
 ],
+            properties: {
+                id: {
+                    bsonType: "string",
+                },
+                session_id: {
+                    bsonType: "string",
+                },
+                domain: {
+                    bsonType: "string",
+                },
+                polling_date: {
+                    bsonType: "string"
+                },
+                ip: {
+                    bsonType: "string"
+                },
+                user_agent: {
+                    bsonType: "string"
+                },
+                url_path: {
+                    bsonType: "string"
+                },
+                response_body: {
+                    bsonType: "string"
 
 Review comment:
   不应该是个string应该是个bson object

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to