Skip to content

Commit 8db4aba

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update summary for Get schedule on-call user endpoint (#2239)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 02456ee commit 8db4aba

File tree

7 files changed

+28
-28
lines changed

7 files changed

+28
-28
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-05-14 09:52:27.501368",
8-
"spec_repo_commit": "996fd99d"
7+
"regenerated": "2025-05-14 14:49:44.322804",
8+
"spec_repo_commit": "90c6252d"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-14 09:52:27.517174",
13-
"spec_repo_commit": "996fd99d"
12+
"regenerated": "2025-05-14 14:49:44.341464",
13+
"spec_repo_commit": "90c6252d"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51849,7 +51849,7 @@ paths:
5184951849
- apiKeyAuth: []
5185051850
appKeyAuth: []
5185151851
- AuthZ: []
51852-
summary: Get the schedule of an on-call user
51852+
summary: Get the schedule on-call user
5185351853
tags:
5185451854
- On-Call
5185551855
/api/v2/on-call/teams/{team_id}/routing-rules:

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2025-05-13T23:33:52.641Z"
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"log": {
3-
"_recordingName": "On-Call/Get the schedule of an on-call user returns \"OK\" response",
3+
"_recordingName": "On-Call/Get the schedule 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": "7554e56668358a89b7c941cae81fa1a5",
11+
"_id": "5bbb5dece55a189cbfc90e1d38e64742",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 627,
15+
"bodySize": 621,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"layers\":[{\"effective_date\":\"2025-05-03T00:41:58.620Z\",\"end_date\":\"2025-05-23T00:41:58.620Z\",\"interval\":{\"days\":1},\"members\":[{\"user\":{\"id\":\"890f29d4-0b7a-11f0-aeb2-760fcae4f596\"}}],\"name\":\"Layer 1\",\"restrictions\":[{\"end_day\":\"friday\",\"end_time\":\"17:00:00\",\"start_day\":\"monday\",\"start_time\":\"09:00:00\"}],\"rotation_start\":\"2025-05-08T00:41:58.620Z\"}],\"name\":\"Test-Get_the_schedule_of_an_on_call_user_returns_OK_response-1747096918\",\"tags\":[\"tag1\",\"tag2\"],\"time_zone\":\"America/New_York\"},\"relationships\":{\"teams\":{\"data\":[{\"id\":\"65aea9d0-941c-4607-bf8a-14fc0dac2820\",\"type\":\"teams\"}]}},\"type\":\"schedules\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"layers\":[{\"effective_date\":\"2025-05-03T23:33:52.641Z\",\"end_date\":\"2025-05-23T23:33:52.641Z\",\"interval\":{\"days\":1},\"members\":[{\"user\":{\"id\":\"890f29d4-0b7a-11f0-aeb2-760fcae4f596\"}}],\"name\":\"Layer 1\",\"restrictions\":[{\"end_day\":\"friday\",\"end_time\":\"17:00:00\",\"start_day\":\"monday\",\"start_time\":\"09:00:00\"}],\"rotation_start\":\"2025-05-08T23:33:52.641Z\"}],\"name\":\"Test-Get_the_schedule_on_call_user_returns_OK_response-1747179232\",\"tags\":[\"tag1\",\"tag2\"],\"time_zone\":\"America/New_York\"},\"relationships\":{\"teams\":{\"data\":[{\"id\":\"65aea9d0-941c-4607-bf8a-14fc0dac2820\",\"type\":\"teams\"}]}},\"type\":\"schedules\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/on-call/schedules"
3939
},
4040
"response": {
41-
"bodySize": 403,
41+
"bodySize": 397,
4242
"content": {
4343
"mimeType": "application/vnd.api+json",
44-
"size": 403,
45-
"text": "{\"data\":{\"id\":\"a69018b0-28a9-4ec1-ad13-dd74bb82ad3c\",\"type\":\"schedules\",\"attributes\":{\"name\":\"Test-Get_the_schedule_of_an_on_call_user_returns_OK_response-1747096918\",\"tags\":[\"tag1\",\"tag2\"],\"time_zone\":\"America/New_York\"},\"relationships\":{\"layers\":{\"data\":[{\"id\":\"133a579b-0b88-4732-91bd-7eb4a75271ab\",\"type\":\"layers\"}]},\"teams\":{\"data\":[{\"id\":\"65aea9d0-941c-4607-bf8a-14fc0dac2820\",\"type\":\"teams\"}]}}}}"
44+
"size": 397,
45+
"text": "{\"data\":{\"id\":\"37ca26fb-0143-4b2a-802c-8c01cd2179ab\",\"type\":\"schedules\",\"attributes\":{\"name\":\"Test-Get_the_schedule_on_call_user_returns_OK_response-1747179232\",\"tags\":[\"tag1\",\"tag2\"],\"time_zone\":\"America/New_York\"},\"relationships\":{\"layers\":{\"data\":[{\"id\":\"bf12302a-842c-4d31-bfe8-198ac926c41c\",\"type\":\"layers\"}]},\"teams\":{\"data\":[{\"id\":\"65aea9d0-941c-4607-bf8a-14fc0dac2820\",\"type\":\"teams\"}]}}}}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 201,
5858
"statusText": "Created"
5959
},
60-
"startedDateTime": "2025-05-13T00:41:58.625Z",
61-
"time": 867
60+
"startedDateTime": "2025-05-13T23:33:52.646Z",
61+
"time": 876
6262
},
6363
{
64-
"_id": "949e4e7b25729405116dd9cf1f7caa6d",
64+
"_id": "6e2149194238075466a718279206c28d",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -78,14 +78,14 @@
7878
"httpVersion": "HTTP/1.1",
7979
"method": "GET",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v2/on-call/schedules/a69018b0-28a9-4ec1-ad13-dd74bb82ad3c/on-call"
81+
"url": "https://api.datadoghq.com/api/v2/on-call/schedules/37ca26fb-0143-4b2a-802c-8c01cd2179ab/on-call"
8282
},
8383
"response": {
8484
"bodySize": 309,
8585
"content": {
8686
"mimeType": "application/vnd.api+json",
8787
"size": 309,
88-
"text": "{\"data\":{\"id\":\"890f29d4-0b7a-11f0-aeb2-760fcae4f596-2025-05-12T20:41:59-04:00-2025-05-13T20:41:58-04:00\",\"type\":\"shifts\",\"attributes\":{\"end\":\"2025-05-13T20:41:58-04:00\",\"start\":\"2025-05-12T20:41:59.394997-04:00\"},\"relationships\":{\"user\":{\"data\":{\"id\":\"890f29d4-0b7a-11f0-aeb2-760fcae4f596\",\"type\":\"users\"}}}}}"
88+
"text": "{\"data\":{\"id\":\"890f29d4-0b7a-11f0-aeb2-760fcae4f596-2025-05-13T19:33:53-04:00-2025-05-14T19:33:52-04:00\",\"type\":\"shifts\",\"attributes\":{\"end\":\"2025-05-14T19:33:52-04:00\",\"start\":\"2025-05-13T19:33:53.520152-04:00\"},\"relationships\":{\"user\":{\"data\":{\"id\":\"890f29d4-0b7a-11f0-aeb2-760fcae4f596\",\"type\":\"users\"}}}}}"
8989
},
9090
"cookies": [],
9191
"headers": [
@@ -100,11 +100,11 @@
100100
"status": 200,
101101
"statusText": "OK"
102102
},
103-
"startedDateTime": "2025-05-13T00:41:59.502Z",
104-
"time": 810
103+
"startedDateTime": "2025-05-13T23:33:53.532Z",
104+
"time": 682
105105
},
106106
{
107-
"_id": "efca463abd71f6a8b32656f203b69b7d",
107+
"_id": "1c9640b3c94a4581f63a548fc2896a24",
108108
"_order": 0,
109109
"cache": {},
110110
"request": {
@@ -121,7 +121,7 @@
121121
"httpVersion": "HTTP/1.1",
122122
"method": "DELETE",
123123
"queryString": [],
124-
"url": "https://api.datadoghq.com/api/v2/on-call/schedules/a69018b0-28a9-4ec1-ad13-dd74bb82ad3c"
124+
"url": "https://api.datadoghq.com/api/v2/on-call/schedules/37ca26fb-0143-4b2a-802c-8c01cd2179ab"
125125
},
126126
"response": {
127127
"bodySize": 0,
@@ -137,8 +137,8 @@
137137
"status": 204,
138138
"statusText": "No Content"
139139
},
140-
"startedDateTime": "2025-05-13T00:42:00.323Z",
141-
"time": 271
140+
"startedDateTime": "2025-05-13T23:33:54.225Z",
141+
"time": 375
142142
}
143143
],
144144
"pages": [],

