Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1635152 - Fennec Installation ping #540

Merged
merged 3 commits into from May 7, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
98 changes: 98 additions & 0 deletions schemas/telemetry/installation/installation.1.schema.json
@@ -0,0 +1,98 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"adgroup": {
"description": "Adjust AdGroup",
"type": [
"string",
"null"
]
},
"app_name": {
"type": "string"
},
"arch": {
"description": "device architecture",
"type": "string"
},
"campaign": {
"description": "Adjust campaign",
"type": [
"string",
"null"
]
},
"channel": {
"type": "string"
},
"client_id": {
"description": "telemetry client_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"
},
"created": {
"type": "string"
},
"creative": {
"description": "Adjust creative",
"type": [
"string",
"null"
]
},
"device_id": {
"description": "hashed Google Ad ID",
"type": [
"string",
"null"
]
},
"locale": {
"description": "application locale, such as 'en-US'",
"type": "string"
},
"manufacturer": {
"description": "Build.MANUFACTURER",
"type": "string"
},
"model": {
"description": "Build.MODEL",
"type": "string"
},
"network": {
"description": "Adjust network",
"type": [
"string",
"null"
]
},
"os": {
"type": "string"
},
"osversion": {
"type": "string"
},
"profile_date": {
"type": "integer"
},
"reason": {
"type": "string"
},
"seq": {
"description": "0-indexed sequence number",
"minimum": 0,
"type": "integer"
},
"tz": {
"description": "timezone offset in minutes from UTC",
"type": "integer"
}
},
"required": [
"client_id",
"app_name",
"channel"
],
"title": "installation",
"type": "object"
}
79 changes: 79 additions & 0 deletions templates/telemetry/installation/installation.1.schema.json
@@ -0,0 +1,79 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "installation",
"properties": {
"device_id": {
"type": ["string", "null"],
"description": "hashed Google Ad ID"
},
"client_id": {
"type": "string",
@COMMON_PATTERN_UUID_1_JSON@,
"description": "telemetry client_id"
},
"seq": {
"type": "integer",
"minimum": 0,
"description": "0-indexed sequence number"
},
"reason": {
"type": "string"
},
"locale": {
"type": "string",
"description": "application locale, such as 'en-US'"
},
"os": {
"type": "string"
},
"osversion": {
"type": "string"
},
"manufacturer": {
"type": "string",
"description": "Build.MANUFACTURER"
},
"model": {
"type": "string",
"description": "Build.MODEL"
},
"arch": {
"type": "string",
"description": "device architecture"
},
"profile_date": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a description to this field to clarify its units?

"type": "integer"
},
"created": {
"type": "string"
},
"tz": {
"type": "integer",
"description": "timezone offset in minutes from UTC"
},
"app_name": {
"type": "string"
},
"channel": {
"type": "string"
},
"campaign": {
"type": ["string", "null"],
"description": "Adjust campaign"
},
"adgroup": {
"type": ["string", "null"],
"description": "Adjust AdGroup"
},
"creative": {
"type": ["string", "null"],
"description": "Adjust creative"
},
"network": {
"type": ["string", "null"],
"description": "Adjust network"
}
},
"required": [ "client_id", "app_name", "channel" ]
}
21 changes: 21 additions & 0 deletions validation/telemetry/installation.1.sample.pass.json
@@ -0,0 +1,21 @@
{
"device_id": "abcdefghijklmnop",
"client_id": "6763e028-d9b2-49a9-b221-a82d62465322",
"seq": 0,
"reason": "adjust-available",
"locale" : "en-US",
"os" : "Android",
"osversion" : "23",
"manufacturer": "Google",
"model": "Pixel 3",
"arch": "arm64",
"profile_date": 25754000,
"created" : "2020-05-01",
"tz" : -240,
"app_name": "Fennec",
"channel": "release",
"campaign": "camp1",
"adgroup": "adgroup1",
"creative": "creative1",
"network": "network1"
}