Skip to content

Commit 17af396

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Add public APIs to search DORA events (#2263)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent ba6baef commit 17af396

File tree

32 files changed

+2024
-15
lines changed

32 files changed

+2024
-15
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-05-23 19:26:09.057799",
8-
"spec_repo_commit": "471c4a2a"
7+
"regenerated": "2025-05-26 12:46:05.505223",
8+
"spec_repo_commit": "a6954c1c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-23 19:26:09.073608",
13-
"spec_repo_commit": "471c4a2a"
12+
"regenerated": "2025-05-26 12:46:05.522939",
13+
"spec_repo_commit": "a6954c1c"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 289 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11083,6 +11083,25 @@ components:
1108311083
type: string
1108411084
x-enum-varnames:
1108511085
- DORA_DEPLOYMENT
11086+
DORAEvent:
11087+
description: A DORA event.
11088+
properties:
11089+
attributes:
11090+
description: The attributes of the event.
11091+
type: object
11092+
id:
11093+
description: The ID of the event.
11094+
type: string
11095+
type:
11096+
description: The type of the event.
11097+
type: string
11098+
type: object
11099+
DORAFetchResponse:
11100+
description: Response for the DORA fetch endpoints.
11101+
properties:
11102+
data:
11103+
$ref: '#/components/schemas/DORAEvent'
11104+
type: object
1108611105
DORAGitInfo:
1108711106
description: Git info for DORA Metrics events.
1108811107
properties:
@@ -11118,7 +11137,8 @@ components:
1111811137
git:
1111911138
$ref: '#/components/schemas/DORAGitInfo'
1112011139
id:
11121-
description: Incident ID. Required to update a previously sent incident.
11140+
description: Incident ID. Must have at least 16 characters. Required to
11141+
update a previously sent incident.
1112211142
type: string
1112311143
name:
1112411144
description: Incident name.
@@ -11193,6 +11213,113 @@ components:
1119311213
type: string
1119411214
x-enum-varnames:
1119511215
- DORA_INCIDENT
11216+
DORAListDeploymentsRequest:
11217+
description: Request to get a list of deployments.
11218+
properties:
11219+
data:
11220+
$ref: '#/components/schemas/DORAListDeploymentsRequestData'
11221+
required:
11222+
- data
11223+
type: object
11224+
DORAListDeploymentsRequestAttributes:
11225+
description: Attributes to get a list of deployments.
11226+
properties:
11227+
from:
11228+
description: Minimum timestamp for requested events.
11229+
format: date-time
11230+
type: string
11231+
limit:
11232+
default: 10
11233+
description: Maximum number of events in the response.
11234+
format: int32
11235+
maximum: 1000
11236+
type: integer
11237+
query:
11238+
description: Search query with event platform syntax.
11239+
type: string
11240+
sort:
11241+
description: Sort order (prefixed with `-` for descending).
11242+
type: string
11243+
to:
11244+
description: Maximum timestamp for requested events.
11245+
format: date-time
11246+
type: string
11247+
type: object
11248+
DORAListDeploymentsRequestData:
11249+
description: The JSON:API data.
11250+
properties:
11251+
attributes:
11252+
$ref: '#/components/schemas/DORAListDeploymentsRequestAttributes'
11253+
type:
11254+
$ref: '#/components/schemas/DORAListDeploymentsRequestDataType'
11255+
required:
11256+
- attributes
11257+
type: object
11258+
DORAListDeploymentsRequestDataType:
11259+
description: The definition of `DORAListDeploymentsRequestDataType` object.
11260+
enum:
11261+
- dora_deployments_list_request
11262+
type: string
11263+
x-enum-varnames:
11264+
- DORA_DEPLOYMENTS_LIST_REQUEST
11265+
DORAListFailuresRequest:
11266+
description: Request to get a list of failures.
11267+
properties:
11268+
data:
11269+
$ref: '#/components/schemas/DORAListFailuresRequestData'
11270+
required:
11271+
- data
11272+
type: object
11273+
DORAListFailuresRequestAttributes:
11274+
description: Attributes to get a list of failures.
11275+
properties:
11276+
from:
11277+
description: Minimum timestamp for requested events.
11278+
format: date-time
11279+
type: string
11280+
limit:
11281+
default: 10
11282+
description: Maximum number of events in the response.
11283+
format: int32
11284+
maximum: 1000
11285+
type: integer
11286+
query:
11287+
description: Search query with event platform syntax.
11288+
type: string
11289+
sort:
11290+
description: Sort order (prefixed with `-` for descending).
11291+
type: string
11292+
to:
11293+
description: Maximum timestamp for requested events.
11294+
format: date-time
11295+
type: string
11296+
type: object
11297+
DORAListFailuresRequestData:
11298+
description: The JSON:API data.
11299+
properties:
11300+
attributes:
11301+
$ref: '#/components/schemas/DORAListFailuresRequestAttributes'
11302+
type:
11303+
$ref: '#/components/schemas/DORAListFailuresRequestDataType'
11304+
required:
11305+
- attributes
11306+
type: object
11307+
DORAListFailuresRequestDataType:
11308+
description: The definition of `DORAListFailuresRequestDataType` object.
11309+
enum:
11310+
- dora_failures_list_request
11311+
type: string
11312+
x-enum-varnames:
11313+
- DORA_FAILURES_LIST_REQUEST
11314+
DORAListResponse:
11315+
description: Response for the DORA list endpoints.
11316+
properties:
11317+
data:
11318+
description: The list of DORA events.
11319+
items:
11320+
$ref: '#/components/schemas/DORAEvent'
11321+
type: array
11322+
type: object
1119611323
DashboardListAddItemsRequest:
1119711324
description: Request containing a list of dashboards to add.
1119811325
properties:
@@ -45654,10 +45781,163 @@ paths:
4565445781
x-unstable: '**Note**: This endpoint is in public beta.
4565545782

4565645783
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
45784+
/api/v2/dora/deployments:
45785+
post:
45786+
description: Use this API endpoint to get a list of deployment events.
45787+
operationId: ListDORADeployments
45788+
requestBody:
45789+
content:
45790+
application/json:
45791+
schema:
45792+
$ref: '#/components/schemas/DORAListDeploymentsRequest'
45793+
required: true
45794+
responses:
45795+
'200':
45796+
content:
45797+
application/json:
45798+
schema:
45799+
$ref: '#/components/schemas/DORAListResponse'
45800+
description: OK
45801+
'400':
45802+
content:
45803+
application/json:
45804+
schema:
45805+
$ref: '#/components/schemas/JSONAPIErrorResponse'
45806+
description: Bad Request
45807+
'403':
45808+
$ref: '#/components/responses/NotAuthorizedResponse'
45809+
'429':
45810+
$ref: '#/components/responses/TooManyRequestsResponse'
45811+
security:
45812+
- apiKeyAuth: []
45813+
appKeyAuth: []
45814+
summary: Get a list of deployment events
45815+
tags:
45816+
- DORA Metrics
45817+
x-codegen-request-body-name: body
45818+
x-permission:
45819+
operator: OR
45820+
permissions:
45821+
- dora_metrics_read
45822+
/api/v2/dora/deployments/{deployment_id}:
45823+
get:
45824+
description: Use this API endpoint to get a deployment event.
45825+
operationId: GetDORADeployment
45826+
parameters:
45827+
- description: The ID of the deployment event.
45828+
in: path
45829+
name: deployment_id
45830+
required: true
45831+
schema:
45832+
type: string
45833+
responses:
45834+
'200':
45835+
content:
45836+
application/json:
45837+
schema:
45838+
$ref: '#/components/schemas/DORAFetchResponse'
45839+
description: OK
45840+
'400':
45841+
content:
45842+
application/json:
45843+
schema:
45844+
$ref: '#/components/schemas/JSONAPIErrorResponse'
45845+
description: Bad Request
45846+
'403':
45847+
$ref: '#/components/responses/NotAuthorizedResponse'
45848+
'429':
45849+
$ref: '#/components/responses/TooManyRequestsResponse'
45850+
security:
45851+
- apiKeyAuth: []
45852+
- appKeyAuth: []
45853+
summary: Get a deployment event
45854+
tags:
45855+
- DORA Metrics
45856+
x-codegen-request-body-name: body
45857+
x-permission:
45858+
operator: OR
45859+
permissions:
45860+
- dora_metrics_read
45861+
/api/v2/dora/failures:
45862+
post:
45863+
description: Use this API endpoint to get a list of failure events.
45864+
operationId: ListDORAFailures
45865+
requestBody:
45866+
content:
45867+
application/json:
45868+
schema:
45869+
$ref: '#/components/schemas/DORAListFailuresRequest'
45870+
required: true
45871+
responses:
45872+
'200':
45873+
content:
45874+
application/json:
45875+
schema:
45876+
$ref: '#/components/schemas/DORAListResponse'
45877+
description: OK
45878+
'400':
45879+
content:
45880+
application/json:
45881+
schema:
45882+
$ref: '#/components/schemas/JSONAPIErrorResponse'
45883+
description: Bad Request
45884+
'403':
45885+
$ref: '#/components/responses/NotAuthorizedResponse'
45886+
'429':
45887+
$ref: '#/components/responses/TooManyRequestsResponse'
45888+
security:
45889+
- apiKeyAuth: []
45890+
appKeyAuth: []
45891+
summary: Get a list of failure events
45892+
tags:
45893+
- DORA Metrics
45894+
x-codegen-request-body-name: body
45895+
x-permission:
45896+
operator: OR
45897+
permissions:
45898+
- dora_metrics_read
45899+
/api/v2/dora/failures/{failure_id}:
45900+
get:
45901+
description: Use this API endpoint to get a failure event.
45902+
operationId: GetDORAFailure
45903+
parameters:
45904+
- description: The ID of the failure event.
45905+
in: path
45906+
name: failure_id
45907+
required: true
45908+
schema:
45909+
type: string
45910+
responses:
45911+
'200':
45912+
content:
45913+
application/json:
45914+
schema:
45915+
$ref: '#/components/schemas/DORAFetchResponse'
45916+
description: OK
45917+
'400':
45918+
content:
45919+
application/json:
45920+
schema:
45921+
$ref: '#/components/schemas/JSONAPIErrorResponse'
45922+
description: Bad Request
45923+
'403':
45924+
$ref: '#/components/responses/NotAuthorizedResponse'
45925+
'429':
45926+
$ref: '#/components/responses/TooManyRequestsResponse'
45927+
security:
45928+
- apiKeyAuth: []
45929+
- appKeyAuth: []
45930+
summary: Get a failure event
45931+
tags:
45932+
- DORA Metrics
45933+
x-codegen-request-body-name: body
45934+
x-permission:
45935+
operator: OR
45936+
permissions:
45937+
- dora_metrics_read
4565745938
/api/v2/dora/incident:
4565845939
post:
45659-
description: 'Use this API endpoint to provide data about incidents for DORA
45660-
metrics.
45940+
description: 'Use this API endpoint to provide failure data for DORA metrics.
4566145941

4566245942

4566345943
This is necessary for:
@@ -62027,9 +62307,12 @@ tags:
6202762307
See the [Container Monitoring page](https://docs.datadoghq.com/containers/) for
6202862308
more information.
6202962309
name: Containers
62030-
- description: Send events for DORA Metrics to measure and improve software delivery.
62031-
See the [DORA Metrics page](https://docs.datadoghq.com/dora_metrics/) for more
62032-
information.
62310+
- description: 'Search or send events for DORA Metrics to measure and improve your
62311+
software delivery performance. See the [DORA Metrics page](https://docs.datadoghq.com/dora_metrics/)
62312+
for more information.
62313+
62314+
62315+
**Note**: DORA Metrics are not available in the US1-FED site.'
6203362316
name: DORA Metrics
6203462317
- description: 'Interact with your dashboard lists through the API to
6203562318

Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2025-05-22T10:44:58.608Z"

0 commit comments

Comments
 (0)