Skip to content

Commit 4128bb3

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0f106072 of spec repo
1 parent f4e36ec commit 4128bb3

20 files changed

+88
-139
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-04-16 20:33:02.564302",
8-
"spec_repo_commit": "9708d631"
7+
"regenerated": "2025-04-17 07:58:31.812388",
8+
"spec_repo_commit": "0f106072"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-16 20:33:02.580600",
13-
"spec_repo_commit": "9708d631"
12+
"regenerated": "2025-04-17 07:58:31.827859",
13+
"spec_repo_commit": "0f106072"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 14 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12889,13 +12889,6 @@ components:
1288912889
type: schedules
1289012890
- id: 00000000-aba3-0000-0000-000000000000
1289112891
type: teams
12892-
- assignment: round-robin
12893-
escalate_after_seconds: 3600
12894-
targets:
12895-
- id: 00000000-aba1-0000-0000-000000000000
12896-
type: users
12897-
- id: 00000000-abb1-0000-0000-000000000000
12898-
type: users
1289912892
relationships:
1290012893
teams:
1290112894
data:
@@ -12932,7 +12925,7 @@ components:
1293212925
type: string
1293312926
name:
1293412927
description: Specifies the name for the new escalation policy.
12935-
example: On-call Escalation Policy
12928+
example: On-Call Escalation Policy
1293612929
type: string
1293712930
resolve_page_on_policy_end:
1293812931
description: Indicates whether the page is automatically resolved when the
@@ -12975,15 +12968,13 @@ components:
1297512968
type: object
1297612969
EscalationPolicyCreateRequestDataAttributesStepsItemsAssignment:
1297712970
description: Specifies how this escalation step will assign targets (example
12978-
`default` or `round-robin`).
12971+
`default`).
1297912972
enum:
1298012973
- default
12981-
- round-robin
1298212974
example: default
1298312975
type: string
1298412976
x-enum-varnames:
1298512977
- DEFAULT
12986-
- ROUND_ROBIN
1298712978
EscalationPolicyCreateRequestDataAttributesStepsItemsTargetsItems:
1298812979
description: Defines a single escalation target within a step for an escalation
1298912980
policy creation request. Contains `id` and `type`.
@@ -13065,24 +13056,24 @@ components:
1306513056
$ref: '#/components/schemas/EscalationPolicyDataAttributes'
1306613057
id:
1306713058
description: Specifies the unique identifier of the escalation policy.
13059+
example: ab000000-0000-0000-0000-000000000000
1306813060
type: string
1306913061
relationships:
1307013062
$ref: '#/components/schemas/EscalationPolicyDataRelationships'
1307113063
type:
1307213064
$ref: '#/components/schemas/EscalationPolicyDataType'
13073-
required:
13074-
- type
1307513065
type: object
1307613066
EscalationPolicyDataAttributes:
1307713067
description: Defines the main attributes of an escalation policy, such as its
1307813068
description, name, and behavior on policy end.
1307913069
properties:
1308013070
description:
1308113071
description: Provides a detailed text description of the escalation policy.
13072+
example: This is an escalation policy for on-call support.
1308213073
type: string
1308313074
name:
1308413075
description: Specifies the name of the escalation policy.
13085-
example: On-call Escalation Policy
13076+
example: On-Call Escalation Policy
1308613077
type: string
1308713078
resolve_page_on_policy_end:
1308813079
description: Indicates whether the page is automatically resolved when the
@@ -13091,10 +13082,9 @@ components:
1309113082
retries:
1309213083
description: Specifies how many times the escalation sequence is retried
1309313084
if there is no response.
13085+
example: 2
1309413086
format: int64
1309513087
type: integer
13096-
required:
13097-
- name
1309813088
type: object
1309913089
EscalationPolicyDataRelationships:
1310013090
description: Represents the relationships for an escalation policy, including
@@ -13223,14 +13213,12 @@ components:
1322313213
type: object
1322413214
EscalationPolicyStepAttributesAssignment:
1322513215
description: Specifies how this escalation step will assign targets (example
13226-
`default` or `round-robin`).
13216+
`default`).
1322713217
enum:
1322813218
- default
13229-
- round-robin
1323013219
type: string
1323113220
x-enum-varnames:
1323213221
- DEFAULT
13233-
- ROUND_ROBIN
1323413222
EscalationPolicyStepRelationships:
1323513223
description: Represents the relationship of an escalation policy step to its
1323613224
targets.
@@ -13308,7 +13296,7 @@ components:
1330813296
type: string
1330913297
name:
1331013298
description: Specifies the name of the escalation policy.
13311-
example: On-call Escalation Policy
13299+
example: On-Call Escalation Policy
1331213300
type: string
1331313301
resolve_page_on_policy_end:
1331413302
description: Indicates whether the page is automatically resolved when the
@@ -13356,15 +13344,13 @@ components:
1335613344
type: object
1335713345
EscalationPolicyUpdateRequestDataAttributesStepsItemsAssignment:
1335813346
description: Specifies how this escalation step will assign targets (example
13359-
`default` or `round-robin`).
13347+
`default`).
1336013348
enum:
1336113349
- default
13362-
- round-robin
1336313350
example: default
1336413351
type: string
1336513352
x-enum-varnames:
1336613353
- DEFAULT
13367-
- ROUND_ROBIN
1336813354
EscalationPolicyUpdateRequestDataAttributesStepsItemsTargetsItems:
1336913355
description: Defines a single escalation target within a step for an escalation
1337013356
policy update request. Contains `id` and `type`.
@@ -27992,6 +27978,7 @@ components:
2799227978
$ref: '#/components/schemas/ScheduleCreateRequestDataType'
2799327979
required:
2799427980
- type
27981+
- attributes
2799527982
type: object
2799627983
ScheduleCreateRequestDataAttributes:
2799727984
description: Describes the main attributes for creating a new schedule, including
@@ -47424,7 +47411,7 @@ paths:
4742447411
- apiKeyAuth: []
4742547412
appKeyAuth: []
4742647413
- AuthZ: []
47427-
summary: Create on call escalation policy
47414+
summary: Create on-call escalation policy
4742847415
tags:
4742947416
- On-Call
4743047417
/api/v2/on-call/escalation-policies/{policy_id}:
@@ -47454,7 +47441,7 @@ paths:
4745447441
- apiKeyAuth: []
4745547442
appKeyAuth: []
4745647443
- AuthZ: []
47457-
summary: Delete on call escalation policy
47444+
summary: Delete on-call escalation policy
4745847445
tags:
4745947446
- On-Call
4746047447
get:
@@ -47495,7 +47482,7 @@ paths:
4749547482
- apiKeyAuth: []
4749647483
appKeyAuth: []
4749747484
- AuthZ: []
47498-
summary: Get on call escalation policy
47485+
summary: Get on-call escalation policy
4749947486
tags:
4750047487
- On-Call
4750147488
put:
@@ -47542,7 +47529,7 @@ paths:
4754247529
- apiKeyAuth: []
4754347530
appKeyAuth: []
4754447531
- AuthZ: []
47545-
summary: Update on call escalation policy
47532+
summary: Update on-call escalation policy
4754647533
tags:
4754747534
- On-Call
4754847535
/api/v2/on-call/schedules:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-04-16T06:00:49.518Z
1+
2025-04-17T07:49:10.212Z

