-
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.
Add com.snowplowanalytics.mobile/screen/jsonschema/1-0-0 (close #866)
- Loading branch information
Showing
3 changed files
with
96 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"jsonpaths": [ | ||
"$.schema.vendor", | ||
"$.schema.name", | ||
"$.schema.format", | ||
"$.schema.version", | ||
"$.hierarchy.rootId", | ||
"$.hierarchy.rootTstamp", | ||
"$.hierarchy.refRoot", | ||
"$.hierarchy.refTree", | ||
"$.hierarchy.refParent", | ||
"$.data.id", | ||
"$.data.name", | ||
"$.data.activity", | ||
"$.data.fragment", | ||
"$.data.topViewController", | ||
"$.data.type", | ||
"$.data.viewController" | ||
] | ||
} |
46 changes: 46 additions & 0 deletions
46
schemas/com.snowplowanalytics.mobile/screen/jsonschema/1-0-0
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,46 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Schema for a context that represents information pertaining to the current screen being viewed when an event occurs.", | ||
"self": { | ||
"vendor": "com.snowplowanalytics.mobile", | ||
"name": "screen", | ||
"format": "jsonschema", | ||
"version": "1-0-0" | ||
}, | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "The name of the screen viewed." | ||
}, | ||
"type": { | ||
"type": "string", | ||
"description": "The type of screen that was viewed e.g feed / carousel." | ||
}, | ||
"id": { | ||
"type": "string", | ||
"format": "uuid", | ||
"maxLength": 36, | ||
"description": "An ID from the associated screenview event." | ||
}, | ||
"viewController": { | ||
"type": "string", | ||
"description": "iOS specific: class name of the view controller." | ||
}, | ||
"topViewController": { | ||
"type": "string", | ||
"description": "iOS specific: class name of the top level view controller." | ||
}, | ||
"activity": { | ||
"type": "string", | ||
"description": "Android specific: name of activity." | ||
}, | ||
"fragment": { | ||
"type": "string", | ||
"description": "Android specific: name of fragment." | ||
} | ||
}, | ||
"minProperties": 2, | ||
"required": ["name", "id"], | ||
"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,30 @@ | ||
-- AUTO-GENERATED BY igluctl DO NOT EDIT | ||
-- Generator: igluctl 0.5.0 | ||
-- Generated: 2019-05-01 14:26 UTC | ||
|
||
CREATE SCHEMA IF NOT EXISTS atomic; | ||
|
||
CREATE TABLE IF NOT EXISTS atomic.com_snowplowanalytics_mobile_screen_1 ( | ||
"schema_vendor" VARCHAR(128) ENCODE ZSTD NOT NULL, | ||
"schema_name" VARCHAR(128) ENCODE ZSTD NOT NULL, | ||
"schema_format" VARCHAR(128) ENCODE ZSTD NOT NULL, | ||
"schema_version" VARCHAR(128) ENCODE ZSTD NOT NULL, | ||
"root_id" CHAR(36) ENCODE RAW NOT NULL, | ||
"root_tstamp" TIMESTAMP ENCODE ZSTD NOT NULL, | ||
"ref_root" VARCHAR(255) ENCODE ZSTD NOT NULL, | ||
"ref_tree" VARCHAR(1500) ENCODE ZSTD NOT NULL, | ||
"ref_parent" VARCHAR(255) ENCODE ZSTD NOT NULL, | ||
"id" CHAR(36) ENCODE ZSTD NOT NULL, | ||
"name" VARCHAR(4096) ENCODE ZSTD NOT NULL, | ||
"activity" VARCHAR(4096) ENCODE ZSTD, | ||
"fragment" VARCHAR(4096) ENCODE ZSTD, | ||
"top_view_controller" VARCHAR(4096) ENCODE ZSTD, | ||
"type" VARCHAR(4096) ENCODE ZSTD, | ||
"view_controller" VARCHAR(4096) ENCODE ZSTD, | ||
FOREIGN KEY (root_id) REFERENCES atomic.events(event_id) | ||
) | ||
DISTSTYLE KEY | ||
DISTKEY (root_id) | ||
SORTKEY (root_tstamp); | ||
|
||
COMMENT ON TABLE atomic.com_snowplowanalytics_mobile_screen_1 IS 'iglu:com.snowplowanalytics.mobile/screen/jsonschema/1-0-0'; |