-
Notifications
You must be signed in to change notification settings - Fork 6
[VQM] define transition schema #288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
88c43f1
217ace6
249b219
9d80c99
d699979
3ff03e8
f85a914
64b13d2
974b152
1992a90
fa9eda4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"type": "transition", | ||
"date": 1591284428705, | ||
"application": { | ||
"id": "ac8218cf-498b-4d33-bd44-151095959547" | ||
}, | ||
"session": { | ||
"id": "cacbf45c-3a05-48ce-b066-d76349460599", | ||
"type": "user" | ||
}, | ||
"source": "android", | ||
"view": { | ||
"id": "623d50fd-75cf-4025-97d2-e51ff94171f6", | ||
"referrer": "", | ||
"url": "https://app.datadoghq.com/rum/explorer?live=1h&query=&tab=view" | ||
}, | ||
"stream": { | ||
"id": "7be62f6b-b0c1-4165-bf5f-2ca647dfec30", | ||
"referrer": "", | ||
"url": "https://app.datadoghq.com/rum/explorer?live=1h&query=&tab=view" | ||
}, | ||
"transition": { | ||
"type": "MEDIA_PLAYER_PLAY", | ||
"id": "47af0abb-3de1-4170-a491-4473716df979", | ||
"timestamp": 3600000, | ||
"buffer_starvation_duration": 500, | ||
"media_start_delay": 800 | ||
}, | ||
"_dd": { | ||
"format_version": 2 | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"$id": "rum/_stream-container-schema.json", | ||
"title": "StreamContainerSchema", | ||
"type": "object", | ||
"description": "Stream Container schema for streams that are nested", | ||
"properties": { | ||
"container": { | ||
"type": "object", | ||
"description": "Stream Container properties (stream wrapping the current stream)", | ||
"required": ["stream", "source"], | ||
"properties": { | ||
"stream": { | ||
"type": "object", | ||
|
||
"description": "Attributes of the stream's container", | ||
"required": ["id"], | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "ID of the parent stream", | ||
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$", | ||
"readOnly": true | ||
} | ||
}, | ||
"readOnly": true | ||
}, | ||
"view": { | ||
"type": "object", | ||
"description": "Attributes of the view's container", | ||
"required": ["id"], | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "ID of the parent view", | ||
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$", | ||
"readOnly": true | ||
} | ||
}, | ||
"readOnly": true | ||
}, | ||
"source": { | ||
"type": "string", | ||
"description": "Source of the parent stream", | ||
"enum": ["android", "ios", "browser", "flutter", "react-native", "roku", "unity", "kotlin-multiplatform"], | ||
"readOnly": true | ||
} | ||
|
||
}, | ||
"readOnly": true | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"$id": "rum/transition-schema.json", | ||
"title": "RumTransitionEvent", | ||
"type": "object", | ||
"description": "Schema of all properties of an Transition event", | ||
"allOf": [ | ||
{ | ||
"$ref": "_common-schema.json" | ||
}, | ||
{ | ||
"$ref": "_stream-container-schema.json" | ||
}, | ||
{ | ||
"required": ["type", "transition"], | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"description": "RUM event type", | ||
"const": "transition", | ||
"readOnly": true | ||
}, | ||
"transition": { | ||
"type": "object", | ||
"description": "Transition properties", | ||
"required": ["type"], | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"description": "Type of the transition", | ||
"readOnly": true | ||
}, | ||
"id": { | ||
"type": "string", | ||
"description": "UUID of the transition", | ||
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$", | ||
"readOnly": true | ||
}, | ||
"timestamp": { | ||
"type": "integer", | ||
"description": "The player's current timestamp in milliseconds", | ||
"minimum": 0, | ||
"readOnly": true | ||
}, | ||
"buffer_starrvation_duration": { | ||
"type": "integer", | ||
"description": "Buffer starvation duration, the amount of time spent rebuffering in milliseconds", | ||
"minimum": 0, | ||
"readOnly": true | ||
}, | ||
"media_start_delay": { | ||
"type": "integer", | ||
"description": "Media start delay, the amount of time spent loading before playing in milliseconds", | ||
"minimum": 0, | ||
"readOnly": true | ||
}, | ||
"error_code": { | ||
"type": "integer", | ||
"description": "Error code, as reported by the player", | ||
"minimum": 0, | ||
"readOnly": true | ||
}, | ||
"duration": { | ||
"type": "integer", | ||
"description": "Duration of the event in milliseconds", | ||
"minimum": 0, | ||
"readOnly": true | ||
} | ||
}, | ||
"readOnly": true | ||
} | ||
} | ||
} | ||
] | ||
} |
Uh oh!
There was an error while loading. Please reload this page.