Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion lib/cjs/generated/rum.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 - _ . @ $
*/
Expand All @@ -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;
};
/**
Expand Down
14 changes: 13 additions & 1 deletion lib/esm/generated/rum.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 - _ . @ $
*/
Expand All @@ -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;
};
/**
Expand Down
20 changes: 19 additions & 1 deletion schemas/rum/vital-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"type": {
"type": "string",
"description": "Type of the vital",
"enum": ["duration"],
"enum": ["duration", "step"],
"readOnly": true
},
"id": {
Expand All @@ -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 - _ . @ $",
Expand All @@ -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
Expand Down