Skip to content

Commit 8a3f795

Browse files
RUM-17207 Add local_cache_hit field to resource event schema (#412)
RUM-17207 Add local_cache_hit field to resource event schema RUM-17207 Simplify local_cache_hit field description Co-authored-by: barbora.plasovska <barbora.plasovska@datadoghq.com>
1 parent d2f86df commit 8a3f795

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

lib/cjs/generated/rum.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,10 @@ export type RumResourceEvent = CommonProperties & ActionChildProperties & ViewCo
778778
* Delivery type of the resource
779779
*/
780780
readonly delivery_type?: 'cache' | 'navigational-prefetch' | 'other';
781+
/**
782+
* Whether the resource was served from the device's local cache
783+
*/
784+
readonly local_cache_hit?: boolean;
781785
/**
782786
* The provider for this resource
783787
*/

lib/esm/generated/rum.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,10 @@ export type RumResourceEvent = CommonProperties & ActionChildProperties & ViewCo
778778
* Delivery type of the resource
779779
*/
780780
readonly delivery_type?: 'cache' | 'navigational-prefetch' | 'other';
781+
/**
782+
* Whether the resource was served from the device's local cache
783+
*/
784+
readonly local_cache_hit?: boolean;
781785
/**
782786
* The provider for this resource
783787
*/

schemas/rum/resource-schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,11 @@
244244
"enum": ["cache", "navigational-prefetch", "other"],
245245
"readOnly": true
246246
},
247+
"local_cache_hit": {
248+
"type": "boolean",
249+
"description": "Whether the resource was served from the device's local cache",
250+
"readOnly": true
251+
},
247252
"provider": {
248253
"type": "object",
249254
"description": "The provider for this resource",

0 commit comments

Comments
 (0)