-
Notifications
You must be signed in to change notification settings - Fork 113
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.snowplow/client_session/jsonschema/1-0-3 (c…
…lose #1410)
- Loading branch information
1 parent
ee00bdb
commit 0286ce6
Showing
1 changed file
with
81 additions
and
0 deletions.
There are no files selected for viewing
81 changes: 81 additions & 0 deletions
81
schemas/com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-3
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,81 @@ | ||
{ | ||
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#", | ||
"description": "Schema for a client-generated user session", | ||
"self": { | ||
"vendor": "com.snowplowanalytics.snowplow", | ||
"name": "client_session", | ||
"format": "jsonschema", | ||
"version": "1-0-3" | ||
}, | ||
"type": "object", | ||
"properties": { | ||
"userId": { | ||
"type": "string", | ||
"pattern": "^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$|^[0-9a-f]{16}$", | ||
"maxLength": 36, | ||
"description": "An identifier for the user of the session" | ||
}, | ||
"sessionId": { | ||
"type": "string", | ||
"format": "uuid", | ||
"description": "An identifier for the session" | ||
}, | ||
"sessionIndex": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 2147483647, | ||
"description": "The index of the current session for this user" | ||
}, | ||
"eventIndex": { | ||
"type": [ | ||
"null", | ||
"integer" | ||
], | ||
"minimum": 0, | ||
"maximum": 2147483647, | ||
"description": "Optional index of the current event in the session" | ||
}, | ||
"previousSessionId": { | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"format": "uuid", | ||
"description": "The previous session identifier for this user" | ||
}, | ||
"storageMechanism": { | ||
"type": "string", | ||
"enum": [ | ||
"SQLITE", | ||
"COOKIE_1", | ||
"COOKIE_3", | ||
"LOCAL_STORAGE", | ||
"FLASH_LSO" | ||
], | ||
"description": "The mechanism that the session information has been stored on the device" | ||
}, | ||
"firstEventId": { | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"format": "uuid", | ||
"description": "The optional identifier of the first event for this session" | ||
}, | ||
"firstEventTimestamp": { | ||
"description": "Optional date-time timestamp of when the first event in the session was tracked", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"format": "date-time" | ||
} | ||
}, | ||
"required": [ | ||
"userId", | ||
"sessionId", | ||
"sessionIndex", | ||
"storageMechanism" | ||
], | ||
"additionalProperties": false | ||
} |