|
4 | 4 | /** |
5 | 5 | * Schema of all properties of a RUM event |
6 | 6 | */ |
7 | | -export declare type RumEvent = RumActionEvent | RumTransitionEvent | RumErrorEvent | RumLongTaskEvent | RumResourceEvent | RumViewEvent | RumVitalEvent; |
| 7 | +export declare type RumEvent = RumActionEvent | RumTransitionEvent | RumErrorEvent | RumLongTaskEvent | RumResourceEvent | RumViewEvent | RumProfileEvent | RumVitalEvent; |
8 | 8 | /** |
9 | 9 | * Schema of all properties of an Action event |
10 | 10 | */ |
@@ -1238,6 +1238,144 @@ export declare type RumViewEvent = CommonProperties & ViewContainerSchema & Stre |
1238 | 1238 | }; |
1239 | 1239 | [k: string]: unknown; |
1240 | 1240 | }; |
| 1241 | +/** |
| 1242 | + * Schema of all properties of a Profile event |
| 1243 | + */ |
| 1244 | +export declare type RumProfileEvent = CommonProperties & ViewContainerSchema & { |
| 1245 | + readonly type: 'profile'; |
| 1246 | + /** |
| 1247 | + * Long Task properties |
| 1248 | + */ |
| 1249 | + readonly long_task?: { |
| 1250 | + /** |
| 1251 | + * Array of long task UUIDs associated with the profile |
| 1252 | + */ |
| 1253 | + readonly id?: string[]; |
| 1254 | + [k: string]: unknown; |
| 1255 | + }; |
| 1256 | + /** |
| 1257 | + * Internal properties |
| 1258 | + */ |
| 1259 | + _dd?: { |
| 1260 | + profiling?: ProfilingInternalContextSchema; |
| 1261 | + [k: string]: unknown; |
| 1262 | + }; |
| 1263 | + /** |
| 1264 | + * Profile properties |
| 1265 | + */ |
| 1266 | + readonly profile: { |
| 1267 | + /** |
| 1268 | + * UUID of the profile |
| 1269 | + */ |
| 1270 | + readonly id: string; |
| 1271 | + /** |
| 1272 | + * An array of profiler resources (URLs) |
| 1273 | + */ |
| 1274 | + readonly resources: string[]; |
| 1275 | + /** |
| 1276 | + * An array of profiler frames |
| 1277 | + */ |
| 1278 | + readonly frames: { |
| 1279 | + /** |
| 1280 | + * A function instance name |
| 1281 | + */ |
| 1282 | + name: string; |
| 1283 | + /** |
| 1284 | + * Index in the trace.resources array |
| 1285 | + */ |
| 1286 | + resourceId?: number; |
| 1287 | + /** |
| 1288 | + * 1-based index of the line |
| 1289 | + */ |
| 1290 | + line?: number; |
| 1291 | + /** |
| 1292 | + * 1-based index of the column |
| 1293 | + */ |
| 1294 | + column?: number; |
| 1295 | + [k: string]: unknown; |
| 1296 | + }[]; |
| 1297 | + /** |
| 1298 | + * An array of profiler stacks |
| 1299 | + */ |
| 1300 | + readonly stacks: { |
| 1301 | + /** |
| 1302 | + * Index in the trace.stacks array |
| 1303 | + */ |
| 1304 | + parentId?: number; |
| 1305 | + /** |
| 1306 | + * Index in the trace.frames array |
| 1307 | + */ |
| 1308 | + frameId: number; |
| 1309 | + [k: string]: unknown; |
| 1310 | + }[]; |
| 1311 | + /** |
| 1312 | + * An array of profiler samples |
| 1313 | + */ |
| 1314 | + readonly samples: { |
| 1315 | + /** |
| 1316 | + * High resolution time relative to the profiling session's time origin |
| 1317 | + */ |
| 1318 | + timestamp: number; |
| 1319 | + /** |
| 1320 | + * Index in the trace.stacks array |
| 1321 | + */ |
| 1322 | + stackId?: number; |
| 1323 | + [k: string]: unknown; |
| 1324 | + }[]; |
| 1325 | + /** |
| 1326 | + * Sample interval in milliseconds |
| 1327 | + */ |
| 1328 | + readonly sample_interval: number; |
| 1329 | + /** |
| 1330 | + * Maximum buffer size in number of samples |
| 1331 | + */ |
| 1332 | + readonly max_buffer_size?: number; |
| 1333 | + /** |
| 1334 | + * High resolution time when profiler trace started, relative to the profiling session's time origin |
| 1335 | + */ |
| 1336 | + readonly start_clocks: { |
| 1337 | + /** |
| 1338 | + * Relative time |
| 1339 | + */ |
| 1340 | + readonly relative: number; |
| 1341 | + /** |
| 1342 | + * Timestamp |
| 1343 | + */ |
| 1344 | + readonly time_stamp: number; |
| 1345 | + [k: string]: unknown; |
| 1346 | + }; |
| 1347 | + /** |
| 1348 | + * High resolution time when profiler trace ended, relative to the profiling session's time origin |
| 1349 | + */ |
| 1350 | + readonly end_clocks: { |
| 1351 | + /** |
| 1352 | + * Relative time |
| 1353 | + */ |
| 1354 | + readonly relative: number; |
| 1355 | + /** |
| 1356 | + * Timestamp |
| 1357 | + */ |
| 1358 | + readonly time_stamp: number; |
| 1359 | + [k: string]: unknown; |
| 1360 | + }; |
| 1361 | + /** |
| 1362 | + * Time origin of the profiling session |
| 1363 | + */ |
| 1364 | + readonly clocks_origin: { |
| 1365 | + /** |
| 1366 | + * Relative time |
| 1367 | + */ |
| 1368 | + readonly relative: number; |
| 1369 | + /** |
| 1370 | + * Timestamp |
| 1371 | + */ |
| 1372 | + readonly time_stamp: number; |
| 1373 | + [k: string]: unknown; |
| 1374 | + }; |
| 1375 | + [k: string]: unknown; |
| 1376 | + }; |
| 1377 | + [k: string]: unknown; |
| 1378 | +}; |
1241 | 1379 | export declare type RumVitalEvent = RumVitalDurationEvent | RumVitalOperationStepEvent | RumVitalAppLaunchEvent; |
1242 | 1380 | /** |
1243 | 1381 | * Schema for a duration vital event. |
|
0 commit comments