fix #3: final ping formats and schema
This commit is contained in:
parent
9b6779c999
commit
4063f44552
1 changed files with 21 additions and 16 deletions
|
@ -73,8 +73,8 @@ of a `testpilottest` telemetry ping for each scenario.
|
||||||
```js
|
```js
|
||||||
{
|
{
|
||||||
"userContextId": <userContextId>,
|
"userContextId": <userContextId>,
|
||||||
"clicked-container-tab-count": <number-of-tabs-in-the-container>,
|
"clickedContainerTabCount": <number-of-tabs-in-the-container>,
|
||||||
"event": "container-tab-opened",
|
"event": "open-tab",
|
||||||
"eventSource": ["tab-bar"|"pop-up"]
|
"eventSource": ["tab-bar"|"pop-up"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -83,7 +83,7 @@ of a `testpilottest` telemetry ping for each scenario.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
{
|
{
|
||||||
"event": "container-edit-containers"
|
"event": "edit-containers"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ of a `testpilottest` telemetry ping for each scenario.
|
||||||
```js
|
```js
|
||||||
{
|
{
|
||||||
"userContextId": <userContextId>,
|
"userContextId": <userContextId>,
|
||||||
"event": "container-edit-container"
|
"event": "edit-container"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ of a `testpilottest` telemetry ping for each scenario.
|
||||||
```js
|
```js
|
||||||
{
|
{
|
||||||
"userContextId": <userContextId>,
|
"userContextId": <userContextId>,
|
||||||
"event": "container-delete-container"
|
"event": "delete-container"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ of a `testpilottest` telemetry ping for each scenario.
|
||||||
```js
|
```js
|
||||||
{
|
{
|
||||||
"userContextId": <userContextId>,
|
"userContextId": <userContextId>,
|
||||||
"event": "container-add-container"
|
"event": "add-container"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -118,8 +118,8 @@ of a `testpilottest` telemetry ping for each scenario.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
{
|
{
|
||||||
"event": "container-sort-tabs",
|
"event": "sort-tabs",
|
||||||
"total-container-tabs-count": <number-of-all-container-tabs>
|
"totalContainerTabsCount": <number-of-all-container-tabs>
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -127,9 +127,10 @@ of a `testpilottest` telemetry ping for each scenario.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
{
|
{
|
||||||
"clicked-container-tab-count": <number-of-tabs-in-the-container>,
|
"userContextId": <userContextId>,
|
||||||
"event": "container-hide-tabs",
|
"clickedContainerTabCount": <number-of-tabs-in-the-container>,
|
||||||
"hidden-containers-count": <number-of-containers-with-tabs-hidden>
|
"event": "hide-tabs",
|
||||||
|
"hiddenContainersCount": <number-of-containers-with-tabs-hidden>
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -137,8 +138,9 @@ of a `testpilottest` telemetry ping for each scenario.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
{
|
{
|
||||||
"clicked-container-tab-count": <number-of-tabs-in-the-container>,
|
"userContextId": <userContextId>,
|
||||||
"event": "container-show-tabs"
|
"clickedContainerTabCount": <number-of-tabs-in-the-container>,
|
||||||
|
"event": "show-tabs"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -146,8 +148,9 @@ of a `testpilottest` telemetry ping for each scenario.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
{
|
{
|
||||||
"clicked-container-tab-count": <number-of-tabs-in-the-container>,
|
"userContextId": <userContextId>,
|
||||||
"event": "container-move-tabs-to-window"
|
"clickedContainerTabCount": <number-of-tabs-in-the-container>,
|
||||||
|
"event": "move-tabs-to-window"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -156,8 +159,8 @@ of a `testpilottest` telemetry ping for each scenario.
|
||||||
```lua
|
```lua
|
||||||
local schema = {
|
local schema = {
|
||||||
-- column name field type length attributes field name
|
-- column name field type length attributes field name
|
||||||
{"clickedContainerTabCount", "INTEGER", 255, nil, "Fields[payload.clickedContainerTabCount]"},
|
|
||||||
{"userContextId", "INTEGER", 255, nil, "Fields[payload.container]"},
|
{"userContextId", "INTEGER", 255, nil, "Fields[payload.container]"},
|
||||||
|
{"clickedContainerTabCount", "INTEGER", 255, nil, "Fields[payload.clickedContainerTabCount]"},
|
||||||
{"eventSource", "VARCHAR", 255, nil, "Fields[payload.eventSource]"},
|
{"eventSource", "VARCHAR", 255, nil, "Fields[payload.eventSource]"},
|
||||||
{"event", "VARCHAR", 255, nil, "Fields[payload.event]"},
|
{"event", "VARCHAR", 255, nil, "Fields[payload.event]"},
|
||||||
{"hiddenContainersCount", "INTEGER", 255, nil, "Fields[payload.hiddenContainersCount]"},
|
{"hiddenContainersCount", "INTEGER", 255, nil, "Fields[payload.hiddenContainersCount]"},
|
||||||
|
@ -167,5 +170,7 @@ local schema = {
|
||||||
|
|
||||||
### Valid data should be enforced on the server side:
|
### 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
|
All Mozilla data is kept by default for 180 days and in accordance with our
|
||||||
privacy policies.
|
privacy policies.
|
||||||
|
|
Loading…
Add table
Reference in a new issue