Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
"additionalProperties": false,
"properties": {
"dayOfWeek": {
"maximum": 6,
"minimum": 0,
"type": "integer"
},
"destinationDomain": {
Expand All @@ -34,9 +32,6 @@
"type": "string"
},
"timeOfDay": {
"maximum": 20,
"minimum": 0,
"multipleOf": 4,
"type": "integer"
}
},
Expand Down Expand Up @@ -77,8 +72,6 @@
"additionalProperties": false,
"properties": {
"dayOfWeek": {
"maximum": 6,
"minimum": 0,
"type": "integer"
},
"laterSharedCount": {
Expand All @@ -88,8 +81,6 @@
"type": "integer"
},
"pageCategory": {
"maximum": 2,
"minimum": 0,
"type": "integer"
},
"prevExposedCount": {
Expand All @@ -99,9 +90,6 @@
"type": "string"
},
"timeOfDay": {
"maximum": 20,
"minimum": 0,
"multipleOf": 4,
"type": "integer"
},
"totalAttention": {
Expand Down Expand Up @@ -148,21 +136,16 @@
"audience": {
"enum": [
"public",
"restricted"
"restricted",
"unknown"
],
"type": "string"
},
"classification": {
"enum": [
"pol news",
"nonpol news",
"other"
],
"description": "deprecated, use pageClassification",
"type": "string"
},
"dayOfWeek": {
"maximum": 6,
"minimum": 0,
"type": "integer"
},
"domain": {
Expand All @@ -171,11 +154,14 @@
"numShares": {
"type": "integer"
},
"pageClassification": {
"type": "integer"
},
"timeOfDay": {
"maximum": 20,
"minimum": 0,
"multipleOf": 4,
"type": "integer"
},
"visitReferrer": {
"type": "string"
}
},
"type": "object"
Expand All @@ -189,6 +175,10 @@
}
},
"type": "object"
},
"WebScience.SurveyId": {
"description": "ID sent to Qualtrics, for associating survey responses with telemetry data",
"type": "string"
Copy link
Contributor

Choose a reason for hiding this comment

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

It's good practice to document the use of this field using the description property, which will get inserted into the BigQuery schema.

}
},
"type": "object"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"WebScience.SurveyId": {
"type": "string",
"description": "ID sent to Qualtrics, for associating survey responses with telemetry data"
},
"WebScience.Measurements.PageNavigation": {
"type": "object",
"properties": {
Expand All @@ -19,22 +23,9 @@
"type": "object",
"properties": {
"referrerDomain": { "type": "string" },
"dayOfWeek": {
"type": "integer",
"minimum": 0,
"maximum": 6
},
"timeOfDay": {
"type": "integer",
"multipleOf": 4,
"minimum": 0,
"maximum": 20
},
"pageCategory": {
"type": "integer",
"minimum": 0,
"maximum": 2
},
"dayOfWeek": { "type": "integer" },
"timeOfDay": { "type": "integer" },
"pageCategory": { "type": "integer" },
"numVisits": { "type": "integer" },
"totalAttention": { "type": "integer" },
"totalScroll": { "type": "integer" },
Expand Down Expand Up @@ -71,25 +62,18 @@
"properties": {
"domain": { "type": "string" },
"classification": {
"type": "string",
"enum": ["pol news", "nonpol news", "other"]
"type": "string",
"description": "deprecated, use pageClassification"
},
"pageClassification": { "type": "integer"},
"visitReferrer": { "type": "string" },
"audience": {
"type": "string",
"enum": ["public", "restricted"]
"enum": ["public", "restricted", "unknown"]
},
"numShares": { "type": "integer" },
"dayOfWeek": {
"type": "integer",
"minimum": 0,
"maximum": 6
},
"timeOfDay": {
"type": "integer",
"minimum": 0,
"maximum": 20,
"multipleOf": 4
}
"dayOfWeek": { "type": "integer" },
"timeOfDay": { "type": "integer" }
},
"additionalProperties": false
}
Expand All @@ -116,13 +100,8 @@
"properties": {
"sourceDomain": { "type": "string" },
"destinationDomain": { "type": "string" },
"dayOfWeek": { "type": "integer", "minimum": 0, "maximum": 6 },
"timeOfDay": {
"type": "integer",
"multipleOf": 4,
"minimum": 0,
"maximum": 20
},
"dayOfWeek": { "type": "integer" },
"timeOfDay": { "type": "integer" },
"numExposures": { "type": "integer" },
"laterSharedCount": { "type": "integer" },
"laterVisitedCount": { "type": "integer" }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"WebScience.SurveyId": "f85b22d6-b0a6-419f-820a-75f28c1a8af3",
"WebScience.Measurements.PageNavigation": {
"numUntrackedVisits": 500,
"trackedVisitsByDomain": [
Expand Down Expand Up @@ -30,16 +31,18 @@
"trackedShares": [
{
"domain": "nytimes.com",
"classification": "pol news",
"pageClassification": 0,
"audience": "public",
"visitReferrer": "google.com",
"numShares": 5,
"dayOfWeek": 2,
"timeOfDay": 20
},
{
"domain": "nytimes.com",
"classification": "nonpol news",
"pageClassification": 1,
"audience": "restricted",
"visitReferrer": "google.com",
"numShares": 3,
"dayOfWeek": 2,
"timeOfDay": 20
Expand All @@ -52,7 +55,8 @@
"trackedShares": [
{
"domain": "nytimes.com",
"classification": "other",
"pageClassification": 2,
"visitReferrer": "google.com",
"audience": "public",
"numShares": 2,
"dayOfWeek": 2,
Expand Down