Skip to content

Commit

Permalink
add delivery type property (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanGaignault authored Nov 28, 2024
1 parent 8beec7c commit bbecebd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/cjs/generated/rum.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
4 changes: 4 additions & 0 deletions lib/esm/generated/rum.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
3 changes: 2 additions & 1 deletion samples/rum-events/resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions schemas/rum/resource-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit bbecebd

Please sign in to comment.