Skip to content

Commit d8d376f

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update rotation interval (#2516)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent f069934 commit d8d376f

11 files changed

+47
-41
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-07-07 12:19:27.135140",
8-
"spec_repo_commit": "fa2473ca"
7+
"regenerated": "2025-07-08 07:29:02.458919",
8+
"spec_repo_commit": "d9879085"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-07-07 12:19:27.153492",
13-
"spec_repo_commit": "fa2473ca"
12+
"regenerated": "2025-07-08 07:29:02.475424",
13+
"spec_repo_commit": "d9879085"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ components:
758758
description: 'Identifier, formatted as `type:id`. Supported types: `connection`,
759759
`dashboard`, `integration-account`, `integration-service`, `integration-webhook`,
760760
`notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`,
761-
`connection`, `connection-group`, `rum-application`.'
761+
`connection`, `connection-group`, `rum-application`, `cross-org-connection`.'
762762
example: dashboard:abc-def-ghi
763763
in: path
764764
name: resource_id
@@ -20008,7 +20008,7 @@ components:
2000820008
type: object
2000920009
LayerAttributesInterval:
2001020010
description: Defines how often the rotation repeats, using a combination of
20011-
days and optional seconds.
20011+
days and optional seconds. Should be at least 1 hour.
2001220012
properties:
2001320013
days:
2001420014
description: The number of days in each rotation cycle.
@@ -33143,7 +33143,7 @@ components:
3314333143
- effective_date: '2025-02-03T05:00:00Z'
3314433144
end_date: '2025-12-31T00:00:00Z'
3314533145
interval:
33146-
seconds: 300
33146+
seconds: 3600
3314733147
members:
3314833148
- user:
3314933149
id: 00000000-aba1-0000-0000-000000000000
@@ -56502,6 +56502,8 @@ paths:
5650256502

5650356503
- RUM Applications: `rum-application`
5650456504

56505+
- Cross Org Connections: `cross-org-connection`
56506+
5650556507

5650656508
#### Supported relations for resources
5650756509

@@ -56543,7 +56545,9 @@ paths:
5654356545

5654456546
Connection Groups | `viewer`, `editor`
5654556547

56546-
RUM Application | `viewer`, `editor`'
56548+
RUM Application | `viewer`, `editor`
56549+
56550+
Cross Org Connections | `viewer`, `editor`'
5654756551
operationId: UpdateRestrictionPolicy
5654856552
parameters:
5654956553
- $ref: '#/components/parameters/ResourceID'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-05-29T04:54:24.605Z
1+
2025-07-03T14:30:45.232Z

cassettes/features/v2/on-call/Update-On-Call-schedule-returns-OK-response.yml

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/v2/on-call/UpdateOnCallSchedule.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
effective_date: (Time.now + -10 * 86400),
2424
end_date: (Time.now + 10 * 86400),
2525
interval: DatadogAPIClient::V2::LayerAttributesInterval.new({
26-
seconds: 300,
26+
seconds: 3600,
2727
}),
2828
members: [
2929
DatadogAPIClient::V2::ScheduleRequestDataAttributesLayersItemsMembersItems.new({

features/v2/on-call.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,15 +221,15 @@ Feature: On-Call
221221
Scenario: Update On-Call schedule returns "Bad Request" response
222222
Given new "UpdateOnCallSchedule" request
223223
And request contains "schedule_id" parameter from "REPLACE.ME"
224-
And body with value {"data": {"attributes": {"layers": [{"effective_date": "2025-02-03T05:00:00Z", "end_date": "2025-12-31T00:00:00Z", "interval": {"seconds": 300}, "members": [{"user": {"id": "00000000-aba1-0000-0000-000000000000"}}], "name": "Layer 1", "restrictions": [{"end_day": "friday", "end_time": "17:00:00", "start_day": "monday", "start_time": "09:00:00"}], "rotation_start": "2025-02-01T00:00:00Z"}], "name": "On-Call Schedule Updated", "time_zone": "America/New_York"}, "id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d", "relationships": {"teams": {"data": [{"id": "00000000-da3a-0000-0000-000000000000", "type": "teams"}]}}, "type": "schedules"}}
224+
And body with value {"data": {"attributes": {"layers": [{"effective_date": "2025-02-03T05:00:00Z", "end_date": "2025-12-31T00:00:00Z", "interval": {"seconds": 3600}, "members": [{"user": {"id": "00000000-aba1-0000-0000-000000000000"}}], "name": "Layer 1", "restrictions": [{"end_day": "friday", "end_time": "17:00:00", "start_day": "monday", "start_time": "09:00:00"}], "rotation_start": "2025-02-01T00:00:00Z"}], "name": "On-Call Schedule Updated", "time_zone": "America/New_York"}, "id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d", "relationships": {"teams": {"data": [{"id": "00000000-da3a-0000-0000-000000000000", "type": "teams"}]}}, "type": "schedules"}}
225225
When the request is sent
226226
Then the response status is 400 Bad Request
227227

228228
@generated @skip @team:DataDog/bugle
229229
Scenario: Update On-Call schedule returns "Not Found" response
230230
Given new "UpdateOnCallSchedule" request
231231
And request contains "schedule_id" parameter from "REPLACE.ME"
232-
And body with value {"data": {"attributes": {"layers": [{"effective_date": "2025-02-03T05:00:00Z", "end_date": "2025-12-31T00:00:00Z", "interval": {"seconds": 300}, "members": [{"user": {"id": "00000000-aba1-0000-0000-000000000000"}}], "name": "Layer 1", "restrictions": [{"end_day": "friday", "end_time": "17:00:00", "start_day": "monday", "start_time": "09:00:00"}], "rotation_start": "2025-02-01T00:00:00Z"}], "name": "On-Call Schedule Updated", "time_zone": "America/New_York"}, "id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d", "relationships": {"teams": {"data": [{"id": "00000000-da3a-0000-0000-000000000000", "type": "teams"}]}}, "type": "schedules"}}
232+
And body with value {"data": {"attributes": {"layers": [{"effective_date": "2025-02-03T05:00:00Z", "end_date": "2025-12-31T00:00:00Z", "interval": {"seconds": 3600}, "members": [{"user": {"id": "00000000-aba1-0000-0000-000000000000"}}], "name": "Layer 1", "restrictions": [{"end_day": "friday", "end_time": "17:00:00", "start_day": "monday", "start_time": "09:00:00"}], "rotation_start": "2025-02-01T00:00:00Z"}], "name": "On-Call Schedule Updated", "time_zone": "America/New_York"}, "id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d", "relationships": {"teams": {"data": [{"id": "00000000-da3a-0000-0000-000000000000", "type": "teams"}]}}, "type": "schedules"}}
233233
When the request is sent
234234
Then the response status is 404 Not Found
235235

@@ -240,6 +240,6 @@ Feature: On-Call
240240
And there is a valid "schedule" in the system
241241
And there is a valid "dd_team" in the system
242242
And request contains "schedule_id" parameter from "schedule.data.id"
243-
And body with value {"data": { "id": "{{ schedule.data.id }}", "attributes": {"layers": [{"id": "{{ schedule.data.relationships.layers.data[0].id }}" , "effective_date": "{{ timeISO('now - 10d') }}", "end_date": "{{ timeISO('now + 10d') }}", "interval": {"seconds": 300}, "members": [{"user": {"id": "{{user.data.id}}"}}], "name": "Layer 1", "restrictions": [{"end_day": "friday", "end_time": "17:00:00", "start_day": "monday", "start_time": "09:00:00"}], "rotation_start": "{{ timeISO('now - 5d') }}"}], "name": "{{ unique }}", "time_zone": "America/New_York"}, "relationships": {"teams": {"data": [{"id": "{{dd_team.data.id}}", "type": "teams"}]}}, "type": "schedules"}}
243+
And body with value {"data": { "id": "{{ schedule.data.id }}", "attributes": {"layers": [{"id": "{{ schedule.data.relationships.layers.data[0].id }}" , "effective_date": "{{ timeISO('now - 10d') }}", "end_date": "{{ timeISO('now + 10d') }}", "interval": {"seconds": 3600}, "members": [{"user": {"id": "{{user.data.id}}"}}], "name": "Layer 1", "restrictions": [{"end_day": "friday", "end_time": "17:00:00", "start_day": "monday", "start_time": "09:00:00"}], "rotation_start": "{{ timeISO('now - 5d') }}"}], "name": "{{ unique }}", "time_zone": "America/New_York"}, "relationships": {"teams": {"data": [{"id": "{{dd_team.data.id}}", "type": "teams"}]}}, "type": "schedules"}}
244244
When the request is sent
245245
Then the response status is 200 OK

0 commit comments

Comments
 (0)