examples/v2/on-call/GetScheduleOnCallUser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Get the schedule of an on-call user returns "OK" response
2+
* Get the schedule on-call user returns "OK" response
33
*/
44

55
import { client, v2 } from "@datadog/datadog-api-client";

features/v2/on-call.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,21 +123,21 @@ Feature: On-Call
123123
Then the response status is 200 OK
124124

125125
@generated @skip @team:DataDog/bugle
126-
Scenario: Get the schedule of an on-call user returns "Bad Request" response
126+
Scenario: Get the schedule on-call user returns "Bad Request" response
127127
Given new "GetScheduleOnCallUser" request
128128
And request contains "schedule_id" parameter from "REPLACE.ME"
129129
When the request is sent
130130
Then the response status is 400 Bad Request
131131

132132
@generated @skip @team:DataDog/bugle
133-
Scenario: Get the schedule of an on-call user returns "Not Found" response
133+
Scenario: Get the schedule on-call user returns "Not Found" response
134134
Given new "GetScheduleOnCallUser" request
135135
And request contains "schedule_id" parameter from "REPLACE.ME"
136136
When the request is sent
137137
Then the response status is 404 Not Found
138138

139139
@team:DataDog/bugle
140-
Scenario: Get the schedule of an on-call user returns "OK" response
140+
Scenario: Get the schedule on-call user returns "OK" response
141141
Given new "GetScheduleOnCallUser" request
142142
And there is a valid "schedule" in the system
143143
And request contains "schedule_id" parameter from "schedule.data.id"

0 commit comments

Comments
 (0)