Skip to content

Commit 95b6f42

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 863c0c0c of spec repo
1 parent cf1229e commit 95b6f42

21 files changed

+1413
-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:42.214394",
8-
"spec_repo_commit": "d1252b21"
7+
"regenerated": "2025-04-30 13:11:52.596689",
8+
"spec_repo_commit": "863c0c0c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-29 18:57:42.231162",
13-
"spec_repo_commit": "d1252b21"
12+
"regenerated": "2025-04-30 13:11:52.615755",
13+
"spec_repo_commit": "863c0c0c"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+235
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,136 @@ 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+
servers:
50835+
- url: https://{site}
50836+
variables:
50837+
site:
50838+
default: navy.oncall.datadoghq.com
50839+
description: The globally available endpoint for On-Call.
50840+
enum:
50841+
- saffron.oncall.datadoghq.com
50842+
- navy.oncall.datadoghq.com
50843+
- coral.oncall.datadoghq.com
50844+
- teal.oncall.datadoghq.com
50845+
- ivory.oncall.datadoghq.eu
50846+
- beige.oncall.datadoghq.eu
50847+
- url: '{protocol}://{name}'
50848+
variables:
50849+
name:
50850+
default: api.datadoghq.com
50851+
description: Full site DNS name.
50852+
protocol:
50853+
default: https
50854+
description: The protocol for accessing the API.
50855+
- url: https://{subdomain}.{site}
50856+
variables:
50857+
site:
50858+
default: datadoghq.com
50859+
description: Any Datadog deployment.
50860+
subdomain:
50861+
default: api
50862+
description: The subdomain where the API is deployed.
50863+
summary: Escalate on call page
50864+
tags:
50865+
- On-Call Paging
50866+
/api/v2/on-call/pages/{page_id}/resolve:
50867+
post:
50868+
description: Resolves an On-Call page
50869+
operationId: ResolveOnCallPage
50870+
parameters:
50871+
- description: The page ID
50872+
in: path
50873+
name: page_id
50874+
required: true
50875+
schema:
50876+
example: 15e74b8b-f865-48d0-bcc5-453323ed2c8f
50877+
format: uuid
50878+
type: string
50879+
responses:
50880+
'202':
50881+
description: Accepted
50882+
'429':
50883+
$ref: '#/components/responses/TooManyRequestsResponse'
50884+
security:
50885+
- apiKeyAuth: []
50886+
appKeyAuth: []
50887+
- AuthZ: []
50888+
summary: Resolve on call page
50889+
tags:
50890+
- On-Call Paging
5065850891
/api/v2/on-call/schedules:
5065950892
post:
5066050893
description: Create a new on-call schedule
@@ -60568,6 +60801,8 @@ tags:
6056860801
externalDocs:
6056960802
url: https://docs.datadoghq.com/service_management/on-call/
6057060803
name: On-Call
60804+
- description: Auto-generated tag On-Call Paging
60805+
name: On-Call Paging
6057160806
- description: 'Configure your [Datadog Opsgenie integration](https://docs.datadoghq.com/integrations/opsgenie/)
6057260807

6057360808
directly through the Datadog API.'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* Acknowledge on call page returns "Accepted" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.OnCallPagingApi(configuration);
9+
10+
const params: v2.OnCallPagingApiAcknowledgeOnCallPageRequest = {
11+
pageId: "15e74b8b-f865-48d0-bcc5-453323ed2c8f",
12+
};
13+
14+
apiInstance
15+
.acknowledgeOnCallPage(params)
16+
.then((data: any) => {
17+
console.log(
18+
"API called successfully. Returned data: " + JSON.stringify(data)
19+
);
20+
})
21+
.catch((error: any) => console.error(error));
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* Create on call page returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.OnCallPagingApi(configuration);
9+
10+
const params: v2.OnCallPagingApiCreateOnCallPageRequest = {
11+
body: {
12+
data: {
13+
attributes: {
14+
description: "Page details",
15+
tags: ["service:test"],
16+
target: {
17+
identifier: "my-team",
18+
type: "team_handle",
19+
},
20+
title: "Page title",
21+
urgency: "low",
22+
},
23+
type: "pages",
24+
},
25+
},
26+
};
27+
28+
apiInstance
29+
.createOnCallPage(params)
30+
.then((data: v2.CreatePageResponse) => {
31+
console.log(
32+
"API called successfully. Returned data: " + JSON.stringify(data)
33+
);
34+
})
35+
.catch((error: any) => console.error(error));
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* Escalate on call page returns "Accepted" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.OnCallPagingApi(configuration);
9+
10+
const params: v2.OnCallPagingApiEscalateOnCallPageRequest = {
11+
pageId: "15e74b8b-f865-48d0-bcc5-453323ed2c8f",
12+
};
13+
14+
apiInstance
15+
.escalateOnCallPage(params)
16+
.then((data: any) => {
17+
console.log(
18+
"API called successfully. Returned data: " + JSON.stringify(data)
19+
);
20+
})
21+
.catch((error: any) => console.error(error));
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* Resolve on call page returns "Accepted" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.OnCallPagingApi(configuration);
9+
10+
const params: v2.OnCallPagingApiResolveOnCallPageRequest = {
11+
pageId: "15e74b8b-f865-48d0-bcc5-453323ed2c8f",
12+
};
13+
14+
apiInstance
15+
.resolveOnCallPage(params)
16+
.then((data: any) => {
17+
console.log(
18+
"API called successfully. Returned data: " + JSON.stringify(data)
19+
);
20+
})
21+
.catch((error: any) => console.error(error));

0 commit comments

Comments
 (0)