Changes

Jump to: navigation, search

CloudServices/Sync/ReDash

1,760 bytes added, 20:21, 1 February 2017
Document current data format more extensively.
=== Table Described ===
The Sync team's telemetry goes through our data pipeline and lands in Presto to be explored in [https://sql.telemetry.mozilla.org/ Re:Dash]. Below is a description of the data available in the '''sync_summary''' table. Further documentation on this data is available [https://github.com/mozilla/telemetry-batch-view/blob/master/docs/SyncSummary.md in the telemetry-batch-view repo], and in the [http://gecko.readthedocs.io/en/latest/toolkit/components/telemetry/telemetry/data/sync-ping.html general sync ping documentation].
{| class="wikitable"
|-
| app_name || varchar || Will always be the string "Firefox" in desktop submitted pings.
|-
| app_channel || varchar || The update channel (e.g. "release", "nightly", etc) - corresponds to the MOZ_UPDATE_CHANNEL config variable.
|-
| uid || varchar || Hashed Sync/FxA ID
|-
| why || varchar || Currently always null, but eventually should be the reason the sync was performed (eg, timer, button press, score update, etc)
|-
| devices || array(row(id varchar, os varchar, version varchar)) || Array of the other devices in this user's device constellation.
|-
| engines || array(engine_record) || A record of the engines that synced. Each element of the array is in the format of an [[#Engine Record|engine record]].
|-
| outgoing || array(row(sent bigint, failed bigint))) || For each batch of records uploaded as part of a Sync, how many records were sent in that batch and how many failed.
|- |validation || rowvalidation_record || Validation information for this engine. Null if validation cannot or did not run during this sync (common). If present, it's format is of a [[#Validation Record|validation record]]|} ===== Validation Record ===== A validation record is defined as: {| class="wikitable"|-! Field Name!! Data Type !! Description|-| version || bigint, || Version of the validator used to get this data.|-| checked || bigint, || Number of records the validator checked in this engine.|-| took || bigint, failureReason || How long validation took for this engine.|-| problems || array(row(namevarchar, valuecount varchar)), || The problems identified. Problems with a count of 0 are excluded. Null on failure or if no problems array(occurred.|-| failureReason || row(namevarchar,count)value varchar) || [ADD ME]Details of any errors recorded during the validation, or null if validation succeeded.
|}
A2: I don't think that's true - eg, "select * from sync_summary where engines is not null and status is null limit 10" shows records.
 
---
 
Q3: What values are valid in the validation record's '''name''' field?
 
A3: It's up to the engine and to the client. For desktop bookmarks, they're documented [https://dxr.mozilla.org/mozilla-central/source/services/sync/modules/bookmark_validator.js here] (or [https://dxr.mozilla.org/mozilla-central/rev/1d025ac534a6333a8170a59a95a8a3673d4028ee/services/sync/modules/bookmark_validator.js#27-68 here] if that link breaks).
=== Query Examples ===
8
edits

Navigation menu