Bug 1274727 - Document more details about searches core ping field. r=bnicholson draft
authorMichael Comella <michael.l.comella@gmail.com>
Mon, 23 May 2016 15:25:32 -0700
changeset 369850 2959b850ee66e19e2dd5ed7cf930f2c2568397a0
parent 369849 5750fe71960616ad8014b473c6a5d99c2d3b2dc3
child 521637 29da6a50b307d2ec09deca5165eeb4de4ff9bea5
push id18935
push usermichael.l.comella@gmail.com
push dateMon, 23 May 2016 22:26:38 +0000
reviewersbnicholson
bugs1274727
milestone49.0a1
Bug 1274727 - Document more details about searches core ping field. r=bnicholson MozReview-Commit-ID: DO8gRT8YcQm
toolkit/components/telemetry/docs/core-ping.rst
--- a/toolkit/components/telemetry/docs/core-ping.rst
+++ b/toolkit/components/telemetry/docs/core-ping.rst
@@ -42,17 +42,17 @@ Structure::
                                  // e.g. "yahoo".
       "distributionId": <string>, // Distribution identifier (optional)
       "created": <string>, // date the ping was created
                            // in local time, "yyyy-mm-dd"
       "tz": <integer>, // timezone offset (in minutes) of the
                        // device when the ping was created
       "searches": <object>, // Optional, object of search use counts in the
                             // format: { "engine.source": <pos integer> }
-                            // e.g.: { "yahoo.searchbar": 3, "other.searchbar": 1 }
+                            // e.g.: { "yahoo.SUGGESTION": 3, "other.LIST_ITEM": 1 }
       "experiments": [<string>, …], // Optional, array of identifiers
                                     // for the active experiments
     }
 
 Field details
 -------------
 
 device
@@ -108,16 +108,30 @@ all of the following events occur:
 
 #. The times.json file does not exist
 #. The package install date could not be persisted to disk
 
 The reason we don't just return the package install time even if the date could
 not be persisted to disk is to ensure the value doesn't change once we start
 sending it: we only want to send consistent values.
 
+searches
+~~~~~~~~
+In the case a search engine is added by a user, the engine identifier "other" is used, e.g. "other.<source>".
+
+Sources in Android are based on the existing UI telemetry values and are as
+follows:
+
+* actionbar: the user types in the url bar and hits enter to use the default
+  search engine
+* listitem: the user selects a search engine from the list of secondary search
+  engines at the bottom of the screen
+* suggestion: the user clicks on a search suggestion or, in the case that
+  suggestions are disabled, the row corresponding with the main engine
+
 Other parameters
 ----------------
 
 HTTP "Date" header
 ~~~~~~~~~~~~~~~~~~
 This header is used to track the submission date of the core ping in the format
 specified by
 `rfc 2616 sec 14.18 <https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.18>`_,