Skip to content

Commit 253c828

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 40e89223 of spec repo
1 parent 8e48eeb commit 253c828

21 files changed

+1000
-4
lines changed

.apigentools-info

+4-4
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.853175",
8-
"spec_repo_commit": "d1252b21"
7+
"regenerated": "2025-04-30 12:56:41.380753",
8+
"spec_repo_commit": "40e89223"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-29 18:57:43.868755",
13-
"spec_repo_commit": "d1252b21"
12+
"regenerated": "2025-04-30 12:56:41.395594",
13+
"spec_repo_commit": "40e89223"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+206
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.'

docs/datadog_api_client.v2.api.rst

+7
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,13 @@ datadog\_api\_client.v2.api.on\_call\_api module
326326
:members:
327327
:show-inheritance:
328328

329+
datadog\_api\_client.v2.api.on\_call\_paging\_api module
330+
--------------------------------------------------------
331+
332+
.. automodule:: datadog_api_client.v2.api.on_call_paging_api
333+
:members:
334+
:show-inheritance:
335+
329336
datadog\_api\_client.v2.api.opsgenie\_integration\_api module
330337
-------------------------------------------------------------
331338

docs/datadog_api_client.v2.model.rst

+56
Original file line numberDiff line numberDiff line change
@@ -3588,6 +3588,62 @@ datadog\_api\_client.v2.model.create\_open\_api\_response\_data module
35883588
:members:
35893589
:show-inheritance:
35903590

3591+
datadog\_api\_client.v2.model.create\_page\_request module
3592+
----------------------------------------------------------
3593+
3594+
.. automodule:: datadog_api_client.v2.model.create_page_request
3595+
:members:
3596+
:show-inheritance:
3597+
3598+
datadog\_api\_client.v2.model.create\_page\_request\_data module
3599+
----------------------------------------------------------------
3600+
3601+
.. automodule:: datadog_api_client.v2.model.create_page_request_data
3602+
:members:
3603+
:show-inheritance:
3604+
3605+
datadog\_api\_client.v2.model.create\_page\_request\_data\_attributes module
3606+
----------------------------------------------------------------------------
3607+
3608+
.. automodule:: datadog_api_client.v2.model.create_page_request_data_attributes
3609+
:members:
3610+
:show-inheritance:
3611+
3612+
datadog\_api\_client.v2.model.create\_page\_request\_data\_attributes\_target module
3613+
------------------------------------------------------------------------------------
3614+
3615+
.. automodule:: datadog_api_client.v2.model.create_page_request_data_attributes_target
3616+
:members:
3617+
:show-inheritance:
3618+
3619+
datadog\_api\_client.v2.model.create\_page\_request\_data\_type module
3620+
----------------------------------------------------------------------
3621+
3622+
.. automodule:: datadog_api_client.v2.model.create_page_request_data_type
3623+
:members:
3624+
:show-inheritance:
3625+
3626+
datadog\_api\_client.v2.model.create\_page\_response module
3627+
-----------------------------------------------------------
3628+
3629+
.. automodule:: datadog_api_client.v2.model.create_page_response
3630+
:members:
3631+
:show-inheritance:
3632+
3633+
datadog\_api\_client.v2.model.create\_page\_response\_data module
3634+
-----------------------------------------------------------------
3635+
3636+
.. automodule:: datadog_api_client.v2.model.create_page_response_data
3637+
:members:
3638+
:show-inheritance:
3639+
3640+
datadog\_api\_client.v2.model.create\_page\_response\_data\_type module
3641+
-----------------------------------------------------------------------
3642+
3643+
.. automodule:: datadog_api_client.v2.model.create_page_response_data_type
3644+
:members:
3645+
:show-inheritance:
3646+
35913647
datadog\_api\_client.v2.model.create\_rule\_request module
35923648
----------------------------------------------------------
35933649

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""
2+
Acknowledge on call page returns "Accepted" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.on_call_paging_api import OnCallPagingApi
7+
from uuid import UUID
8+
9+
configuration = Configuration()
10+
with ApiClient(configuration) as api_client:
11+
api_instance = OnCallPagingApi(api_client)
12+
api_instance.acknowledge_on_call_page(
13+
page_id=UUID("15e74b8b-f865-48d0-bcc5-453323ed2c8f"),
14+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
"""
2+
Create on call page returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.on_call_paging_api import OnCallPagingApi
7+
from datadog_api_client.v2.model.create_page_request import CreatePageRequest
8+
from datadog_api_client.v2.model.create_page_request_data import CreatePageRequestData
9+
from datadog_api_client.v2.model.create_page_request_data_attributes import CreatePageRequestDataAttributes
10+
from datadog_api_client.v2.model.create_page_request_data_attributes_target import CreatePageRequestDataAttributesTarget
11+
from datadog_api_client.v2.model.create_page_request_data_type import CreatePageRequestDataType
12+
13+
body = CreatePageRequest(
14+
data=CreatePageRequestData(
15+
attributes=CreatePageRequestDataAttributes(
16+
description="Page details",
17+
tags=[
18+
"service:test",
19+
],
20+
target=CreatePageRequestDataAttributesTarget(
21+
identifier="my-team",
22+
type="team_handle",
23+
),
24+
title="Page title",
25+
urgency="low",
26+
),
27+
type=CreatePageRequestDataType.PAGES,
28+
),
29+
)
30+
31+
configuration = Configuration()
32+
with ApiClient(configuration) as api_client:
33+
api_instance = OnCallPagingApi(api_client)
34+
response = api_instance.create_on_call_page(body=body)
35+
36+
print(response)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""
2+
Escalate on call page returns "Accepted" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.on_call_paging_api import OnCallPagingApi
7+
from uuid import UUID
8+
9+
configuration = Configuration()
10+
with ApiClient(configuration) as api_client:
11+
api_instance = OnCallPagingApi(api_client)
12+
api_instance.escalate_on_call_page(
13+
page_id=UUID("15e74b8b-f865-48d0-bcc5-453323ed2c8f"),
14+
)

0 commit comments

Comments
 (0)