Skip to content

Commit 6a03f63

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2b7612d8 of spec repo
1 parent 2d8705f commit 6a03f63

21 files changed

+90
-143
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-17 13:26:11.488046",
8-
"spec_repo_commit": "12ab5180"
7+
"regenerated": "2025-04-18 07:31:51.749617",
8+
"spec_repo_commit": "2b7612d8"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-17 13:26:11.504561",
13-
"spec_repo_commit": "12ab5180"
12+
"regenerated": "2025-04-18 07:31:51.764965",
13+
"spec_repo_commit": "2b7612d8"
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`.
@@ -27999,6 +27985,7 @@ components:
2799927985
$ref: '#/components/schemas/ScheduleCreateRequestDataType'
2800027986
required:
2800127987
- type
27988+
- attributes
2800227989
type: object
2800327990
ScheduleCreateRequestDataAttributes:
2800427991
description: Describes the main attributes for creating a new schedule, including
@@ -47474,7 +47461,7 @@ paths:
4747447461
- apiKeyAuth: []
4747547462
appKeyAuth: []
4747647463
- AuthZ: []
47477-
summary: Create on call escalation policy
47464+
summary: Create on-call escalation policy
4747847465
tags:
4747947466
- On-Call
4748047467
/api/v2/on-call/escalation-policies/{policy_id}:
@@ -47504,7 +47491,7 @@ paths:
4750447491
- apiKeyAuth: []
4750547492
appKeyAuth: []
4750647493
- AuthZ: []
47507-
summary: Delete on call escalation policy
47494+
summary: Delete on-call escalation policy
4750847495
tags:
4750947496
- On-Call
4751047497
get:
@@ -47545,7 +47532,7 @@ paths:
4754547532
- apiKeyAuth: []
4754647533
appKeyAuth: []
4754747534
- AuthZ: []
47548-
summary: Get on call escalation policy
47535+
summary: Get on-call escalation policy
4754947536
tags:
4755047537
- On-Call
4755147538
put:
@@ -47592,7 +47579,7 @@ paths:
4759247579
- apiKeyAuth: []
4759347580
appKeyAuth: []
4759447581
- AuthZ: []
47595-
summary: Update on call escalation policy
47582+
summary: Update on-call escalation policy
4759647583
tags:
4759747584
- On-Call
4759847585
/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)