cassettes/features/v2/on-call/Get-on-call-escalation-policy-returns-OK-response.yml

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

examples/v2/on-call/CreateOnCallEscalationPolicy.rb

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Create on call escalation policy returns "Created" response
1+
# Create on-call escalation policy returns "Created" response
22

33
require "datadog_api_client"
44
api_instance = DatadogAPIClient::V2::On - CallAPI.new
@@ -38,16 +38,6 @@
3838
}),
3939
],
4040
}),
41-
DatadogAPIClient::V2::EscalationPolicyCreateRequestDataAttributesStepsItems.new({
42-
assignment: DatadogAPIClient::V2::EscalationPolicyCreateRequestDataAttributesStepsItemsAssignment::ROUND_ROBIN,
43-
escalate_after_seconds: 3600,
44-
targets: [
45-
DatadogAPIClient::V2::EscalationPolicyCreateRequestDataAttributesStepsItemsTargetsItems.new({
46-
id: DD_TEAM_DATA_ID,
47-
type: DatadogAPIClient::V2::EscalationPolicyCreateRequestDataAttributesStepsItemsTargetsItemsType::TEAMS,
48-
}),
49-
],
50-
}),
5141
],
5242
}),
5343
relationships: DatadogAPIClient::V2::EscalationPolicyCreateRequestDataRelationships.new({

0 commit comments

Comments
 (0)