@@ -2418,6 +2418,9 @@ public struct RUMViewEvent: RUMDataModel {
2418
2418
/// Browser SDK version
2419
2419
public let browserSdkVersion : String ?
2420
2420
2421
+ /// Additional information of the reported Cumulative Layout Shift
2422
+ public let cls : CLS ?
2423
+
2421
2424
/// Subset of the SDK configuration options in use during its execution
2422
2425
public let configuration : Configuration ?
2423
2426
@@ -2438,6 +2441,7 @@ public struct RUMViewEvent: RUMDataModel {
2438
2441
2439
2442
enum CodingKeys : String , CodingKey {
2440
2443
case browserSdkVersion = " browser_sdk_version "
2444
+ case cls = " cls "
2441
2445
case configuration = " configuration "
2442
2446
case documentVersion = " document_version "
2443
2447
case formatVersion = " format_version "
@@ -2446,6 +2450,16 @@ public struct RUMViewEvent: RUMDataModel {
2446
2450
case session = " session "
2447
2451
}
2448
2452
2453
+ /// Additional information of the reported Cumulative Layout Shift
2454
+ public struct CLS : Codable {
2455
+ /// Pixel ratio of the device where the layout shift was reported
2456
+ public let devicePixelRatio : Double ?
2457
+
2458
+ enum CodingKeys : String , CodingKey {
2459
+ case devicePixelRatio = " device_pixel_ratio "
2460
+ }
2461
+ }
2462
+
2449
2463
/// Subset of the SDK configuration options in use during its execution
2450
2464
public struct Configuration : Codable {
2451
2465
/// The percentage of sessions with RUM & Session Replay pricing tracked
@@ -2757,6 +2771,9 @@ public struct RUMViewEvent: RUMDataModel {
2757
2771
/// Time taken for Flutter to rasterize the view.
2758
2772
public let flutterRasterTime : FlutterRasterTime ?
2759
2773
2774
+ /// Rate of freezes during the view’s lifetime (in seconds per hour)
2775
+ public let freezeRate : Double ?
2776
+
2760
2777
/// Properties of the frozen frames of the view
2761
2778
public let frozenFrame : FrozenFrame ?
2762
2779
@@ -2835,6 +2852,12 @@ public struct RUMViewEvent: RUMDataModel {
2835
2852
/// Properties of the resources of the view
2836
2853
public let resource : Resource
2837
2854
2855
+ /// List of slow frames during the view’s lifetime
2856
+ public let slowFrames : [ SlowFrames ] ?
2857
+
2858
+ /// Rate of slow frames during the view’s lifetime (in milliseconds per second)
2859
+ public let slowFramesRate : Double ?
2860
+
2838
2861
/// Time spent on the view in ns
2839
2862
public let timeSpent : Int64
2840
2863
@@ -2861,6 +2884,7 @@ public struct RUMViewEvent: RUMDataModel {
2861
2884
case firstInputTime = " first_input_time "
2862
2885
case flutterBuildTime = " flutter_build_time "
2863
2886
case flutterRasterTime = " flutter_raster_time "
2887
+ case freezeRate = " freeze_rate "
2864
2888
case frozenFrame = " frozen_frame "
2865
2889
case frustration = " frustration "
2866
2890
case id = " id "
@@ -2887,6 +2911,8 @@ public struct RUMViewEvent: RUMDataModel {
2887
2911
case refreshRateAverage = " refresh_rate_average "
2888
2912
case refreshRateMin = " refresh_rate_min "
2889
2913
case resource = " resource "
2914
+ case slowFrames = " slow_frames "
2915
+ case slowFramesRate = " slow_frames_rate "
2890
2916
case timeSpent = " time_spent "
2891
2917
case url = " url "
2892
2918
}
@@ -3226,6 +3252,20 @@ public struct RUMViewEvent: RUMDataModel {
3226
3252
case count = " count "
3227
3253
}
3228
3254
}
3255
+
3256
+ /// Properties of the slow frames
3257
+ public struct SlowFrames : Codable {
3258
+ /// Duration in ns of the slow frame
3259
+ public let duration : Int64
3260
+
3261
+ /// Duration in ns between start of the view and the start of the slow frame
3262
+ public let start : Int64
3263
+
3264
+ enum CodingKeys : String , CodingKey {
3265
+ case duration = " duration "
3266
+ case start = " start "
3267
+ }
3268
+ }
3229
3269
}
3230
3270
}
3231
3271
@@ -5591,4 +5631,4 @@ public struct RUMTelemetryOperatingSystem: Codable {
5591
5631
}
5592
5632
}
5593
5633
5594
- // Generated from https://github.com/DataDog/rum-events-format/tree/69147431d689b3e59bff87e15bb0088a9bb319a9
5634
+ // Generated from https://github.com/DataDog/rum-events-format/tree/45a80c1390b8ec886534f5f1b43763a6d9d0a643
0 commit comments