Add minimal Account Ecosystem Telemetry document types (#530)
This commit is contained in:
Родитель
4db7ce0dc0
Коммит
0787240ed2
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"properties": {
|
||||
"ecosystem_client_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"ecosystem_device_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"ecosystem_user_id": {
|
||||
"description": "Account Ecosystem Telemetry user identifier; this value is not present in the original payload sent by clients, but is instead inserted by the pipeline after decrypting and removing ecosystem_anon_id",
|
||||
"pattern": "[a-zA-z0-9]{32}",
|
||||
"type": "string"
|
||||
},
|
||||
"previous_ecosystem_user_ids": {
|
||||
"description": "Previous Account Ecosystem Telemetry identifiers associated with this user; this value is not present in the original payload sent by clients, but is instead inserted by the pipeline after decrypting and removing previous_ecosystem_anon_ids",
|
||||
"items": {
|
||||
"pattern": "[a-zA-z0-9]{32}",
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"ecosystem_client_id",
|
||||
"ecosystem_device_id"
|
||||
],
|
||||
"title": "account-ecosystem",
|
||||
"type": "object"
|
||||
}
|
|
@ -0,0 +1,124 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"properties": {
|
||||
"application": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"architecture": {
|
||||
"type": "string"
|
||||
},
|
||||
"buildId": {
|
||||
"pattern": "^[0-9]{10}",
|
||||
"type": "string"
|
||||
},
|
||||
"channel": {
|
||||
"type": "string"
|
||||
},
|
||||
"displayVersion": {
|
||||
"pattern": "^[0-9]{2,3}\\.",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"platformVersion": {
|
||||
"pattern": "^[0-9]{2,3}\\.",
|
||||
"type": "string"
|
||||
},
|
||||
"vendor": {
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"pattern": "^[0-9]{2,3}\\.",
|
||||
"type": "string"
|
||||
},
|
||||
"xpcomAbi": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"architecture",
|
||||
"buildId",
|
||||
"channel",
|
||||
"name",
|
||||
"platformVersion",
|
||||
"version",
|
||||
"vendor",
|
||||
"xpcomAbi"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"creationDate": {
|
||||
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$",
|
||||
"type": "string"
|
||||
},
|
||||
"payload": {
|
||||
"properties": {
|
||||
"ecosystemClientId": {
|
||||
"type": "string"
|
||||
},
|
||||
"ecosystemDeviceId": {
|
||||
"type": "string"
|
||||
},
|
||||
"ecosystemUserId": {
|
||||
"description": "Account Ecosystem Telemetry user identifier; this value is not present in the original payload sent by clients, but is instead inserted by the pipeline after decrypting and removing ecosystemAnonId",
|
||||
"pattern": "[a-zA-z0-9]{32}",
|
||||
"type": "string"
|
||||
},
|
||||
"previousEcosystemUserIds": {
|
||||
"description": "Previous Account Ecosystem Telemetry identifiers associated with this user; this value is not present in the original payload sent by clients, but is instead inserted by the pipeline after decrypting and removing previousEcosystemAnonIds",
|
||||
"items": {
|
||||
"pattern": "[a-zA-z0-9]{32}",
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"scalars": {
|
||||
"properties": {
|
||||
"parent": {
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"integer",
|
||||
"string",
|
||||
"boolean"
|
||||
]
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"ecosystemClientId",
|
||||
"ecosystemDeviceId"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"account-ecosystem"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"maximum": 4,
|
||||
"minimum": 4,
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"application",
|
||||
"creationDate",
|
||||
"id",
|
||||
"type",
|
||||
"version",
|
||||
"payload"
|
||||
],
|
||||
"title": "account-ecosystem",
|
||||
"type": "object"
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"type": "object",
|
||||
"title": "account-ecosystem",
|
||||
"properties": {
|
||||
"ecosystem_client_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"ecosystem_device_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"ecosystem_user_id": {
|
||||
"description": "Account Ecosystem Telemetry user identifier; this value is not present in the original payload sent by clients, but is instead inserted by the pipeline after decrypting and removing ecosystem_anon_id",
|
||||
@ACCOUNT-ECOSYSTEM_ECOSYSTEM_USER_ID_TYPE_1_JSON@
|
||||
},
|
||||
"previous_ecosystem_user_ids": {
|
||||
"description": "Previous Account Ecosystem Telemetry identifiers associated with this user; this value is not present in the original payload sent by clients, but is instead inserted by the pipeline after decrypting and removing previous_ecosystem_anon_ids",
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ACCOUNT-ECOSYSTEM_ECOSYSTEM_USER_ID_TYPE_1_JSON@
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"ecosystem_client_id",
|
||||
"ecosystem_device_id"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
"type": "string",
|
||||
"pattern": "[a-zA-z0-9]{32}"
|
|
@ -0,0 +1,59 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"type": "object",
|
||||
"title": "account-ecosystem",
|
||||
"properties": {
|
||||
@TELEMETRY_APPLICATION_1_JSON@,
|
||||
@TELEMETRY_CREATIONDATE_1_JSON@,
|
||||
@TELEMETRY_ID_1_JSON@,
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [ "account-ecosystem" ]
|
||||
},
|
||||
"version": {
|
||||
"type": "number",
|
||||
"minimum": 4,
|
||||
"maximum": 4
|
||||
},
|
||||
"payload": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"ecosystemClientId": {
|
||||
"type": "string"
|
||||
},
|
||||
"ecosystemDeviceId": {
|
||||
"type": "string"
|
||||
},
|
||||
"ecosystemUserId": {
|
||||
@ACCOUNT-ECOSYSTEM_ECOSYSTEM_USER_ID_TYPE_1_JSON@,
|
||||
"description": "Account Ecosystem Telemetry user identifier; this value is not present in the original payload sent by clients, but is instead inserted by the pipeline after decrypting and removing ecosystemAnonId"
|
||||
},
|
||||
"previousEcosystemUserIds": {
|
||||
"description": "Previous Account Ecosystem Telemetry identifiers associated with this user; this value is not present in the original payload sent by clients, but is instead inserted by the pipeline after decrypting and removing previousEcosystemAnonIds",
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ACCOUNT-ECOSYSTEM_ECOSYSTEM_USER_ID_TYPE_1_JSON@
|
||||
}
|
||||
},
|
||||
"scalars": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"parent": @TELEMETRY_SCALARS_1_JSON@
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"ecosystemClientId",
|
||||
"ecosystemDeviceId"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"application",
|
||||
"creationDate",
|
||||
"id",
|
||||
"type",
|
||||
"version",
|
||||
"payload"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"ecosystem_client_id": "foo",
|
||||
"ecosystem_device_id": "bar",
|
||||
"ecosystem_user_id": "abcdef01abcdef01abcdef01abcdef01",
|
||||
"previous_ecosystem_user_ids": [
|
||||
"23456789234567892345678923456789"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"type": "account-ecosystem",
|
||||
"id": "2aac7cec-0b1d-ac42-a369-610223b786a4",
|
||||
"creationDate": "2019-03-13T10:41:04.858Z",
|
||||
"version": 4,
|
||||
"application": {
|
||||
"architecture": "x86-64",
|
||||
"buildId": "20190227201333",
|
||||
"name": "Firefox",
|
||||
"version": "67.0a1",
|
||||
"displayVersion": "67.0a1",
|
||||
"vendor": "Mozilla",
|
||||
"platformVersion": "67.0a1",
|
||||
"xpcomAbi": "x86_64-gcc3",
|
||||
"channel": "default"
|
||||
},
|
||||
"payload": {
|
||||
"ecosystemClientId": "unknown",
|
||||
"ecosystemDeviceId": "unknown",
|
||||
"ecosystemUserId": "abcdefghabcdefghabcdefghabcdefgh",
|
||||
"previousEcosystemUserIds": ["1bcdefghabcdefghabcdefghabcdefgh"],
|
||||
"scalars": {
|
||||
"parent": {
|
||||
"browser.engagement.total_uri_count": 3
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче