Nuria has submitted this change and it was merged.

Change subject: Add CirrusSearchRequestSet avro schema to local schema repo
......................................................................


Add CirrusSearchRequestSet avro schema to local schema repo

Add 2 payloads map<string,string> fields to CirrusSearchRequestSet avro schema

This is a temporary change as soon we are migrating this directory to be a
submodule that holds all event-schemas.

Bug: T118570
Change-Id: Ibdb02abbc22d5e18692a701bd803463abd77b8ad
---
A 
refinery-camus/src/main/resources/avro_schema_repo/CirrusSearchRequestSet/111448028943.avsc
1 file changed, 159 insertions(+), 0 deletions(-)

Approvals:
  Nuria: Looks good to me, approved
  jenkins-bot: Verified



diff --git 
a/refinery-camus/src/main/resources/avro_schema_repo/CirrusSearchRequestSet/111448028943.avsc
 
b/refinery-camus/src/main/resources/avro_schema_repo/CirrusSearchRequestSet/111448028943.avsc
new file mode 100644
index 0000000..16c4525
--- /dev/null
+++ 
b/refinery-camus/src/main/resources/avro_schema_repo/CirrusSearchRequestSet/111448028943.avsc
@@ -0,0 +1,159 @@
+{
+  "type": "record",
+  "name": "CirrusSearchRequestSet",
+  "namespace": "org.wikimedia.analytics.schemas",
+  "doc": "A set of requests made by CirrusSearch to the elasticsearch user for 
a single php execution context",
+  "fields": [
+    {
+      "name": "ts",
+      "doc": "The timestamp, in unix time, that the request was made",
+      "type": "int",
+      "default": 0
+    },
+    {
+      "name": "wikiId",
+      "doc": "The wiki making this request, such as dewiki or enwiktionary",
+      "type": "string",
+      "default": ""
+    },
+    {
+      "name": "source",
+      "doc": "Where the request is coming from. Typically: web, api or cli",
+      "type": "string",
+      "default": ""
+    },
+    {
+      "name": "identity",
+      "doc": "A hash identifying the requestor. Includes the IP address and 
User Agent when available.",
+      "type": "string",
+      "default": ""
+    },
+    {
+      "name": "ip",
+      "doc": "The IP address (either ipv4 or ipv6) in string notation",
+      "type": "string",
+      "default": ""
+    },
+    {
+      "name": "userAgent",
+      "doc": "The HTTP User-Agent header, or null if not-applicable",
+      "type": "string",
+      "default": ""
+    },
+    {
+      "name": "backendUserTests",
+      "doc": "List of backend tests the requests are participating in",
+      "type": {
+        "type": "array",
+        "items": "string"
+      },
+      "default": []
+    },
+    {
+        "name": "payload",
+        "type": {"type": "map", "values": "string"},
+        "doc": "General purpose data for this request set",
+        "default": {}
+    },
+     {
+        "name": "requests",
+        "doc": "A list of requests made between mediawiki and elasticsearch in 
a single execution context",
+        "default": [],
+        "type": {
+          "type": "array",
+          "items": {
+            "name": "CirrusSearchRequest",
+            "namespace": "org.wikimedia.analytics.schemas",
+            "doc": "An individual request made between mediawiki and 
elasticsearch",
+            "type": "record",
+            "fields": [
+              {
+                "name": "query",
+                "doc": "The actual search request",
+                "type": "string",
+                "default": ""
+              },
+              {
+                "name": "queryType",
+                "doc": "The general type of query performed, such as 
full_text, prefix, etc.",
+                "type": "string",
+                "default": ""
+              },
+              {
+                "name": "indices",
+                "doc": "The list of indices the request was performed against",
+                "type": {
+                  "type": "array",
+                  "items": "string"
+                },
+                "default": []
+              },
+              {
+                "name": "tookMs",
+                "doc": "The number of milliseconds between passing the query 
to the client library and getting the response back in the application",
+                "type": "int",
+                "default": -1
+              },
+              {
+                "name": "elasticTookMs",
+                "doc": "The number of milliseconds the query took, according 
to the elasticsearch response",
+                "type": "int",
+                "default": -1
+              },
+              {
+                "name": "limit",
+                "doc": "The maximum number of results requested by the 
application",
+                "type": "int",
+                "default": -1
+              },
+              {
+                "name": "hitsTotal",
+                "doc": "The approximate total number of documents matching the 
query",
+                "type": "int",
+                "default": -1
+              },
+              {
+                "name": "hitsReturned",
+                "doc": "The number of results returned to the application",
+                "type": "int",
+                "default": -1
+              },
+              {
+                "name": "hitsOffset",
+                "doc": "The offset of the query",
+                "type": "int",
+                "default": -1
+              },
+              {
+                "name": "namespaces",
+                "doc": "Each element is a mediawiki namespace id that was 
searched.",
+                "type": {
+                  "type": "array",
+                  "items": "int"
+                },
+                "default": []
+              },
+              {
+                "name": "suggestion",
+                "doc": "The suggestion generated by elasticsearch",
+                "type": "string",
+                "default": ""
+              },
+              {
+                "name": "suggestionRequested",
+                "doc": "If a suggestion was requested from elasticsearch",
+                "type": "boolean",
+                "default": false
+              },
+              {
+                "name": "payload",
+                "doc": "General purpose data for this request",
+                "type": {"type": "map", "values": "string"},
+                "default": {}
+              }
+            ]
+          }
+        }
+     }
+  ]
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/252958
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibdb02abbc22d5e18692a701bd803463abd77b8ad
Gerrit-PatchSet: 7
Gerrit-Project: analytics/refinery/source
Gerrit-Branch: master
Gerrit-Owner: DCausse <[email protected]>
Gerrit-Reviewer: DCausse <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: Madhuvishy <[email protected]>
Gerrit-Reviewer: Nuria <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to