diff --git a/lib/cjs/generated/rum.d.ts b/lib/cjs/generated/rum.d.ts index 8ee6fef9..c4a267e5 100644 --- a/lib/cjs/generated/rum.d.ts +++ b/lib/cjs/generated/rum.d.ts @@ -1146,11 +1146,15 @@ export declare type RumVitalEvent = CommonProperties & ViewContainerSchema & { /** * Type of the vital */ - readonly type: 'duration'; + readonly type: 'duration' | 'step'; /** * UUID of the vital */ readonly id: string; + /** + * UUID for linking the step vital to the parent event, if applicable + */ + readonly parent_id?: string; /** * Name of the vital, as it is also used as facet path for its value, it must contain only letters, digits, or the characters - _ . @ $ */ @@ -1169,6 +1173,14 @@ export declare type RumVitalEvent = CommonProperties & ViewContainerSchema & { readonly custom?: { [k: string]: number; }; + /** + * Type of the step that triggered the vital, if applicable + */ + readonly step_type?: 'start' | 'update' | 'retry' | 'end'; + /** + * Reason for the failure of the step, if applicable + */ + readonly failure_reason?: 'error' | 'abandoned' | 'other'; [k: string]: unknown; }; /** diff --git a/lib/esm/generated/rum.d.ts b/lib/esm/generated/rum.d.ts index 8ee6fef9..c4a267e5 100644 --- a/lib/esm/generated/rum.d.ts +++ b/lib/esm/generated/rum.d.ts @@ -1146,11 +1146,15 @@ export declare type RumVitalEvent = CommonProperties & ViewContainerSchema & { /** * Type of the vital */ - readonly type: 'duration'; + readonly type: 'duration' | 'step'; /** * UUID of the vital */ readonly id: string; + /** + * UUID for linking the step vital to the parent event, if applicable + */ + readonly parent_id?: string; /** * Name of the vital, as it is also used as facet path for its value, it must contain only letters, digits, or the characters - _ . @ $ */ @@ -1169,6 +1173,14 @@ export declare type RumVitalEvent = CommonProperties & ViewContainerSchema & { readonly custom?: { [k: string]: number; }; + /** + * Type of the step that triggered the vital, if applicable + */ + readonly step_type?: 'start' | 'update' | 'retry' | 'end'; + /** + * Reason for the failure of the step, if applicable + */ + readonly failure_reason?: 'error' | 'abandoned' | 'other'; [k: string]: unknown; }; /** diff --git a/schemas/rum/vital-schema.json b/schemas/rum/vital-schema.json index 300cd50c..d2dd15be 100644 --- a/schemas/rum/vital-schema.json +++ b/schemas/rum/vital-schema.json @@ -28,7 +28,7 @@ "type": { "type": "string", "description": "Type of the vital", - "enum": ["duration"], + "enum": ["duration", "step"], "readOnly": true }, "id": { @@ -37,6 +37,12 @@ "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$", "readOnly": true }, + "parent_id": { + "type": "string", + "description": "UUID for linking the step vital to the parent event, if applicable", + "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$", + "readOnly": true + }, "name": { "type": "string", "description": "Name of the vital, as it is also used as facet path for its value, it must contain only letters, digits, or the characters - _ . @ $", @@ -61,6 +67,18 @@ "readOnly": true }, "readOnly": true + }, + "step_type": { + "type": "string", + "description": "Type of the step that triggered the vital, if applicable", + "enum": ["start", "update", "retry", "end"], + "readOnly": true + }, + "failure_reason": { + "type": "string", + "description": "Reason for the failure of the step, if applicable", + "enum": ["error", "abandoned", "other"], + "readOnly": true } }, "readOnly": true