-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1111 from snowplow/release/r122
Release/r122
- Loading branch information
Showing
4 changed files
with
336 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
98 changes: 98 additions & 0 deletions
98
schemas/com.snowplowanalytics.snowplow.storage/shredding_complete/jsonschema/1-0-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Message with batch metadata, passed from Shredder to Loader", | ||
"self": { | ||
"vendor": "com.snowplowanalytics.snowplow.storage", | ||
"name": "shredding_complete", | ||
"format": "jsonschema", | ||
"version": "1-0-1" | ||
}, | ||
"type": "object", | ||
"properties": { | ||
"base": { | ||
"description": "Blob storage path to the root of the batch", | ||
"type": "string", | ||
"format": "uri", | ||
"maxLength": 1024 | ||
}, | ||
"compression": { | ||
"description": "File compression type", | ||
"enum": ["GZIP", "NONE"] | ||
}, | ||
"types": { | ||
"description": "Set of Iglu URIs and the format they were shredded into", | ||
"type": "array", | ||
"items": { | ||
"properties": { | ||
"schemaKey": { | ||
"description": "Iglu URI", | ||
"type": "string", | ||
"maxLength": 256 | ||
}, | ||
"format": { | ||
"description": "File format in which the entities were shredded to", | ||
"enum": ["TSV", "JSON"] | ||
} | ||
}, | ||
"required": ["schemaKey", "format"] | ||
} | ||
}, | ||
"timestamps": { | ||
"description": "Set of timestampts associated with the batch", | ||
"type": "object", | ||
"properties": { | ||
"jobStarted": { | ||
"description": "Time when the batch started being shredded", | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"jobCompleted": { | ||
"description": "Time when the batch shredding has been finished (and the message being prepared)", | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"min": { | ||
"description": "The earliest collector_stamp available in the batch", | ||
"type": ["string", "null"], | ||
"format": "date-time" | ||
}, | ||
"max": { | ||
"description": "The latest collector_tstamp available in the batch", | ||
"type": ["string", "null"], | ||
"format": "date-time" | ||
} | ||
}, | ||
"required": ["jobStarted", "jobCompleted", "min", "max"] | ||
}, | ||
"processor": { | ||
"description": "Identificator of a shredder sent the message", | ||
"type": "object", | ||
"properties": { | ||
"artifact": { | ||
"description": "Name of the artifact", | ||
"type": "string", | ||
"maxLength": 64 | ||
}, | ||
"version": { | ||
"description": "Semantic Version of the artifact", | ||
"type": "string", | ||
"maxLength": 16 | ||
} | ||
}, | ||
"required": ["artifact", "version"] | ||
}, | ||
"count": { | ||
"description": "Count of events in the batch, null means the count could not be calculated", | ||
"type": ["object", "null"], | ||
"properties": { | ||
"good": { | ||
"description": "Amount of good events in the batch", | ||
"type": "integer", | ||
"minimum": 0 | ||
} | ||
} | ||
} | ||
}, | ||
"required": ["base", "compression", "types", "timestamps", "processor"], | ||
"additionalProperties": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,231 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Schema for a context generated by the YAUAA enrichment after parsing the user agent", | ||
"self": { | ||
"vendor": "nl.basjes", | ||
"name": "yauaa_context", | ||
"format": "jsonschema", | ||
"version": "1-0-2" | ||
}, | ||
"type": "object", | ||
"properties": { | ||
"deviceClass": { | ||
"description": "See https://yauaa.basjes.nl/README-Output.html", | ||
"enum": ["Desktop", "Anonymized", "Unknown", "UNKNOWN", "Mobile", "Tablet", "Phone", "Watch", "Virtual Reality", "eReader", "Set-top box", "TV", "Game Console", "Handheld Game Console", "Voice", "Robot", "Robot Mobile", "Spy", "Hacker", "Augmented Reality", "Robot Imitator"] | ||
}, | ||
"deviceName": { | ||
"description": "Example: Google Nexus 6", | ||
"type": "string", | ||
"maxLength": 100 | ||
}, | ||
"deviceBrand": { | ||
"description": "Example: Google", | ||
"type": "string", | ||
"maxLength": 50 | ||
}, | ||
"deviceCpu": { | ||
"type": "string", | ||
"maxLength": 50 | ||
}, | ||
"deviceCpuBits": { | ||
"type": "string", | ||
"maxLength": 20 | ||
}, | ||
"deviceFirmwareVersion": { | ||
"type": "string", | ||
"maxLength": 100 | ||
}, | ||
"deviceVersion": { | ||
"type": "string", | ||
"maxLength": 100 | ||
}, | ||
"operatingSystemClass": { | ||
"description": "See https://yauaa.basjes.nl/README-Output.html", | ||
"enum": ["Desktop", "Mobile", "Cloud", "Embedded", "Game Console", "Hacker", "Anonymized", "Unknown"] | ||
}, | ||
"operatingSystemName": { | ||
"description": "Examples: Linux, Android.", | ||
"type": "string", | ||
"maxLength": 100 | ||
}, | ||
"operatingSystemVersion": { | ||
"type": "string", | ||
"maxLength": 50 | ||
}, | ||
"operatingSystemNameVersion": { | ||
"type": "string", | ||
"maxLength": 150 | ||
}, | ||
"operatingSystemVersionBuild": { | ||
"type": "string", | ||
"maxLength": 100 | ||
}, | ||
"layoutEngineClass": { | ||
"description": "See https://yauaa.basjes.nl/README-Output.html", | ||
"enum": ["Browser", "Mobile App", "Hacker", "Robot", "Unknown", "Special", "Cloud", "eReader"] | ||
}, | ||
"layoutEngineName": { | ||
"type": "string", | ||
"maxLength": 100 | ||
}, | ||
"layoutEngineVersion": { | ||
"type": "string", | ||
"maxLength": 50 | ||
}, | ||
"layoutEngineVersionMajor": { | ||
"type": "string", | ||
"maxLength": 20 | ||
}, | ||
"layoutEngineNameVersion": { | ||
"type": "string", | ||
"maxLength": 150 | ||
}, | ||
"layoutEngineNameVersionMajor": { | ||
"type": "string", | ||
"maxLength": 120 | ||
}, | ||
"layoutEngineBuild": { | ||
"type": "string", | ||
"maxLength": 100 | ||
}, | ||
"agentClass": { | ||
"description": "See https://yauaa.basjes.nl/README-Output.html", | ||
"enum": ["Browser", "Browser Webview", "Mobile App", "Robot", "Robot Mobile", "Cloud Application", "Email Client", "Voice", "Special", "Testclient", "Hacker", "Unknown", "Desktop App", "eReader"] | ||
}, | ||
"agentName": { | ||
"description": "Example: Chrome.", | ||
"type": "string", | ||
"maxLength": 100 | ||
}, | ||
"agentVersion": { | ||
"type": "string", | ||
"maxLength": 100 | ||
}, | ||
"agentVersionMajor": { | ||
"type": "string", | ||
"maxLength": 20 | ||
}, | ||
"agentNameVersion": { | ||
"type": "string", | ||
"maxLength": 200 | ||
}, | ||
"agentNameVersionMajor": { | ||
"type": "string", | ||
"maxLength": 120 | ||
}, | ||
"agentBuild": { | ||
"type": "string", | ||
"maxLength": 100 | ||
}, | ||
"agentLanguage": { | ||
"type": "string", | ||
"maxLength": 50 | ||
}, | ||
"agentLanguageCode": { | ||
"type": "string", | ||
"maxLength": 20 | ||
}, | ||
"agentInformationEmail": { | ||
"type": "string", | ||
"format": "email" | ||
}, | ||
"agentInformationUrl": { | ||
"type": "string" | ||
}, | ||
"agentSecurity": { | ||
"type": "string", | ||
"enum": ["Weak security", "Strong security", "Unknown", "Hacker", "No security"] | ||
}, | ||
"agentUuid": { | ||
"type": "string" | ||
}, | ||
"webviewAppName": { | ||
"type": "string" | ||
}, | ||
"webviewAppVersion": { | ||
"type": "string" | ||
}, | ||
"webviewAppVersionMajor": { | ||
"type": "string", | ||
"maxLength": 50 | ||
}, | ||
"webviewAppNameVersionMajor": { | ||
"type": "string", | ||
"maxLength": 50 | ||
}, | ||
"facebookCarrier": { | ||
"type": "string" | ||
}, | ||
"facebookDeviceClass": { | ||
"type": "string", | ||
"maxLength": 1024 | ||
}, | ||
"facebookDeviceName": { | ||
"type": "string", | ||
"maxLength": 1024 | ||
}, | ||
"facebookDeviceVersion": { | ||
"type": "string" | ||
}, | ||
"facebookFBOP": { | ||
"type": "string" | ||
}, | ||
"facebookFBSS": { | ||
"type": "string" | ||
}, | ||
"facebookOperatingSystemName": { | ||
"type": "string" | ||
}, | ||
"facebookOperatingSystemVersion": { | ||
"type": "string" | ||
}, | ||
"anonymized": { | ||
"type": "string" | ||
}, | ||
"hackerAttackVector": { | ||
"type": "string" | ||
}, | ||
"hackerToolkit": { | ||
"type": "string" | ||
}, | ||
"koboAffiliate": { | ||
"type": "string" | ||
}, | ||
"koboPlatformId": { | ||
"type": "string" | ||
}, | ||
"iECompatibilityVersion": { | ||
"type": "string", | ||
"maxLength": 100 | ||
}, | ||
"iECompatibilityVersionMajor": { | ||
"type": "string", | ||
"maxLength": 50 | ||
}, | ||
"iECompatibilityNameVersion": { | ||
"type": "string", | ||
"maxLength": 50 | ||
}, | ||
"iECompatibilityNameVersionMajor": { | ||
"type": "string", | ||
"maxLength": 70 | ||
}, | ||
"carrier": { | ||
"type": "string" | ||
}, | ||
"gSAInstallationID": { | ||
"type": "string" | ||
}, | ||
"networkType": { | ||
"type": "string" | ||
}, | ||
"operatingSystemNameVersionMajor": { | ||
"type": "string" | ||
}, | ||
"operatingSystemVersionMajor": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["deviceClass"], | ||
"additionalProperties": false | ||
} |