Skip to content

Commit c830e3a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 7a96be5 of spec repo
1 parent d2f5513 commit c830e3a

File tree

5 files changed

+64
-56
lines changed

5 files changed

+64
-56
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74529,9 +74529,13 @@ paths:
7452974529
- apiKeyAuth: []
7453074530
appKeyAuth: []
7453174531
- AuthZ: []
74532-
summary: Get the schedule on-call user
74532+
summary: Get scheduled on-call user
7453374533
tags:
7453474534
- On-Call
74535+
x-permission:
74536+
operator: AND
74537+
permissions:
74538+
- on_call_read
7453574539
/api/v2/on-call/teams/{team_id}/on-call:
7453674540
get:
7453774541
description: Get a team's on-call users at a given time
@@ -74574,6 +74578,10 @@ paths:
7457474578
summary: Get team on-call users
7457574579
tags:
7457674580
- On-Call
74581+
x-permission:
74582+
operator: AND
74583+
permissions:
74584+
- on_call_read
7457774585
/api/v2/on-call/teams/{team_id}/routing-rules:
7457874586
get:
7457974587
description: Get a team's On-Call routing rules
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2025-12-04T08:50:18.341Z"
Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"log": {
3-
"_recordingName": "On-Call/Get the schedule on-call user returns \"OK\" response",
3+
"_recordingName": "On-Call/Get scheduled on-call user returns \"OK\" response",
44
"creator": {
55
"comment": "persister:fs",
66
"name": "Polly.JS",
77
"version": "6.0.5"
88
},
99
"entries": [
1010
{
11-
"_id": "f2592e5f27684cf1127ffb6994dbb296",
11+
"_id": "94c1212286d9d81a8df365a101f4f930",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 151,
15+
"bodySize": 148,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"email\":\"Test-Get_the_schedule_on_call_user_returns_OK_response-1764252707@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"email\":\"Test-Get_scheduled_on_call_user_returns_OK_response-1764838218@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/users"
3939
},
4040
"response": {
41-
"bodySize": 726,
41+
"bodySize": 720,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 726,
45-
"text": "{\"data\":{\"type\":\"users\",\"id\":\"030e767a-cb9b-11f0-8fcd-5ac0b02adf59\",\"attributes\":{\"name\":null,\"handle\":\"test-get_the_schedule_on_call_user_returns_ok_response-1764252707@datadoghq.com\",\"created_at\":\"2025-11-27T14:11:48.013486+00:00\",\"modified_at\":\"2025-11-27T14:11:48.013486+00:00\",\"email\":\"test-get_the_schedule_on_call_user_returns_ok_response-1764252707@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/a9e8940d153698e24c0b29024875d46f?s=48&d=retro\",\"title\":\"user title\",\"verified\":false,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Pending\",\"last_login_time\":null},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n"
44+
"size": 720,
45+
"text": "{\"data\":{\"type\":\"users\",\"id\":\"42e2447f-d0ee-11f0-b246-f6a778e5e220\",\"attributes\":{\"name\":null,\"handle\":\"test-get_scheduled_on_call_user_returns_ok_response-1764838218@datadoghq.com\",\"created_at\":\"2025-12-04T08:50:19.140471+00:00\",\"modified_at\":\"2025-12-04T08:50:19.140471+00:00\",\"email\":\"test-get_scheduled_on_call_user_returns_ok_response-1764838218@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/6a6c3614a2758d626d4fcde0e9727205?s=48&d=retro\",\"title\":\"user title\",\"verified\":false,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Pending\",\"last_login_time\":null},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,15 +57,15 @@
5757
"status": 201,
5858
"statusText": "Created"
5959
},
60-
"startedDateTime": "2025-11-27T14:11:47.635Z",
61-
"time": 469
60+
"startedDateTime": "2025-12-04T08:50:18.955Z",
61+
"time": 227
6262
},
6363
{
64-
"_id": "5dfe96b65e236697ab1126519ef0bf70",
64+
"_id": "94e1f56ac98fc6306b9f3b7477ed2f85",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
68-
"bodySize": 598,
68+
"bodySize": 595,
6969
"cookies": [],
7070
"headers": [
7171
{
@@ -85,17 +85,17 @@
8585
"postData": {
8686
"mimeType": "application/json",
8787
"params": [],
88-
"text": "{\"data\":{\"attributes\":{\"layers\":[{\"effective_date\":\"2025-11-17T14:11:47.631Z\",\"end_date\":\"2025-12-07T14:11:47.631Z\",\"interval\":{\"days\":1},\"members\":[{\"user\":{\"id\":\"030e767a-cb9b-11f0-8fcd-5ac0b02adf59\"}}],\"name\":\"Layer 1\",\"restrictions\":[{\"end_day\":\"friday\",\"end_time\":\"17:00:00\",\"start_day\":\"monday\",\"start_time\":\"09:00:00\"}],\"rotation_start\":\"2025-11-22T14:11:47.631Z\"}],\"name\":\"Test-Get_the_schedule_on_call_user_returns_OK_response-1764252707\",\"time_zone\":\"America/New_York\"},\"relationships\":{\"teams\":{\"data\":[{\"id\":\"65aea9d0-941c-4607-bf8a-14fc0dac2820\",\"type\":\"teams\"}]}},\"type\":\"schedules\"}}"
88+
"text": "{\"data\":{\"attributes\":{\"layers\":[{\"effective_date\":\"2025-11-24T08:50:18.341Z\",\"end_date\":\"2025-12-14T08:50:18.341Z\",\"interval\":{\"days\":1},\"members\":[{\"user\":{\"id\":\"42e2447f-d0ee-11f0-b246-f6a778e5e220\"}}],\"name\":\"Layer 1\",\"restrictions\":[{\"end_day\":\"friday\",\"end_time\":\"17:00:00\",\"start_day\":\"monday\",\"start_time\":\"09:00:00\"}],\"rotation_start\":\"2025-11-29T08:50:18.341Z\"}],\"name\":\"Test-Get_scheduled_on_call_user_returns_OK_response-1764838218\",\"time_zone\":\"America/New_York\"},\"relationships\":{\"teams\":{\"data\":[{\"id\":\"65aea9d0-941c-4607-bf8a-14fc0dac2820\",\"type\":\"teams\"}]}},\"type\":\"schedules\"}}"
8989
},
9090
"queryString": [],
9191
"url": "https://api.datadoghq.com/api/v2/on-call/schedules"
9292
},
9393
"response": {
94-
"bodySize": 374,
94+
"bodySize": 371,
9595
"content": {
9696
"mimeType": "application/vnd.api+json",
97-
"size": 374,
98-
"text": "{\"data\":{\"id\":\"93a33505-71dc-4be4-a55d-95eb23b6b400\",\"type\":\"schedules\",\"attributes\":{\"name\":\"Test-Get_the_schedule_on_call_user_returns_OK_response-1764252707\",\"time_zone\":\"America/New_York\"},\"relationships\":{\"layers\":{\"data\":[{\"id\":\"c9addf6a-059c-4b07-aced-a2c287fd969f\",\"type\":\"layers\"}]},\"teams\":{\"data\":[{\"id\":\"65aea9d0-941c-4607-bf8a-14fc0dac2820\",\"type\":\"teams\"}]}}}}"
97+
"size": 371,
98+
"text": "{\"data\":{\"id\":\"7f4eb086-4141-4f2a-ae4a-c0a06816672b\",\"type\":\"schedules\",\"attributes\":{\"name\":\"Test-Get_scheduled_on_call_user_returns_OK_response-1764838218\",\"time_zone\":\"America/New_York\"},\"relationships\":{\"layers\":{\"data\":[{\"id\":\"ad5985ec-b9e0-4dc7-aff9-a7bb75fc334f\",\"type\":\"layers\"}]},\"teams\":{\"data\":[{\"id\":\"65aea9d0-941c-4607-bf8a-14fc0dac2820\",\"type\":\"teams\"}]}}}}"
9999
},
100100
"cookies": [],
101101
"headers": [
@@ -110,11 +110,11 @@
110110
"status": 201,
111111
"statusText": "Created"
112112
},
113-
"startedDateTime": "2025-11-27T14:11:48.111Z",
114-
"time": 440
113+
"startedDateTime": "2025-12-04T08:50:19.199Z",
114+
"time": 91
115115
},
116116
{
117-
"_id": "39e441da955dc16cd1e693330774196f",
117+
"_id": "3d755a0b81d9c638d625c047ff5eca6f",
118118
"_order": 0,
119119
"cache": {},
120120
"request": {
@@ -131,14 +131,14 @@
131131
"httpVersion": "HTTP/1.1",
132132
"method": "GET",
133133
"queryString": [],
134-
"url": "https://api.datadoghq.com/api/v2/on-call/schedules/93a33505-71dc-4be4-a55d-95eb23b6b400/on-call"
134+
"url": "https://api.datadoghq.com/api/v2/on-call/schedules/7f4eb086-4141-4f2a-ae4a-c0a06816672b/on-call"
135135
},
136136
"response": {
137-
"bodySize": 308,
137+
"bodySize": 309,
138138
"content": {
139139
"mimeType": "application/vnd.api+json",
140-
"size": 308,
141-
"text": "{\"data\":{\"id\":\"030e767a-cb9b-11f0-8fcd-5ac0b02adf59-2025-11-27T09:11:48-05:00-2025-11-28T09:11:47-05:00\",\"type\":\"shifts\",\"attributes\":{\"end\":\"2025-11-28T09:11:47-05:00\",\"start\":\"2025-11-27T09:11:48.47496-05:00\"},\"relationships\":{\"user\":{\"data\":{\"id\":\"030e767a-cb9b-11f0-8fcd-5ac0b02adf59\",\"type\":\"users\"}}}}}"
140+
"size": 309,
141+
"text": "{\"data\":{\"id\":\"42e2447f-d0ee-11f0-b246-f6a778e5e220-2025-12-04T03:50:19-05:00-2025-12-05T03:50:18-05:00\",\"type\":\"shifts\",\"attributes\":{\"end\":\"2025-12-05T03:50:18-05:00\",\"start\":\"2025-12-04T03:50:19.261184-05:00\"},\"relationships\":{\"user\":{\"data\":{\"id\":\"42e2447f-d0ee-11f0-b246-f6a778e5e220\",\"type\":\"users\"}}}}}"
142142
},
143143
"cookies": [],
144144
"headers": [
@@ -153,11 +153,11 @@
153153
"status": 200,
154154
"statusText": "OK"
155155
},
156-
"startedDateTime": "2025-11-27T14:11:48.560Z",
157-
"time": 389
156+
"startedDateTime": "2025-12-04T08:50:19.296Z",
157+
"time": 69
158158
},
159159
{
160-
"_id": "0d43106dea02c4f7744b6acdce88d57a",
160+
"_id": "75c49194b87b768e31c23a8fd7da31c3",
161161
"_order": 0,
162162
"cache": {},
163163
"request": {
@@ -174,7 +174,7 @@
174174
"httpVersion": "HTTP/1.1",
175175
"method": "DELETE",
176176
"queryString": [],
177-
"url": "https://api.datadoghq.com/api/v2/on-call/schedules/93a33505-71dc-4be4-a55d-95eb23b6b400"
177+
"url": "https://api.datadoghq.com/api/v2/on-call/schedules/7f4eb086-4141-4f2a-ae4a-c0a06816672b"
178178
},
179179
"response": {
180180
"bodySize": 0,
@@ -190,11 +190,11 @@
190190
"status": 204,
191191
"statusText": "No Content"
192192
},
193-
"startedDateTime": "2025-11-27T14:11:48.958Z",
194-
"time": 427
193+
"startedDateTime": "2025-12-04T08:50:19.371Z",
194+
"time": 110
195195
},
196196
{
197-
"_id": "818bd98d114a84cedad8501f35d2e638",
197+
"_id": "0f7fe3dfb82d7fdd80edc05c9e77238c",
198198
"_order": 0,
199199
"cache": {},
200200
"request": {
@@ -211,7 +211,7 @@
211211
"httpVersion": "HTTP/1.1",
212212
"method": "DELETE",
213213
"queryString": [],
214-
"url": "https://api.datadoghq.com/api/v2/users/030e767a-cb9b-11f0-8fcd-5ac0b02adf59"
214+
"url": "https://api.datadoghq.com/api/v2/users/42e2447f-d0ee-11f0-b246-f6a778e5e220"
215215
},
216216
"response": {
217217
"bodySize": 0,
@@ -227,8 +227,8 @@
227227
"status": 204,
228228
"statusText": "No Content"
229229
},
230-
"startedDateTime": "2025-11-27T14:11:49.391Z",
231-
"time": 562
230+
"startedDateTime": "2025-12-04T08:50:19.483Z",
231+
"time": 240
232232
}
233233
],
234234
"pages": [],

cassettes/v2/On-Call_446749911/Get-the-schedule-on-call-user-returns-OK-response_4196899322/frozen.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

features/v2/on-call.feature

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -127,52 +127,52 @@ Feature: On-Call
127127
Then the response status is 200 OK
128128

129129
@generated @skip @team:DataDog/on-call
130-
Scenario: Get team on-call users returns "Bad Request" response
131-
Given new "GetTeamOnCallUsers" request
132-
And request contains "team_id" parameter from "REPLACE.ME"
130+
Scenario: Get scheduled on-call user returns "Bad Request" response
131+
Given new "GetScheduleOnCallUser" request
132+
And request contains "schedule_id" parameter from "REPLACE.ME"
133133
When the request is sent
134134
Then the response status is 400 Bad Request
135135

136136
@generated @skip @team:DataDog/on-call
137-
Scenario: Get team on-call users returns "Not Found" response
138-
Given new "GetTeamOnCallUsers" request
139-
And request contains "team_id" parameter from "REPLACE.ME"
137+
Scenario: Get scheduled on-call user returns "Not Found" response
138+
Given new "GetScheduleOnCallUser" request
139+
And request contains "schedule_id" parameter from "REPLACE.ME"
140140
When the request is sent
141141
Then the response status is 404 Not Found
142142

143143
@team:DataDog/on-call
144-
Scenario: Get team on-call users returns "OK" response
145-
Given new "GetTeamOnCallUsers" request
144+
Scenario: Get scheduled on-call user returns "OK" response
145+
Given new "GetScheduleOnCallUser" request
146146
And there is a valid "user" in the system
147-
And there is a valid "dd_team" in the system
148147
And there is a valid "schedule" in the system
149-
And there is a valid "escalation_policy" in the system
150-
And there are valid "routing_rules" in the system
151-
And request contains "team_id" parameter from "routing_rules.data.id"
152-
And request contains "include" parameter with value "responders,escalations.responders"
148+
And request contains "schedule_id" parameter from "schedule.data.id"
153149
When the request is sent
154150
Then the response status is 200 OK
155151

156152
@generated @skip @team:DataDog/on-call
157-
Scenario: Get the schedule on-call user returns "Bad Request" response
158-
Given new "GetScheduleOnCallUser" request
159-
And request contains "schedule_id" parameter from "REPLACE.ME"
153+
Scenario: Get team on-call users returns "Bad Request" response
154+
Given new "GetTeamOnCallUsers" request
155+
And request contains "team_id" parameter from "REPLACE.ME"
160156
When the request is sent
161157
Then the response status is 400 Bad Request
162158

163159
@generated @skip @team:DataDog/on-call
164-
Scenario: Get the schedule on-call user returns "Not Found" response
165-
Given new "GetScheduleOnCallUser" request
166-
And request contains "schedule_id" parameter from "REPLACE.ME"
160+
Scenario: Get team on-call users returns "Not Found" response
161+
Given new "GetTeamOnCallUsers" request
162+
And request contains "team_id" parameter from "REPLACE.ME"
167163
When the request is sent
168164
Then the response status is 404 Not Found
169165

170166
@team:DataDog/on-call
171-
Scenario: Get the schedule on-call user returns "OK" response
172-
Given new "GetScheduleOnCallUser" request
167+
Scenario: Get team on-call users returns "OK" response
168+
Given new "GetTeamOnCallUsers" request
173169
And there is a valid "user" in the system
170+
And there is a valid "dd_team" in the system
174171
And there is a valid "schedule" in the system
175-
And request contains "schedule_id" parameter from "schedule.data.id"
172+
And there is a valid "escalation_policy" in the system
173+
And there are valid "routing_rules" in the system
174+
And request contains "team_id" parameter from "routing_rules.data.id"
175+
And request contains "include" parameter with value "responders,escalations.responders"
176176
When the request is sent
177177
Then the response status is 200 OK
178178

0 commit comments

Comments
 (0)