Skip to content

Commit 8a17ecd

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0f68111 of spec repo
1 parent d28871f commit 8a17ecd

38 files changed

Lines changed: 3568 additions & 0 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 789 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* Get replay analysis issue returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.getReplayAnalysisIssue"] = true;
9+
const apiInstance = new v2.RumReplayAnalysisApi(configuration);
10+
11+
const params: v2.RumReplayAnalysisApiGetReplayAnalysisIssueRequest = {
12+
issueId: "00000000-0000-0000-0000-000000000001",
13+
};
14+
15+
apiInstance
16+
.getReplayAnalysisIssue(params)
17+
.then((data: v2.ReplayAnalysisIssueResponse) => {
18+
console.log(
19+
"API called successfully. Returned data: " + JSON.stringify(data)
20+
);
21+
})
22+
.catch((error: any) => console.error(error));
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* List replay analysis issue sessions returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.listReplayAnalysisIssueSessions"] = true;
9+
const apiInstance = new v2.RumReplayAnalysisApi(configuration);
10+
11+
const params: v2.RumReplayAnalysisApiListReplayAnalysisIssueSessionsRequest = {
12+
issueId: "00000000-0000-0000-0000-000000000001",
13+
};
14+
15+
apiInstance
16+
.listReplayAnalysisIssueSessions(params)
17+
.then((data: v2.ReplayAnalysisIssueSessionsResponse) => {
18+
console.log(
19+
"API called successfully. Returned data: " + JSON.stringify(data)
20+
);
21+
})
22+
.catch((error: any) => console.error(error));
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* List replay analysis issues returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.listReplayAnalysisIssues"] = true;
9+
const apiInstance = new v2.RumReplayAnalysisApi(configuration);
10+
11+
apiInstance
12+
.listReplayAnalysisIssues()
13+
.then((data: v2.ReplayAnalysisIssuesResponse) => {
14+
console.log(
15+
"API called successfully. Returned data: " + JSON.stringify(data)
16+
);
17+
})
18+
.catch((error: any) => console.error(error));
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* Generate replay summary returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.generateReplaySummary"] = true;
9+
const apiInstance = new v2.RumReplayApi(configuration);
10+
11+
const params: v2.RumReplayApiGenerateReplaySummaryRequest = {
12+
body: {
13+
data: {
14+
type: "replay_summary_request",
15+
},
16+
},
17+
sessionId: "00000000-0000-0000-0000-000000000001",
18+
dataSource: "rum",
19+
};
20+
21+
apiInstance
22+
.generateReplaySummary(params)
23+
.then((data: v2.ReplaySummaryResponse) => {
24+
console.log(
25+
"API called successfully. Returned data: " + JSON.stringify(data)
26+
);
27+
})
28+
.catch((error: any) => console.error(error));

