diff --git a/samples/rum/view.json b/samples/rum/view.json index 66f01968..3ed39bad 100644 --- a/samples/rum/view.json +++ b/samples/rum/view.json @@ -57,5 +57,16 @@ }, "context": { "foo": "bar" + }, + "device": { + "type": "tablet", + "name": "iPad", + "model": "iPad", + "brand": "Apple" + }, + "os": { + "name": "iOS", + "version": "15.1.1", + "version_major": "15" } } diff --git a/schemas/rum/_common-schema.json b/schemas/rum/_common-schema.json index d693f09a..addaec0b 100644 --- a/schemas/rum/_common-schema.json +++ b/schemas/rum/_common-schema.json @@ -204,6 +204,70 @@ }, "readOnly": true }, + "os": { + "type": "object", + "description": "Operating system properties", + "required": [ + "name", + "version", + "version_major" + ], + "properties": { + "name": { + "type": "string", + "description": "Operating system name, e.g. Android, iOS", + "readOnly": true + }, + "version": { + "type": "string", + "description": "Full operating system version, e.g. 8.1.1", + "readOnly": true + }, + "version_major": { + "type": "string", + "description": "Major operating system version, e.g. 8", + "readOnly": true + } + } + }, + "device": { + "type": "object", + "description": "Device properties", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "description": "Device type info", + "enum": [ + "mobile", + "desktop", + "tablet", + "tv", + "gaming_console", + "bot", + "other" + ], + "readOnly": true + }, + "name": { + "type": "string", + "description": "Device marketing name, e.g. Xiaomi Redmi Note 8 Pro, Pixel 5, etc.", + "readOnly": true + }, + "model": { + "type": "string", + "description": "Device SKU model, e.g. Samsung SM-988GN, etc. Quite often name and model can be the same.", + "readOnly": true + }, + "brand": { + "type": "string", + "description": "Device marketing brand, e.g. Apple, OPPO, Xiaomi, etc.", + "readOnly": true + } + } + }, "_dd": { "type": "object", "description": "Internal properties",