Merge pull request #682 from tdsmith/patch-1

Disambiguate device model
This commit is contained in:
Alessio Placitelli 2020-02-13 10:03:38 +01:00 коммит произвёл GitHub
Родитель bb60016439 57398240e9
Коммит 285b862a98
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -47,7 +47,7 @@ Optional fields are marked accordingly.
| `architecture` | String | The architecture of the device (e.g. "arm", "x86") |
| `client_id` | UUID | *Optional* A UUID identifying a profile and allowing user-oriented correlation of data |
| `device_manufacturer` | String | The manufacturer of the device |
| `device_model` | String | The model name of the device |
| `device_model` | String | The model name of the device. On Android, this is [`Build.MODEL`], the user-visible name of the device. |
| `first_run_date` | Datetime | The date of the first run of the application, in local time and with day precision, including timezone information. |
| `os` | String | The name of the operating system (e.g. "linux", "Android", "ios") |
| `os_version` | String | The user-visible version of the operating system (e.g. "1.2.3") |
@ -57,6 +57,8 @@ Optional fields are marked accordingly.
All the metrics surviving application restarts (e.g. `client_id`, ...) are removed once the application using the Glean SDK is uninstalled.
[`Build.MODEL`]: https://developer.android.com/reference/android/os/Build.html#MODEL
### The `experiments` object
This object (included in the [`ping_info` section](#The-ping_info-section)) contains experiments keyed by the experiment `id`. Each listed experiment contains the `branch` the client is enrolled in and may contain a string to string map with additional data in the `extra` key. Both the `id` and `branch` are truncated to 30 characters.

Просмотреть файл

@ -92,8 +92,10 @@ glean.internal.metrics:
lifetime: application
send_in_pings:
- glean_client_info
description: |
description: >
The model of the device the application is running on.
On Android, this is Build.MODEL, the user-visible marketing name,
like "Pixel 2 XL".
bugs:
- https://bugzilla.mozilla.org/1522552
data_reviews: