blob: d592c692ab4459b977f0c5fecc77aad3860e8260 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
=============
Pioneer Study
=============
The `pioneer-study` ping is the main transport used by the Pioneer components.
-------
Payload
-------
It is made up of a clear text payload and an encrypted data payload, following the structure described below.
Structure:
.. code-block:: js
"payload": {
"encryptedData": "<encrypted token>",
"schemaVersion": 1,
"schemaName": "debug",
"schemaNamespace": "<namespace>",
"encryptionKeyId": "<key id>",
"pioneerId": "<UUID>",
"studyName": "pioneer-v2-example"
}
See also the `JSON schemas <https://github.com/mozilla-services/mozilla-pipeline-schemas/tree/master/schemas/pioneer-debug>`_.
encryptedData
The encrypted data sent using the Pioneer platform.
schemaVersion
The payload format version.
schemaName
The name of the schema of the encrypted data.
schemaNamespace
The namespace used to segregate data on the pipeline.
encryptionKeyId
The id of the key used to encrypt the data. If `discarded` is used, then the `encryptedData` will be ignored and not decoded (only possible for `deletion-request` and `pioneer-enrollment` schemas).
pioneerId
The id of the pioneer client.
studyName (optional)
The id of the study for which the data is being collected.
------------------------
Special Pioneer Payloads
------------------------
This ping has two special Pioneer payload configurations, indicated by the different `schemaName`: `deletion-request` and `pioneer-enrollemnt`.
The `deletion-request` is sent when a user opts out from a Pioneer study: it contains the `pioneerId` and the `studyName`.
The `pioneer-enrollment` is sent when a user opts into the Pioneer program: in this case it reports `schemaNamespace: "pioneer-meta"` and will have no `studyName`. It is also sent when enrolling into a study, in which case it reports the same namespace as the `deletion-request` (i.e. the id the study making the request) and the `pioneer-enrollment` schema name.
|