features/support/scenarios_model_mapping.ts

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10571,6 +10571,63 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
1057110571
},
1057210572
"operationResponseType": "CloudWorkloadSecurityAgentRuleResponse",
1057310573
},
10574+
"v2.ListReplayAnalysisIssues": {
10575+
"filterApplicationId": {
10576+
"type": "string",
10577+
"format": "",
10578+
},
10579+
"filterSeverity": {
10580+
"type": "string",
10581+
"format": "",
10582+
},
10583+
"filterViewName": {
10584+
"type": "string",
10585+
"format": "",
10586+
},
10587+
"filterIssueCategory": {
10588+
"type": "string",
10589+
"format": "",
10590+
},
10591+
"sort": {
10592+
"type": "string",
10593+
"format": "",
10594+
},
10595+
"pageNumber": {
10596+
"type": "number",
10597+
"format": "",
10598+
},
10599+
"pageSize": {
10600+
"type": "number",
10601+
"format": "",
10602+
},
10603+
"operationResponseType": "ReplayAnalysisIssuesResponse",
10604+
},
10605+
"v2.GetReplayAnalysisIssue": {
10606+
"issueId": {
10607+
"type": "string",
10608+
"format": "",
10609+
},
10610+
"operationResponseType": "ReplayAnalysisIssueResponse",
10611+
},
10612+
"v2.ListReplayAnalysisIssueSessions": {
10613+
"issueId": {
10614+
"type": "string",
10615+
"format": "",
10616+
},
10617+
"sort": {
10618+
"type": "string",
10619+
"format": "",
10620+
},
10621+
"pageNumber": {
10622+
"type": "number",
10623+
"format": "",
10624+
},
10625+
"pageSize": {
10626+
"type": "number",
10627+
"format": "",
10628+
},
10629+
"operationResponseType": "ReplayAnalysisIssueSessionsResponse",
10630+
},
1057410631
"v2.ListReplayHeatmapSnapshots": {
1057510632
"filterDeviceType": {
1057610633
"type": "string",
@@ -10615,6 +10672,25 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
1061510672
},
1061610673
"operationResponseType": "Snapshot",
1061710674
},
10675+
"v2.GenerateReplaySummary": {
10676+
"sessionId": {
10677+
"type": "string",
10678+
"format": "",
10679+
},
10680+
"dataSource": {
10681+
"type": "string",
10682+
"format": "",
10683+
},
10684+
"ts": {
10685+
"type": "number",
10686+
"format": "int64",
10687+
},
10688+
"body": {
10689+
"type": "ReplaySummaryRequest",
10690+
"format": "",
10691+
},
10692+
"operationResponseType": "ReplaySummaryResponse",
10693+
},
1061810694
"v2.GetRestrictionPolicy": {
1061910695
"resourceId": {
1062010696
"type": "string",

features/v2/rum_replay.feature

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
@endpoint(rum-replay) @endpoint(rum-replay-v2)
2+
Feature: Rum Replay
3+
Generate and retrieve AI-powered summaries of RUM replay sessions.
4+
5+
Background:
6+
Given a valid "apiKeyAuth" key in the system
7+
And a valid "appKeyAuth" key in the system
8+
And an instance of "RumReplay" API
9+
And operation "GenerateReplaySummary" enabled
10+
And new "GenerateReplaySummary" request
11+
And body with value {"data": {"type": "replay_summary_request"}}
12+
13+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
14+
Scenario: Generate replay summary returns "Bad Request" response
15+
Given request contains "session_id" parameter from "REPLACE.ME"
16+
And request contains "data_source" parameter from "REPLACE.ME"
17+
When the request is sent
18+
Then the response status is 400 Bad Request
19+
20+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
21+
Scenario: Generate replay summary returns "Not Found" response
22+
Given request contains "session_id" parameter from "REPLACE.ME"
23+
And request contains "data_source" parameter from "REPLACE.ME"
24+
When the request is sent
25+
Then the response status is 404 Not Found
26+
27+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
28+
Scenario: Generate replay summary returns "OK" response
29+
Given request contains "session_id" parameter from "REPLACE.ME"
30+
And request contains "data_source" parameter from "REPLACE.ME"
31+
When the request is sent
32+
Then the response status is 200 OK
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
@endpoint(rum-replay-analysis) @endpoint(rum-replay-analysis-v2)
2+
Feature: Rum Replay Analysis
3+
Analyze RUM replay sessions to identify and investigate user-facing
4+
issues. Retrieve issues detected by AI analysis, get details for
5+
individual issues, and explore the sessions associated with each issue.
6+
7+
Background:
8+
Given a valid "apiKeyAuth" key in the system
9+
And a valid "appKeyAuth" key in the system
10+
And an instance of "RumReplayAnalysis" API
11+
12+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
13+
Scenario: Get replay analysis issue returns "Bad Request" response
14+
Given operation "GetReplayAnalysisIssue" enabled
15+
And new "GetReplayAnalysisIssue" request
16+
And request contains "issue_id" parameter from "REPLACE.ME"
17+
When the request is sent
18+
Then the response status is 400 Bad Request
19+
20+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
21+
Scenario: Get replay analysis issue returns "Not Found" response
22+
Given operation "GetReplayAnalysisIssue" enabled
23+
And new "GetReplayAnalysisIssue" request
24+
And request contains "issue_id" parameter from "REPLACE.ME"
25+
When the request is sent
26+
Then the response status is 404 Not Found
27+
28+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
29+
Scenario: Get replay analysis issue returns "OK" response
30+
Given operation "GetReplayAnalysisIssue" enabled
31+
And new "GetReplayAnalysisIssue" request
32+
And request contains "issue_id" parameter from "REPLACE.ME"
33+
When the request is sent
34+
Then the response status is 200 OK
35+
36+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
37+
Scenario: List replay analysis issue sessions returns "Bad Request" response
38+
Given operation "ListReplayAnalysisIssueSessions" enabled
39+
And new "ListReplayAnalysisIssueSessions" request
40+
And request contains "issue_id" parameter from "REPLACE.ME"
41+
When the request is sent
42+
Then the response status is 400 Bad Request
43+
44+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
45+
Scenario: List replay analysis issue sessions returns "Not Found" response
46+
Given operation "ListReplayAnalysisIssueSessions" enabled
47+
And new "ListReplayAnalysisIssueSessions" request
48+
And request contains "issue_id" parameter from "REPLACE.ME"
49+
When the request is sent
50+
Then the response status is 404 Not Found
51+
52+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
53+
Scenario: List replay analysis issue sessions returns "OK" response
54+
Given operation "ListReplayAnalysisIssueSessions" enabled
55+
And new "ListReplayAnalysisIssueSessions" request
56+
And request contains "issue_id" parameter from "REPLACE.ME"
57+
When the request is sent
58+
Then the response status is 200 OK
59+
60+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
61+
Scenario: List replay analysis issues returns "Bad Request" response
62+
Given operation "ListReplayAnalysisIssues" enabled
63+
And new "ListReplayAnalysisIssues" request
64+
When the request is sent
65+
Then the response status is 400 Bad Request
66+
67+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
68+
Scenario: List replay analysis issues returns "OK" response
69+
Given operation "ListReplayAnalysisIssues" enabled
70+
And new "ListReplayAnalysisIssues" request
71+
When the request is sent
72+
Then the response status is 200 OK

features/v2/undo.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4786,6 +4786,24 @@
47864786
"type": "idempotent"
47874787
}
47884788
},
4789+
"ListReplayAnalysisIssues": {
4790+
"tag": "Rum Replay Analysis",
4791+
"undo": {
4792+
"type": "safe"
4793+
}
4794+
},
4795+
"GetReplayAnalysisIssue": {
4796+
"tag": "Rum Replay Analysis",
4797+
"undo": {
4798+
"type": "safe"
4799+
}
4800+
},
4801+
"ListReplayAnalysisIssueSessions": {
4802+
"tag": "Rum Replay Analysis",
4803+
"undo": {
4804+
"type": "safe"
4805+
}
4806+
},
47894807
"ListReplayHeatmapSnapshots": {
47904808
"tag": "Rum Replay Heatmaps",
47914809
"undo": {
@@ -4817,6 +4835,12 @@
48174835
"type": "idempotent"
48184836
}
48194837
},
4838+
"GenerateReplaySummary": {
4839+
"tag": "Rum Replay",
4840+
"undo": {
4841+
"type": "idempotent"
4842+
}
4843+
},
48204844
"DeleteRestrictionPolicy": {
48214845
"tag": "Restriction Policies",
48224846
"undo": {

packages/datadog-api-client-common/configuration.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,10 @@ export function createConfiguration(
467467
"v2.queryEventFilteredUsers": false,
468468
"v2.queryUsers": false,
469469
"v2.updateConnection": false,
470+
"v2.getReplayAnalysisIssue": false,
471+
"v2.listReplayAnalysisIssues": false,
472+
"v2.listReplayAnalysisIssueSessions": false,
473+
"v2.generateReplaySummary": false,
470474
"v2.createScorecardOutcomesBatch": false,
471475
"v2.listEntityRiskScores": false,
472476
"v2.createIncidentService": false,

0 commit comments

Comments
 (0)