Skip to content

Commit f2d2cda

Browse files
[mq] [skip ddci] working branch - merge 5914e67 on top of master at e18f1d3
{"baseBranch":"master","baseCommit":"e18f1d3b6a018f00061239bf14fbfb748c9538a3","createdAt":"2026-07-27T09:25:43.283049Z","headSha":"5914e67677927c997cbf407d0c6e30907d4c9f7b","id":"aea5405d-12b4-4160-a2fb-214da5e197c6","priority":"200","pullRequestNumber":"418","queuedAt":"2026-07-27T09:25:43.281225Z","status":"STATUS_QUEUED"}
2 parents 397eec0 + 5914e67 commit f2d2cda

3 files changed

Lines changed: 206 additions & 0 deletions

File tree

schemas/rum-events-mobile-schema.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@
3939
},
4040
{
4141
"$ref": "telemetry-events-schema.json"
42+
},
43+
{
44+
"title": "RumTimeseriesEvent",
45+
"oneOf": [
46+
{
47+
"$ref": "rum/timeseries-memory-schema.json"
48+
},
49+
{
50+
"$ref": "rum/timeseries-cpu-schema.json"
51+
}
52+
]
4253
}
4354
]
4455
}
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "rum/timeseries-cpu-schema.json",
4+
"title": "RumTimeseriesCpuEvent",
5+
"type": "object",
6+
"description": "Schema for a CPU timeseries event.",
7+
"allOf": [
8+
{
9+
"$ref": "_common-schema.json"
10+
},
11+
{
12+
"required": ["type", "timeseries"],
13+
"properties": {
14+
"type": {
15+
"type": "string",
16+
"description": "RUM event type",
17+
"const": "timeseries",
18+
"readOnly": true
19+
},
20+
"timeseries": {
21+
"type": "object",
22+
"description": "CPU timeseries properties",
23+
"required": ["id", "name", "schema", "start", "end", "data"],
24+
"properties": {
25+
"id": {
26+
"type": "string",
27+
"description": "UUID of the timeseries batch",
28+
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$",
29+
"readOnly": true
30+
},
31+
"name": {
32+
"type": "string",
33+
"description": "Name identifying the timeseries metric",
34+
"const": "cpu",
35+
"readOnly": true
36+
},
37+
"schema": {
38+
"type": "string",
39+
"description": "Wire-shape discriminator for the data field",
40+
"const": "object-v2",
41+
"readOnly": true
42+
},
43+
"start": {
44+
"type": "integer",
45+
"description": "Timestamp of the first sample in nanoseconds from epoch",
46+
"readOnly": true
47+
},
48+
"end": {
49+
"type": "integer",
50+
"description": "Timestamp of the last sample in nanoseconds from epoch",
51+
"readOnly": true
52+
},
53+
"data": {
54+
"type": "object",
55+
"description": "Flattened CPU data points",
56+
"required": ["timestamps", "values"],
57+
"properties": {
58+
"timestamps": {
59+
"type": "array",
60+
"description": "Sample timestamps in nanoseconds from epoch",
61+
"items": {
62+
"type": "integer",
63+
"readOnly": true
64+
},
65+
"readOnly": true
66+
},
67+
"values": {
68+
"type": "object",
69+
"description": "CPU measurements, aligned index-for-index with timestamps",
70+
"required": ["cpu_usage"],
71+
"properties": {
72+
"cpu_usage": {
73+
"type": "array",
74+
"description": "CPU usage as a percentage (0.0 to 100.0)",
75+
"items": {
76+
"type": "number",
77+
"readOnly": true
78+
},
79+
"readOnly": true
80+
}
81+
},
82+
"readOnly": true
83+
}
84+
},
85+
"readOnly": true
86+
}
87+
},
88+
"readOnly": true
89+
}
90+
}
91+
}
92+
]
93+
}
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "rum/timeseries-memory-schema.json",
4+
"title": "RumTimeseriesMemoryEvent",
5+
"type": "object",
6+
"description": "Schema for a memory timeseries event.",
7+
"allOf": [
8+
{
9+
"$ref": "_common-schema.json"
10+
},
11+
{
12+
"required": ["type", "timeseries"],
13+
"properties": {
14+
"type": {
15+
"type": "string",
16+
"description": "RUM event type",
17+
"const": "timeseries",
18+
"readOnly": true
19+
},
20+
"timeseries": {
21+
"type": "object",
22+
"description": "Memory timeseries properties",
23+
"required": ["id", "name", "schema", "start", "end", "data"],
24+
"properties": {
25+
"id": {
26+
"type": "string",
27+
"description": "UUID of the timeseries batch",
28+
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$",
29+
"readOnly": true
30+
},
31+
"name": {
32+
"type": "string",
33+
"description": "Name identifying the timeseries metric",
34+
"const": "memory",
35+
"readOnly": true
36+
},
37+
"schema": {
38+
"type": "string",
39+
"description": "Wire-shape discriminator for the data field",
40+
"const": "object-v2",
41+
"readOnly": true
42+
},
43+
"start": {
44+
"type": "integer",
45+
"description": "Timestamp of the first sample in nanoseconds from epoch",
46+
"readOnly": true
47+
},
48+
"end": {
49+
"type": "integer",
50+
"description": "Timestamp of the last sample in nanoseconds from epoch",
51+
"readOnly": true
52+
},
53+
"data": {
54+
"type": "object",
55+
"description": "Flattened memory data points",
56+
"required": ["timestamps", "values"],
57+
"properties": {
58+
"timestamps": {
59+
"type": "array",
60+
"description": "Sample timestamps in nanoseconds from epoch",
61+
"items": {
62+
"type": "integer",
63+
"readOnly": true
64+
},
65+
"readOnly": true
66+
},
67+
"values": {
68+
"type": "object",
69+
"description": "Memory measurements, aligned index-for-index with timestamps",
70+
"required": ["memory_footprint", "memory_percent"],
71+
"properties": {
72+
"memory_footprint": {
73+
"type": "array",
74+
"description": "Physical memory footprint of the process in kilobytes",
75+
"items": {
76+
"type": "number",
77+
"readOnly": true
78+
},
79+
"readOnly": true
80+
},
81+
"memory_percent": {
82+
"type": "array",
83+
"description": "Memory footprint as a percentage of total device RAM",
84+
"items": {
85+
"type": "number",
86+
"readOnly": true
87+
},
88+
"readOnly": true
89+
}
90+
},
91+
"readOnly": true
92+
}
93+
},
94+
"readOnly": true
95+
}
96+
},
97+
"readOnly": true
98+
}
99+
}
100+
}
101+
]
102+
}

0 commit comments

Comments
 (0)