Skip to content

Commit

Permalink
Add com.snowplowanalytics.mobile/screen/jsonschema/1-0-0 (close #866)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhadam authored and chuwy committed May 3, 2019
1 parent dfbe544 commit 5d2cd05
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 0 deletions.
20 changes: 20 additions & 0 deletions jsonpaths/com.snowplowanalytics.mobile/screen_1.json
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 schemas/com.snowplowanalytics.mobile/screen/jsonschema/1-0-0
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
}
30 changes: 30 additions & 0 deletions sql/com.snowplowanalytics.mobile/screen_1.sql
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';

0 comments on commit 5d2cd05

Please sign in to comment.