Skip to content

Commit 20f414a

Browse files
Add start-action, stop-action, start-resource, stop-resource to browser features schema (#358)
Add start-action, stop-action, start-resource, stop-resource to browser features schema Co-authored-by: beltran.bulbarella <beltran.bulbarella@datadoghq.com>
1 parent 65f7e65 commit 20f414a

3 files changed

Lines changed: 102 additions & 2 deletions

File tree

lib/cjs/generated/telemetry.d.ts

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ export type TelemetryCommonFeaturesUsage = SetTrackingConsent | StopSession | St
495495
/**
496496
* Schema of browser specific features usage
497497
*/
498-
export type TelemetryBrowserFeaturesUsage = StartSessionReplayRecording | StartDurationVital | StopDurationVital | AddDurationVital;
498+
export type TelemetryBrowserFeaturesUsage = StartSessionReplayRecording | StartDurationVital | StopDurationVital | AddDurationVital | StartAction | StopAction | StartResource | StopResource;
499499
/**
500500
* Schema of mobile specific features usage
501501
*/
@@ -864,6 +864,34 @@ export interface AddDurationVital {
864864
feature: 'add-duration-vital';
865865
[k: string]: unknown;
866866
}
867+
export interface StartAction {
868+
/**
869+
* startAction API
870+
*/
871+
feature: 'start-action';
872+
[k: string]: unknown;
873+
}
874+
export interface StopAction {
875+
/**
876+
* stopAction API
877+
*/
878+
feature: 'stop-action';
879+
[k: string]: unknown;
880+
}
881+
export interface StartResource {
882+
/**
883+
* startResource API
884+
*/
885+
feature: 'start-resource';
886+
[k: string]: unknown;
887+
}
888+
export interface StopResource {
889+
/**
890+
* stopResource API
891+
*/
892+
feature: 'stop-resource';
893+
[k: string]: unknown;
894+
}
867895
export interface AddViewLoadingTime {
868896
/**
869897
* addViewLoadingTime API

lib/esm/generated/telemetry.d.ts

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ export type TelemetryCommonFeaturesUsage = SetTrackingConsent | StopSession | St
495495
/**
496496
* Schema of browser specific features usage
497497
*/
498-
export type TelemetryBrowserFeaturesUsage = StartSessionReplayRecording | StartDurationVital | StopDurationVital | AddDurationVital;
498+
export type TelemetryBrowserFeaturesUsage = StartSessionReplayRecording | StartDurationVital | StopDurationVital | AddDurationVital | StartAction | StopAction | StartResource | StopResource;
499499
/**
500500
* Schema of mobile specific features usage
501501
*/
@@ -864,6 +864,34 @@ export interface AddDurationVital {
864864
feature: 'add-duration-vital';
865865
[k: string]: unknown;
866866
}
867+
export interface StartAction {
868+
/**
869+
* startAction API
870+
*/
871+
feature: 'start-action';
872+
[k: string]: unknown;
873+
}
874+
export interface StopAction {
875+
/**
876+
* stopAction API
877+
*/
878+
feature: 'stop-action';
879+
[k: string]: unknown;
880+
}
881+
export interface StartResource {
882+
/**
883+
* startResource API
884+
*/
885+
feature: 'start-resource';
886+
[k: string]: unknown;
887+
}
888+
export interface StopResource {
889+
/**
890+
* stopResource API
891+
*/
892+
feature: 'stop-resource';
893+
[k: string]: unknown;
894+
}
867895
export interface AddViewLoadingTime {
868896
/**
869897
* addViewLoadingTime API

schemas/telemetry/usage/browser-features-schema.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,50 @@
5252
"const": "add-duration-vital"
5353
}
5454
}
55+
},
56+
{
57+
"required": ["feature"],
58+
"title": "StartAction",
59+
"properties": {
60+
"feature": {
61+
"type": "string",
62+
"description": "startAction API",
63+
"const": "start-action"
64+
}
65+
}
66+
},
67+
{
68+
"required": ["feature"],
69+
"title": "StopAction",
70+
"properties": {
71+
"feature": {
72+
"type": "string",
73+
"description": "stopAction API",
74+
"const": "stop-action"
75+
}
76+
}
77+
},
78+
{
79+
"required": ["feature"],
80+
"title": "StartResource",
81+
"properties": {
82+
"feature": {
83+
"type": "string",
84+
"description": "startResource API",
85+
"const": "start-resource"
86+
}
87+
}
88+
},
89+
{
90+
"required": ["feature"],
91+
"title": "StopResource",
92+
"properties": {
93+
"feature": {
94+
"type": "string",
95+
"description": "stopResource API",
96+
"const": "stop-resource"
97+
}
98+
}
5599
}
56100
]
57101
}

0 commit comments

Comments
 (0)