From 835a6d9c594dadeb7519d99b695bc7346aecac93 Mon Sep 17 00:00:00 2001 From: "roman.gaignault" Date: Thu, 28 Nov 2024 12:30:22 +0100 Subject: [PATCH] add delivery type property --- lib/cjs/generated/rum.d.ts | 4 ++++ lib/esm/generated/rum.d.ts | 4 ++++ samples/rum-events/resource.json | 3 ++- schemas/rum/resource-schema.json | 6 ++++++ 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/lib/cjs/generated/rum.d.ts b/lib/cjs/generated/rum.d.ts index 8031224..14e0e7e 100644 --- a/lib/cjs/generated/rum.d.ts +++ b/lib/cjs/generated/rum.d.ts @@ -669,6 +669,10 @@ export declare type RumResourceEvent = CommonProperties & ActionChildProperties * Network protocol used to fetch the resource (e.g., 'http/1.1', 'h2') */ readonly protocol?: string; + /** + * Delivery type of the resource + */ + readonly delivery_type?: 'cache' | 'navigational-prefetch' | 'other'; /** * The provider for this resource */ diff --git a/lib/esm/generated/rum.d.ts b/lib/esm/generated/rum.d.ts index 8031224..14e0e7e 100644 --- a/lib/esm/generated/rum.d.ts +++ b/lib/esm/generated/rum.d.ts @@ -669,6 +669,10 @@ export declare type RumResourceEvent = CommonProperties & ActionChildProperties * Network protocol used to fetch the resource (e.g., 'http/1.1', 'h2') */ readonly protocol?: string; + /** + * Delivery type of the resource + */ + readonly delivery_type?: 'cache' | 'navigational-prefetch' | 'other'; /** * The provider for this resource */ diff --git a/samples/rum-events/resource.json b/samples/rum-events/resource.json index f515fda..c1c1f23 100644 --- a/samples/rum-events/resource.json +++ b/samples/rum-events/resource.json @@ -38,7 +38,8 @@ "duration": 157090000, "start": 88945000 }, - "protocol": "HTTP/1.1" + "protocol": "HTTP/1.1", + "delivery_type": "cache" }, "action": { "id": "ae3a5d82-cdd1-468d-9bc9-3aa9e54d953c" diff --git a/schemas/rum/resource-schema.json b/schemas/rum/resource-schema.json index 09b0bee..5af2bf0 100644 --- a/schemas/rum/resource-schema.json +++ b/schemas/rum/resource-schema.json @@ -238,6 +238,12 @@ "description": "Network protocol used to fetch the resource (e.g., 'http/1.1', 'h2')", "readOnly": true }, + "delivery_type": { + "type": "string", + "description": "Delivery type of the resource", + "enum": ["cache", "navigational-prefetch", "other"], + "readOnly": true + }, "provider": { "type": "object", "description": "The provider for this resource",