-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate enriched event against atomic schema before emitting (close #…
…517)
- Loading branch information
Showing
62 changed files
with
5,499 additions
and
484 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
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
14 changes: 14 additions & 0 deletions
14
...mmon-fs2/src/test/resources/iglu-client-embedded/schemas/com.acme/output/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,14 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"self": { | ||
"vendor": "com.acme", | ||
"name": "output", | ||
"format": "jsonschema", | ||
"version": "1-0-0" | ||
}, | ||
"properties": { | ||
"output": { | ||
"type": "string" | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...common-fs2/src/test/resources/iglu-client-embedded/schemas/com.acme/test/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,18 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"self": { | ||
"vendor": "com.acme", | ||
"name": "test", | ||
"format": "jsonschema", | ||
"version": "1-0-1" | ||
}, | ||
"properties": { | ||
"path": { | ||
"properties": { | ||
"id": { | ||
"type": "integer" | ||
} | ||
} | ||
} | ||
} | ||
} |
143 changes: 143 additions & 0 deletions
143
...c/test/resources/iglu-client-embedded/schemas/com.callrail/call_complete/jsonschema/1-0-2
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,143 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Schema for a CallRail call completion event", | ||
"self": { | ||
"vendor": "com.callrail", | ||
"name": "call_complete", | ||
"format": "jsonschema", | ||
"version": "1-0-2" | ||
}, | ||
|
||
"type": "object", | ||
"properties": { | ||
"answered": { | ||
"type": ["boolean", "null"] | ||
}, | ||
"customer_city": { | ||
"type": ["string", "null"] | ||
}, | ||
"customer_country": { | ||
"type": ["string", "null"] | ||
}, | ||
"customer_name": { | ||
"type": ["string", "null"] | ||
}, | ||
"customer_phone_number": { | ||
"type": ["string", "null"] | ||
}, | ||
"customer_state": { | ||
"type": ["string", "null"] | ||
}, | ||
"customer_zip": { | ||
"type": ["string", "null"] | ||
}, | ||
"callercity": { | ||
"type": ["string", "null"] | ||
}, | ||
"callercountry": { | ||
"type": ["string", "null"] | ||
}, | ||
"callername": { | ||
"type": ["string", "null"] | ||
}, | ||
"callernum": { | ||
"type": ["string", "null"] | ||
}, | ||
"callerstate": { | ||
"type": ["string", "null"] | ||
}, | ||
"callerzip": { | ||
"type": ["string", "null"] | ||
}, | ||
"callsource": { | ||
"type": ["string", "null"] | ||
}, | ||
"datetime": { | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"destinationnum": { | ||
"type": ["string", "null"] | ||
}, | ||
"duration": { | ||
"type": ["number", "null"] | ||
}, | ||
"first_call": { | ||
"type": ["boolean", "null"] | ||
}, | ||
"device_type": { | ||
"type": ["string", "null"] | ||
}, | ||
"ga": { | ||
"type": ["string", "null"] | ||
}, | ||
"gclid": { | ||
"type": ["string", "null"] | ||
}, | ||
"id": { | ||
"type": "string" | ||
}, | ||
"ip": { | ||
"type": ["string", "null"] | ||
}, | ||
"keywords": { | ||
"type": ["string", "null"] | ||
}, | ||
"kissmetrics_id": { | ||
"type": ["string", "null"] | ||
}, | ||
"landingpage": { | ||
"type": ["string", "null"] | ||
}, | ||
"recording": { | ||
"type": ["string", "null"] | ||
}, | ||
"referrer": { | ||
"type": ["string", "null"] | ||
}, | ||
"referrermedium": { | ||
"type": ["string", "null"] | ||
}, | ||
"trackingnum": { | ||
"type": ["string", "null"] | ||
}, | ||
"transcription": { | ||
"type": ["string", "null"] | ||
}, | ||
"utm_campaign": { | ||
"type": ["string", "null"] | ||
}, | ||
"utm_content": { | ||
"type": ["string", "null"] | ||
}, | ||
"utm_medium": { | ||
"type": ["string", "null"] | ||
}, | ||
"utm_source": { | ||
"type": ["string", "null"] | ||
}, | ||
"utm_term": { | ||
"type": ["string", "null"] | ||
}, | ||
"utma": { | ||
"type": ["string", "null"] | ||
}, | ||
"utmb": { | ||
"type": ["string", "null"] | ||
}, | ||
"utmc": { | ||
"type": ["string", "null"] | ||
}, | ||
"utmv": { | ||
"type": ["string", "null"] | ||
}, | ||
"utmx": { | ||
"type": ["string", "null"] | ||
}, | ||
"utmz": { | ||
"type": ["string", "null"] | ||
} | ||
}, | ||
"required": ["datetime", "id"], | ||
"additionalProperties": false | ||
} |
30 changes: 30 additions & 0 deletions
30
...lu-client-embedded/schemas/com.google.analytics.measurement-protocol/hit/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,30 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Schema for a Google Analytics hit entity", | ||
"self": { | ||
"vendor": "com.google.analytics.measurement-protocol", | ||
"name": "hit", | ||
"format": "jsonschema", | ||
"version": "1-0-0" | ||
}, | ||
|
||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"enum": [ | ||
"event", | ||
"exception", | ||
"item", | ||
"pageview", | ||
"screenview", | ||
"social", | ||
"timing", | ||
"transaction" | ||
] | ||
}, | ||
"nonInteractionHit": { | ||
"type": ["boolean", "null"] | ||
} | ||
}, | ||
"additionalProperties": false | ||
} |
31 changes: 31 additions & 0 deletions
31
...ent-embedded/schemas/com.google.analytics.measurement-protocol/page_view/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,31 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Schema for a Google Analytics pageview hit", | ||
"self": { | ||
"vendor": "com.google.analytics.measurement-protocol", | ||
"name": "page_view", | ||
"format": "jsonschema", | ||
"version": "1-0-0" | ||
}, | ||
|
||
"type": "object", | ||
"properties": { | ||
"documentLocationUrl": { | ||
"type": ["string", "null"], | ||
"maxLength": 2048 | ||
}, | ||
"documentHostName": { | ||
"type": ["string", "null"], | ||
"maxLength": 100 | ||
}, | ||
"documentPath": { | ||
"type": ["string", "null"], | ||
"maxLength": 2048 | ||
}, | ||
"documentTitle": { | ||
"type": ["string", "null"], | ||
"maxLength": 1500 | ||
} | ||
}, | ||
"additionalProperties": false | ||
} |
Oops, something went wrong.