Skip to content

Commit e5679e4

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 35ab545 of spec repo
1 parent 540b8a1 commit e5679e4

File tree

3 files changed

+218
-11
lines changed

3 files changed

+218
-11
lines changed

content/en/api/v2/on-call/examples.json

Lines changed: 72 additions & 5 deletions
Large diffs are not rendered by default.

content/en/api/v2/on-call/request.CreateOnCallEscalationPolicy.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@
1717
"id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d",
1818
"type": "schedules"
1919
},
20+
{
21+
"config": {
22+
"schedule": {
23+
"position": "previous"
24+
}
25+
},
26+
"id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d",
27+
"type": "schedules"
28+
},
2029
{
2130
"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001",
2231
"type": "teams"

data/api/v2/full_spec.yaml

Lines changed: 137 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11226,6 +11226,76 @@ components:
1122611226
required:
1122711227
- type
1122811228
type: object
11229+
ConfiguredSchedule:
11230+
description: Full resource representation of a configured schedule target with
11231+
position (previous, current, or next).
11232+
properties:
11233+
attributes:
11234+
$ref: '#/components/schemas/ConfiguredScheduleTargetAttributes'
11235+
id:
11236+
description: Specifies the unique identifier of the configured schedule
11237+
target.
11238+
example: 00000000-aba1-0000-0000-000000000000_previous
11239+
type: string
11240+
relationships:
11241+
$ref: '#/components/schemas/ConfiguredScheduleTargetRelationships'
11242+
type:
11243+
$ref: '#/components/schemas/ConfiguredScheduleTargetType'
11244+
required:
11245+
- type
11246+
- id
11247+
- attributes
11248+
- relationships
11249+
type: object
11250+
ConfiguredScheduleTarget:
11251+
description: Relationship reference to a configured schedule target.
11252+
properties:
11253+
id:
11254+
description: Specifies the unique identifier of the configured schedule
11255+
target.
11256+
example: 00000000-aba1-0000-0000-000000000000_previous
11257+
type: string
11258+
type:
11259+
$ref: '#/components/schemas/ConfiguredScheduleTargetType'
11260+
required:
11261+
- type
11262+
- id
11263+
type: object
11264+
ConfiguredScheduleTargetAttributes:
11265+
description: Attributes for a configured schedule target, including position.
11266+
example:
11267+
position: previous
11268+
properties:
11269+
position:
11270+
$ref: '#/components/schemas/ScheduleTargetPosition'
11271+
required:
11272+
- position
11273+
type: object
11274+
ConfiguredScheduleTargetRelationships:
11275+
description: Represents the relationships of a configured schedule target.
11276+
properties:
11277+
schedule:
11278+
$ref: '#/components/schemas/ConfiguredScheduleTargetRelationshipsSchedule'
11279+
required:
11280+
- schedule
11281+
type: object
11282+
ConfiguredScheduleTargetRelationshipsSchedule:
11283+
description: Holds the schedule reference for a configured schedule target.
11284+
properties:
11285+
data:
11286+
$ref: '#/components/schemas/ScheduleTarget'
11287+
required:
11288+
- data
11289+
type: object
11290+
ConfiguredScheduleTargetType:
11291+
default: schedule_target
11292+
description: Indicates that the resource is of type `schedule_target`.
11293+
enum:
11294+
- schedule_target
11295+
example: schedule_target
11296+
type: string
11297+
x-enum-varnames:
11298+
- SCHEDULE_TARGET
1122911299
ConfluentAccountCreateRequest:
1123011300
description: Payload schema when adding a Confluent account.
1123111301
properties:
@@ -18735,13 +18805,24 @@ components:
1873518805
type: users
1873618806
- id: 00000000-aba2-0000-0000-000000000000
1873718807
type: schedules
18808+
- id: 00000000-aba2-0000-0000-000000000000_previous
18809+
type: schedule_target
1873818810
- id: 00000000-aba3-0000-0000-000000000000
1873918811
type: teams
1874018812
type: steps
1874118813
- id: 00000000-aba1-0000-0000-000000000000
1874218814
type: users
1874318815
- id: 00000000-aba2-0000-0000-000000000000
1874418816
type: schedules
18817+
- attributes:
18818+
position: previous
18819+
id: 00000000-aba2-0000-0000-000000000000_previous
18820+
relationships:
18821+
schedule:
18822+
data:
18823+
id: 00000000-aba2-0000-0000-000000000000
18824+
type: schedules
18825+
type: schedule_target
1874518826
- id: 00000000-aba3-0000-0000-000000000000
1874618827
type: teams
1874718828
properties:
@@ -18769,7 +18850,10 @@ components:
1876918850
targets:
1877018851
- id: 00000000-aba1-0000-0000-000000000000
1877118852
type: users
18772-
- id: 00000000-aba2-0000-0000-000000000000
18853+
- config:
18854+
schedule:
18855+
position: previous
18856+
id: 00000000-aba2-0000-0000-000000000000
1877318857
type: schedules
1877418858
- id: 00000000-aba3-0000-0000-000000000000
1877518859
type: teams
@@ -18813,6 +18897,7 @@ components:
1881318897
name:
1881418898
description: Specifies the name for the new escalation policy.
1881518899
example: On-Call Escalation Policy
18900+
minLength: 1
1881618901
type: string
1881718902
resolve_page_on_policy_end:
1881818903
description: Indicates whether the page is automatically resolved when the
@@ -18822,12 +18907,16 @@ components:
1882218907
description: Specifies how many times the escalation sequence is retried
1882318908
if there is no response.
1882418909
format: int64
18910+
maximum: 10
18911+
minimum: 0
1882518912
type: integer
1882618913
steps:
1882718914
description: A list of escalation steps, each defining assignment, escalation
1882818915
timeout, and targets for the new policy.
1882918916
items:
1883018917
$ref: '#/components/schemas/EscalationPolicyCreateRequestDataAttributesStepsItems'
18918+
maxItems: 10
18919+
minItems: 1
1883118920
type: array
1883218921
required:
1883318922
- name
@@ -18844,6 +18933,8 @@ components:
1884418933
step.
1884518934
example: 3600
1884618935
format: int64
18936+
maximum: 36000
18937+
minimum: 60
1884718938
type: integer
1884818939
targets:
1884918940
description: Specifies the collection of escalation targets for this step.
@@ -18895,6 +18986,7 @@ components:
1889518986
name:
1889618987
description: Specifies the name of the escalation policy.
1889718988
example: On-Call Escalation Policy
18989+
minLength: 1
1889818990
type: string
1889918991
resolve_page_on_policy_end:
1890018992
description: Indicates whether the page is automatically resolved when the
@@ -18904,6 +18996,8 @@ components:
1890418996
description: Specifies how many times the escalation sequence is retried
1890518997
if there is no response.
1890618998
format: int64
18999+
maximum: 10
19000+
minimum: 0
1890719001
type: integer
1890819002
required:
1890919003
- name
@@ -18966,10 +19060,11 @@ components:
1896619060
description: Represents included related resources when retrieving an escalation
1896719061
policy, such as teams, steps, or targets.
1896819062
oneOf:
18969-
- $ref: '#/components/schemas/TeamReference'
1897019063
- $ref: '#/components/schemas/EscalationPolicyStep'
1897119064
- $ref: '#/components/schemas/EscalationPolicyUser'
1897219065
- $ref: '#/components/schemas/ScheduleData'
19066+
- $ref: '#/components/schemas/ConfiguredSchedule'
19067+
- $ref: '#/components/schemas/TeamReference'
1897319068
EscalationPolicyStep:
1897419069
description: Represents a single step in an escalation policy, including its
1897519070
attributes, relationships, and resource type.
@@ -19017,15 +19112,29 @@ components:
1901719112
type: object
1901819113
EscalationPolicyStepTarget:
1901919114
description: Defines a single escalation target within a step for an escalation
19020-
policy creation request. Contains `id` and `type`.
19115+
policy creation request. Contains `id`, `type`, and optional `config`.
1902119116
properties:
19117+
config:
19118+
$ref: '#/components/schemas/EscalationPolicyStepTargetConfig'
1902219119
id:
1902319120
description: Specifies the unique identifier for this target.
1902419121
example: 00000000-aba1-0000-0000-000000000000
1902519122
type: string
1902619123
type:
1902719124
$ref: '#/components/schemas/EscalationPolicyStepTargetType'
1902819125
type: object
19126+
EscalationPolicyStepTargetConfig:
19127+
description: Configuration for an escalation target, such as schedule position.
19128+
properties:
19129+
schedule:
19130+
$ref: '#/components/schemas/EscalationPolicyStepTargetConfigSchedule'
19131+
type: object
19132+
EscalationPolicyStepTargetConfigSchedule:
19133+
description: Schedule-specific configuration for an escalation target.
19134+
properties:
19135+
position:
19136+
$ref: '#/components/schemas/ScheduleTargetPosition'
19137+
type: object
1902919138
EscalationPolicyStepTargetType:
1903019139
description: Specifies the type of escalation target (example `users`, `schedules`,
1903119140
or `teams`).
@@ -19106,6 +19215,7 @@ components:
1910619215
name:
1910719216
description: Specifies the name of the escalation policy.
1910819217
example: On-Call Escalation Policy
19218+
minLength: 1
1910919219
type: string
1911019220
resolve_page_on_policy_end:
1911119221
description: Indicates whether the page is automatically resolved when the
@@ -19115,12 +19225,16 @@ components:
1911519225
description: Specifies how many times the escalation sequence is retried
1911619226
if there is no response.
1911719227
format: int64
19228+
maximum: 10
19229+
minimum: 0
1911819230
type: integer
1911919231
steps:
1912019232
description: A list of escalation steps, each defining assignment, escalation
1912119233
timeout, and targets.
1912219234
items:
1912319235
$ref: '#/components/schemas/EscalationPolicyUpdateRequestDataAttributesStepsItems'
19236+
maxItems: 10
19237+
minItems: 1
1912419238
type: array
1912519239
required:
1912619240
- name
@@ -19138,6 +19252,8 @@ components:
1913819252
step.
1913919253
example: 3600
1914019254
format: int64
19255+
maximum: 36000
19256+
minimum: 60
1914119257
type: integer
1914219258
id:
1914319259
description: Specifies the unique identifier of this step.
@@ -19246,12 +19362,13 @@ components:
1924619362
x-enum-varnames:
1924719363
- USERS
1924819364
EscalationTarget:
19249-
description: Represents an escalation target, which can be a team, user, or
19250-
schedule.
19365+
description: Represents an escalation target, which can be a team, user, schedule,
19366+
or configured schedule target.
1925119367
oneOf:
1925219368
- $ref: '#/components/schemas/TeamTarget'
1925319369
- $ref: '#/components/schemas/UserTarget'
1925419370
- $ref: '#/components/schemas/ScheduleTarget'
19371+
- $ref: '#/components/schemas/ConfiguredScheduleTarget'
1925519372
EscalationTargets:
1925619373
description: A list of escalation targets for a step
1925719374
properties:
@@ -45350,7 +45467,8 @@ components:
4535045467
type: object
4535145468
ScheduleTarget:
4535245469
description: Represents a schedule target for an escalation policy step, including
45353-
its ID and resource type.
45470+
its ID and resource type. This is a shortcut for a configured schedule target
45471+
with position set to 'current'.
4535445472
properties:
4535545473
id:
4535645474
description: Specifies the unique identifier of the schedule resource.
@@ -45362,6 +45480,19 @@ components:
4536245480
- type
4536345481
- id
4536445482
type: object
45483+
ScheduleTargetPosition:
45484+
description: Specifies the position of a schedule target (example `previous`,
45485+
`current`, or `next`).
45486+
enum:
45487+
- previous
45488+
- current
45489+
- next
45490+
example: previous
45491+
type: string
45492+
x-enum-varnames:
45493+
- PREVIOUS
45494+
- CURRENT
45495+
- NEXT
4536545496
ScheduleTargetType:
4536645497
default: schedules
4536745498
description: Indicates that the resource is of type `schedules`.

0 commit comments

Comments
 (0)