From 4063f44552d2bed3258fb9e115a63e64a8c05d11 Mon Sep 17 00:00:00 2001 From: groovecoder Date: Thu, 9 Feb 2017 13:51:43 -0600 Subject: [PATCH] fix #3: final ping formats and schema --- docs/metrics.md | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/docs/metrics.md b/docs/metrics.md index b116d95..9d1f4e8 100644 --- a/docs/metrics.md +++ b/docs/metrics.md @@ -73,8 +73,8 @@ of a `testpilottest` telemetry ping for each scenario. ```js { "userContextId": , - "clicked-container-tab-count": , - "event": "container-tab-opened", + "clickedContainerTabCount": , + "event": "open-tab", "eventSource": ["tab-bar"|"pop-up"] } ``` @@ -83,7 +83,7 @@ of a `testpilottest` telemetry ping for each scenario. ```js { - "event": "container-edit-containers" + "event": "edit-containers" } ``` @@ -92,7 +92,7 @@ of a `testpilottest` telemetry ping for each scenario. ```js { "userContextId": , - "event": "container-edit-container" + "event": "edit-container" } ``` @@ -101,7 +101,7 @@ of a `testpilottest` telemetry ping for each scenario. ```js { "userContextId": , - "event": "container-delete-container" + "event": "delete-container" } ``` @@ -110,7 +110,7 @@ of a `testpilottest` telemetry ping for each scenario. ```js { "userContextId": , - "event": "container-add-container" + "event": "add-container" } ``` @@ -118,8 +118,8 @@ of a `testpilottest` telemetry ping for each scenario. ```js { - "event": "container-sort-tabs", - "total-container-tabs-count": + "event": "sort-tabs", + "totalContainerTabsCount": } ``` @@ -127,9 +127,10 @@ of a `testpilottest` telemetry ping for each scenario. ```js { - "clicked-container-tab-count": , - "event": "container-hide-tabs", - "hidden-containers-count": + "userContextId": , + "clickedContainerTabCount": , + "event": "hide-tabs", + "hiddenContainersCount": } ``` @@ -137,8 +138,9 @@ of a `testpilottest` telemetry ping for each scenario. ```js { - "clicked-container-tab-count": , - "event": "container-show-tabs" + "userContextId": , + "clickedContainerTabCount": , + "event": "show-tabs" } ``` @@ -146,8 +148,9 @@ of a `testpilottest` telemetry ping for each scenario. ```js { - "clicked-container-tab-count": , - "event": "container-move-tabs-to-window" + "userContextId": , + "clickedContainerTabCount": , + "event": "move-tabs-to-window" } ``` @@ -156,8 +159,8 @@ of a `testpilottest` telemetry ping for each scenario. ```lua local schema = { -- column name field type length attributes field name - {"clickedContainerTabCount", "INTEGER", 255, nil, "Fields[payload.clickedContainerTabCount]"}, {"userContextId", "INTEGER", 255, nil, "Fields[payload.container]"}, + {"clickedContainerTabCount", "INTEGER", 255, nil, "Fields[payload.clickedContainerTabCount]"}, {"eventSource", "VARCHAR", 255, nil, "Fields[payload.eventSource]"}, {"event", "VARCHAR", 255, nil, "Fields[payload.event]"}, {"hiddenContainersCount", "INTEGER", 255, nil, "Fields[payload.hiddenContainersCount]"}, @@ -167,5 +170,7 @@ local schema = { ### Valid data should be enforced on the server side: +* `eventSource` should be one of `tab-bar` or `pop-up`. + All Mozilla data is kept by default for 180 days and in accordance with our privacy policies.