EBernhardson has submitted this change and it was merged. Change subject: Add CirrusSearchRequestSet avro schemas ......................................................................
Add CirrusSearchRequestSet avro schemas Change-Id: Ib5f5eda60abcea324e9775990552a7cddad9a254 --- A avro/mediawiki/CirrusSearchRequestSet/101446746400.avsc A avro/mediawiki/CirrusSearchRequestSet/111448028943.avsc 2 files changed, 306 insertions(+), 0 deletions(-) Approvals: Ottomata: Looks good to me, but someone else must approve DCausse: Verified; Looks good to me, approved diff --git a/avro/mediawiki/CirrusSearchRequestSet/101446746400.avsc b/avro/mediawiki/CirrusSearchRequestSet/101446746400.avsc new file mode 100644 index 0000000..b81c597 --- /dev/null +++ b/avro/mediawiki/CirrusSearchRequestSet/101446746400.avsc @@ -0,0 +1,147 @@ +{ + "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": "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 + } + ] + } + } + } + ] +} diff --git a/avro/mediawiki/CirrusSearchRequestSet/111448028943.avsc b/avro/mediawiki/CirrusSearchRequestSet/111448028943.avsc new file mode 100644 index 0000000..16c4525 --- /dev/null +++ b/avro/mediawiki/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/255134 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ib5f5eda60abcea324e9775990552a7cddad9a254 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/event-schemas Gerrit-Branch: master Gerrit-Owner: EBernhardson <ebernhard...@wikimedia.org> Gerrit-Reviewer: DCausse <dcau...@wikimedia.org> Gerrit-Reviewer: EBernhardson <ebernhard...@wikimedia.org> Gerrit-Reviewer: Nuria <nu...@wikimedia.org> Gerrit-Reviewer: Ottomata <o...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits