Skip to content

Commit c4b6c69

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 40e89223 of spec repo
1 parent 33cb27f commit c4b6c69

19 files changed

+1455
-4
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-29 18:57:43.172744",
8-
"spec_repo_commit": "d1252b21"
7+
"regenerated": "2025-04-30 12:56:42.215667",
8+
"spec_repo_commit": "40e89223"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-29 18:57:43.188311",
13-
"spec_repo_commit": "d1252b21"
12+
"regenerated": "2025-04-30 12:56:42.234431",
13+
"spec_repo_commit": "40e89223"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 206 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9064,6 +9064,109 @@ components:
90649064
id:
90659065
$ref: '#/components/schemas/ApiID'
90669066
type: object
9067+
CreatePageRequest:
9068+
description: The definition of `CreatePageRequest` object.
9069+
example:
9070+
data:
9071+
attributes:
9072+
description: Page details
9073+
tags:
9074+
- service:test
9075+
target:
9076+
identifier: my-team
9077+
type: team_handle
9078+
title: Page title
9079+
urgency: low
9080+
type: pages
9081+
properties:
9082+
data:
9083+
$ref: '#/components/schemas/CreatePageRequestData'
9084+
type: object
9085+
CreatePageRequestData:
9086+
description: The definition of `CreatePageRequestData` object.
9087+
properties:
9088+
attributes:
9089+
$ref: '#/components/schemas/CreatePageRequestDataAttributes'
9090+
type:
9091+
$ref: '#/components/schemas/CreatePageRequestDataType'
9092+
required:
9093+
- type
9094+
type: object
9095+
CreatePageRequestDataAttributes:
9096+
description: The definition of `CreatePageRequestDataAttributes` object.
9097+
properties:
9098+
description:
9099+
description: The `attributes` `description`.
9100+
type: string
9101+
tags:
9102+
description: The `attributes` `tags`.
9103+
items:
9104+
type: string
9105+
type: array
9106+
target:
9107+
$ref: '#/components/schemas/CreatePageRequestDataAttributesTarget'
9108+
title:
9109+
description: The `attributes` `title`.
9110+
example: ''
9111+
type: string
9112+
urgency:
9113+
description: The `attributes` `urgency`.
9114+
example: ''
9115+
type: string
9116+
required:
9117+
- target
9118+
- title
9119+
- urgency
9120+
type: object
9121+
CreatePageRequestDataAttributesTarget:
9122+
description: The definition of `CreatePageRequestDataAttributesTarget` object.
9123+
properties:
9124+
identifier:
9125+
description: The `target` `identifier`.
9126+
type: string
9127+
type:
9128+
description: The `target` `type`.
9129+
type: string
9130+
type: object
9131+
CreatePageRequestDataType:
9132+
default: pages
9133+
description: Pages resource type.
9134+
enum:
9135+
- pages
9136+
example: pages
9137+
type: string
9138+
x-enum-varnames:
9139+
- PAGES
9140+
CreatePageResponse:
9141+
description: The definition of `CreatePageResponse` object.
9142+
example:
9143+
data:
9144+
id: 15e74b8b-f865-48d0-bcc5-453323ed2c8f
9145+
type: pages
9146+
properties:
9147+
data:
9148+
$ref: '#/components/schemas/CreatePageResponseData'
9149+
type: object
9150+
CreatePageResponseData:
9151+
description: The definition of `CreatePageResponseData` object.
9152+
properties:
9153+
id:
9154+
description: The `CreatePageResponseData` `id`.
9155+
type: string
9156+
type:
9157+
$ref: '#/components/schemas/CreatePageResponseDataType'
9158+
required:
9159+
- type
9160+
type: object
9161+
CreatePageResponseDataType:
9162+
default: pages
9163+
description: Pages resource type.
9164+
enum:
9165+
- pages
9166+
example: pages
9167+
type: string
9168+
x-enum-varnames:
9169+
- PAGES
90679170
CreateRuleRequest:
90689171
description: Scorecard create rule request.
90699172
properties:
@@ -50655,6 +50758,107 @@ paths:
5065550758
summary: Update on-call escalation policy
5065650759
tags:
5065750760
- On-Call
50761+
/api/v2/on-call/pages:
50762+
post:
50763+
description: Trigger a new On-Call page
50764+
operationId: CreateOnCallPage
50765+
requestBody:
50766+
content:
50767+
application/json:
50768+
schema:
50769+
$ref: '#/components/schemas/CreatePageRequest'
50770+
required: true
50771+
responses:
50772+
'200':
50773+
content:
50774+
application/json:
50775+
schema:
50776+
$ref: '#/components/schemas/CreatePageResponse'
50777+
description: OK
50778+
'429':
50779+
$ref: '#/components/responses/TooManyRequestsResponse'
50780+
security:
50781+
- apiKeyAuth: []
50782+
appKeyAuth: []
50783+
- AuthZ: []
50784+
summary: Create on call page
50785+
tags:
50786+
- On-Call Paging
50787+
/api/v2/on-call/pages/{page_id}/acknowledge:
50788+
post:
50789+
description: Acknowledges an On-Call page
50790+
operationId: AcknowledgeOnCallPage
50791+
parameters:
50792+
- description: The page ID
50793+
in: path
50794+
name: page_id
50795+
required: true
50796+
schema:
50797+
example: 15e74b8b-f865-48d0-bcc5-453323ed2c8f
50798+
format: uuid
50799+
type: string
50800+
responses:
50801+
'202':
50802+
description: Accepted
50803+
'429':
50804+
$ref: '#/components/responses/TooManyRequestsResponse'
50805+
security:
50806+
- apiKeyAuth: []
50807+
appKeyAuth: []
50808+
- AuthZ: []
50809+
summary: Acknowledge on call page
50810+
tags:
50811+
- On-Call Paging
50812+
/api/v2/on-call/pages/{page_id}/escalate:
50813+
post:
50814+
description: Escalates an On-Call page
50815+
operationId: EscalateOnCallPage
50816+
parameters:
50817+
- description: The page ID
50818+
in: path
50819+
name: page_id
50820+
required: true
50821+
schema:
50822+
example: 15e74b8b-f865-48d0-bcc5-453323ed2c8f
50823+
format: uuid
50824+
type: string
50825+
responses:
50826+
'202':
50827+
description: Accepted
50828+
'429':
50829+
$ref: '#/components/responses/TooManyRequestsResponse'
50830+
security:
50831+
- apiKeyAuth: []
50832+
appKeyAuth: []
50833+
- AuthZ: []
50834+
summary: Escalate on call page
50835+
tags:
50836+
- On-Call Paging
50837+
/api/v2/on-call/pages/{page_id}/resolve:
50838+
post:
50839+
description: Resolves an On-Call page
50840+
operationId: ResolveOnCallPage
50841+
parameters:
50842+
- description: The page ID
50843+
in: path
50844+
name: page_id
50845+
required: true
50846+
schema:
50847+
example: 15e74b8b-f865-48d0-bcc5-453323ed2c8f
50848+
format: uuid
50849+
type: string
50850+
responses:
50851+
'202':
50852+
description: Accepted
50853+
'429':
50854+
$ref: '#/components/responses/TooManyRequestsResponse'
50855+
security:
50856+
- apiKeyAuth: []
50857+
appKeyAuth: []
50858+
- AuthZ: []
50859+
summary: Resolve on call page
50860+
tags:
50861+
- On-Call Paging
5065850862
/api/v2/on-call/schedules:
5065950863
post:
5066050864
description: Create a new on-call schedule
@@ -60568,6 +60772,8 @@ tags:
6056860772
externalDocs:
6056960773
url: https://docs.datadoghq.com/service_management/on-call/
6057060774
name: On-Call
60775+
- description: Auto-generated tag On-Call Paging
60776+
name: On-Call Paging
6057160777
- description: 'Configure your [Datadog Opsgenie integration](https://docs.datadoghq.com/integrations/opsgenie/)
6057260778

6057360779
directly through the Datadog API.'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Acknowledge on call page returns "Accepted" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::On - CallPagingAPI.new
5+
p api_instance.acknowledge_on_call_page("15e74b8b-f865-48d0-bcc5-453323ed2c8f")
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Create on call page returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::On - CallPagingAPI.new
5+
6+
body = DatadogAPIClient::V2::CreatePageRequest.new({
7+
data: DatadogAPIClient::V2::CreatePageRequestData.new({
8+
attributes: DatadogAPIClient::V2::CreatePageRequestDataAttributes.new({
9+
description: "Page details",
10+
tags: [
11+
"service:test",
12+
],
13+
target: DatadogAPIClient::V2::CreatePageRequestDataAttributesTarget.new({
14+
identifier: "my-team",
15+
type: "team_handle",
16+
}),
17+
title: "Page title",
18+
urgency: "low",
19+
}),
20+
type: DatadogAPIClient::V2::CreatePageRequestDataType::PAGES,
21+
}),
22+
})
23+
p api_instance.create_on_call_page(body)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Escalate on call page returns "Accepted" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::On - CallPagingAPI.new
5+
p api_instance.escalate_on_call_page("15e74b8b-f865-48d0-bcc5-453323ed2c8f")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Resolve on call page returns "Accepted" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::On - CallPagingAPI.new
5+
p api_instance.resolve_on_call_page("15e74b8b-f865-48d0-bcc5-453323ed2c8f")

features/scenarios_model_mapping.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2062,6 +2062,18 @@
20622062
"schedule_id" => "String",
20632063
"body" => "ScheduleUpdateRequest",
20642064
},
2065+
"v2.CreateOnCallPage" => {
2066+
"body" => "CreatePageRequest",
2067+
},
2068+
"v2.AcknowledgeOnCallPage" => {
2069+
"page_id" => "UUID",
2070+
},
2071+
"v2.EscalateOnCallPage" => {
2072+
"page_id" => "UUID",
2073+
},
2074+
"v2.ResolveOnCallPage" => {
2075+
"page_id" => "UUID",
2076+
},
20652077
"v2.GetOrgConfig" => {
20662078
"org_config_name" => "String",
20672079
},

features/v2/on-call_paging.feature

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@endpoint(on-call-paging) @endpoint(on-call-paging-v2)
2+
Feature: On-Call Paging
3+
Auto-generated tag On-Call Paging
4+
5+
Background:
6+
Given a valid "apiKeyAuth" key in the system
7+
And a valid "appKeyAuth" key in the system
8+
And an instance of "On-CallPaging" API
9+
10+
@generated @skip @team:DataDog/bugle
11+
Scenario: Acknowledge on call page returns "Accepted" response
12+
Given new "AcknowledgeOnCallPage" request
13+
And request contains "page_id" parameter from "REPLACE.ME"
14+
When the request is sent
15+
Then the response status is 202 Accepted
16+
17+
@generated @skip @team:DataDog/bugle
18+
Scenario: Create on call page returns "OK" response
19+
Given new "CreateOnCallPage" request
20+
And body with value {"data": {"attributes": {"description": "Page details", "tags": ["service:test"], "target": {"identifier": "my-team", "type": "team_handle"}, "title": "Page title", "urgency": "low"}, "type": "pages"}}
21+
When the request is sent
22+
Then the response status is 200 OK
23+
24+
@generated @skip @team:DataDog/bugle
25+
Scenario: Escalate on call page returns "Accepted" response
26+
Given new "EscalateOnCallPage" request
27+
And request contains "page_id" parameter from "REPLACE.ME"
28+
When the request is sent
29+
Then the response status is 202 Accepted
30+
31+
@generated @skip @team:DataDog/bugle
32+
Scenario: Resolve on call page returns "Accepted" response
33+
Given new "ResolveOnCallPage" request
34+
And request contains "page_id" parameter from "REPLACE.ME"
35+
When the request is sent
36+
Then the response status is 202 Accepted

features/v2/undo.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,6 +1853,38 @@
18531853
"type": "idempotent"
18541854
}
18551855
},
1856+
"CreateOnCallPage": {
1857+
"tag": "On-Call Paging",
1858+
"undo": {
1859+
"operationId": "TODO",
1860+
"parameters": [],
1861+
"type": "unsafe"
1862+
}
1863+
},
1864+
"AcknowledgeOnCallPage": {
1865+
"tag": "On-Call Paging",
1866+
"undo": {
1867+
"operationId": "TODO",
1868+
"parameters": [],
1869+
"type": "unsafe"
1870+
}
1871+
},
1872+
"EscalateOnCallPage": {
1873+
"tag": "On-Call Paging",
1874+
"undo": {
1875+
"operationId": "TODO",
1876+
"parameters": [],
1877+
"type": "unsafe"
1878+
}
1879+
},
1880+
"ResolveOnCallPage": {
1881+
"tag": "On-Call Paging",
1882+
"undo": {
1883+
"operationId": "TODO",
1884+
"parameters": [],
1885+
"type": "unsafe"
1886+
}
1887+
},
18561888
"CreateOnCallSchedule": {
18571889
"tag": "On-Call",
18581890
"undo": {

0 commit comments

Comments
 (0)