Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-04-17 13:26:11.488046",
"spec_repo_commit": "12ab5180"
"regenerated": "2025-04-18 07:31:51.749617",
"spec_repo_commit": "2b7612d8"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-04-17 13:26:11.504561",
"spec_repo_commit": "12ab5180"
"regenerated": "2025-04-18 07:31:51.764965",
"spec_repo_commit": "2b7612d8"
}
}
}
41 changes: 14 additions & 27 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12889,13 +12889,6 @@ components:
type: schedules
- id: 00000000-aba3-0000-0000-000000000000
type: teams
- assignment: round-robin
escalate_after_seconds: 3600
targets:
- id: 00000000-aba1-0000-0000-000000000000
type: users
- id: 00000000-abb1-0000-0000-000000000000
type: users
relationships:
teams:
data:
Expand Down Expand Up @@ -12932,7 +12925,7 @@ components:
type: string
name:
description: Specifies the name for the new escalation policy.
example: On-call Escalation Policy
example: On-Call Escalation Policy
type: string
resolve_page_on_policy_end:
description: Indicates whether the page is automatically resolved when the
Expand Down Expand Up @@ -12975,15 +12968,13 @@ components:
type: object
EscalationPolicyCreateRequestDataAttributesStepsItemsAssignment:
description: Specifies how this escalation step will assign targets (example
`default` or `round-robin`).
`default`).
enum:
- default
- round-robin
example: default
type: string
x-enum-varnames:
- DEFAULT
- ROUND_ROBIN
EscalationPolicyCreateRequestDataAttributesStepsItemsTargetsItems:
description: Defines a single escalation target within a step for an escalation
policy creation request. Contains `id` and `type`.
Expand Down Expand Up @@ -13065,24 +13056,24 @@ components:
$ref: '#/components/schemas/EscalationPolicyDataAttributes'
id:
description: Specifies the unique identifier of the escalation policy.
example: ab000000-0000-0000-0000-000000000000
type: string
relationships:
$ref: '#/components/schemas/EscalationPolicyDataRelationships'
type:
$ref: '#/components/schemas/EscalationPolicyDataType'
required:
- type
type: object
EscalationPolicyDataAttributes:
description: Defines the main attributes of an escalation policy, such as its
description, name, and behavior on policy end.
properties:
description:
description: Provides a detailed text description of the escalation policy.
example: This is an escalation policy for on-call support.
type: string
name:
description: Specifies the name of the escalation policy.
example: On-call Escalation Policy
example: On-Call Escalation Policy
type: string
resolve_page_on_policy_end:
description: Indicates whether the page is automatically resolved when the
Expand All @@ -13091,10 +13082,9 @@ components:
retries:
description: Specifies how many times the escalation sequence is retried
if there is no response.
example: 2
format: int64
type: integer
required:
- name
type: object
EscalationPolicyDataRelationships:
description: Represents the relationships for an escalation policy, including
Expand Down Expand Up @@ -13223,14 +13213,12 @@ components:
type: object
EscalationPolicyStepAttributesAssignment:
description: Specifies how this escalation step will assign targets (example
`default` or `round-robin`).
`default`).
enum:
- default
- round-robin
type: string
x-enum-varnames:
- DEFAULT
- ROUND_ROBIN
EscalationPolicyStepRelationships:
description: Represents the relationship of an escalation policy step to its
targets.
Expand Down Expand Up @@ -13308,7 +13296,7 @@ components:
type: string
name:
description: Specifies the name of the escalation policy.
example: On-call Escalation Policy
example: On-Call Escalation Policy
type: string
resolve_page_on_policy_end:
description: Indicates whether the page is automatically resolved when the
Expand Down Expand Up @@ -13356,15 +13344,13 @@ components:
type: object
EscalationPolicyUpdateRequestDataAttributesStepsItemsAssignment:
description: Specifies how this escalation step will assign targets (example
`default` or `round-robin`).
`default`).
enum:
- default
- round-robin
example: default
type: string
x-enum-varnames:
- DEFAULT
- ROUND_ROBIN
EscalationPolicyUpdateRequestDataAttributesStepsItemsTargetsItems:
description: Defines a single escalation target within a step for an escalation
policy update request. Contains `id` and `type`.
Expand Down Expand Up @@ -27999,6 +27985,7 @@ components:
$ref: '#/components/schemas/ScheduleCreateRequestDataType'
required:
- type
- attributes
type: object
ScheduleCreateRequestDataAttributes:
description: Describes the main attributes for creating a new schedule, including
Expand Down Expand Up @@ -47474,7 +47461,7 @@ paths:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ: []
summary: Create on call escalation policy
summary: Create on-call escalation policy
tags:
- On-Call
/api/v2/on-call/escalation-policies/{policy_id}:
Expand Down Expand Up @@ -47504,7 +47491,7 @@ paths:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ: []
summary: Delete on call escalation policy
summary: Delete on-call escalation policy
tags:
- On-Call
get:
Expand Down Expand Up @@ -47545,7 +47532,7 @@ paths:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ: []
summary: Get on call escalation policy
summary: Get on-call escalation policy
tags:
- On-Call
put:
Expand Down Expand Up @@ -47592,7 +47579,7 @@ paths:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ: []
summary: Update on call escalation policy
summary: Update on-call escalation policy
tags:
- On-Call
/api/v2/on-call/schedules:
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-04-16T06:00:49.518Z
2025-04-17T07:49:10.212Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 1 addition & 11 deletions examples/v2/on-call/CreateOnCallEscalationPolicy.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Create on call escalation policy returns "Created" response
# Create on-call escalation policy returns "Created" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::On - CallAPI.new
Expand Down Expand Up @@ -38,16 +38,6 @@
}),
],
}),
DatadogAPIClient::V2::EscalationPolicyCreateRequestDataAttributesStepsItems.new({
assignment: DatadogAPIClient::V2::EscalationPolicyCreateRequestDataAttributesStepsItemsAssignment::ROUND_ROBIN,
escalate_after_seconds: 3600,
targets: [
DatadogAPIClient::V2::EscalationPolicyCreateRequestDataAttributesStepsItemsTargetsItems.new({
id: DD_TEAM_DATA_ID,
type: DatadogAPIClient::V2::EscalationPolicyCreateRequestDataAttributesStepsItemsTargetsItemsType::TEAMS,
}),
],
}),
],
}),
relationships: DatadogAPIClient::V2::EscalationPolicyCreateRequestDataRelationships.new({
Expand Down
Loading
Loading