Skip to content

Commit ce41b3c

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update spec to include new DORA API endpoints (#1772)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent d6e7e64 commit ce41b3c

29 files changed

+1340
-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": "2023-11-16 19:59:08.459513",
8-
"spec_repo_commit": "5dacc5ab"
7+
"regenerated": "2023-11-17 11:20:25.832617",
8+
"spec_repo_commit": "04139dfa"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-11-16 19:59:08.473074",
13-
"spec_repo_commit": "5dacc5ab"
12+
"regenerated": "2023-11-17 11:20:25.855529",
13+
"spec_repo_commit": "04139dfa"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 287 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4282,6 +4282,178 @@ components:
42824282
nullable: true
42834283
type: string
42844284
type: object
4285+
DORADeploymentRequest:
4286+
description: Request to create a DORA deployment event.
4287+
properties:
4288+
data:
4289+
$ref: '#/components/schemas/DORADeploymentRequestData'
4290+
required:
4291+
- data
4292+
type: object
4293+
DORADeploymentRequestAttributes:
4294+
description: Attributes to create a DORA deployment event.
4295+
properties:
4296+
finished_at:
4297+
description: Unix timestamp in nanoseconds when the deployment finished.
4298+
It should not be older than 3 hours.
4299+
example: 1693491984000000000
4300+
format: int64
4301+
type: integer
4302+
git:
4303+
$ref: '#/components/schemas/DORAGitInfo'
4304+
id:
4305+
description: Deployment ID.
4306+
type: string
4307+
service:
4308+
description: Service name from a service available in the Service Catalog.
4309+
example: shopist
4310+
type: string
4311+
started_at:
4312+
description: Unix timestamp in nanoseconds when the deployment started.
4313+
example: 1693491974000000000
4314+
format: int64
4315+
type: integer
4316+
version:
4317+
description: Version to correlate with [APM Deployment Tracking](https://docs.datadoghq.com/tracing/services/deployment_tracking/).
4318+
example: v1.12.07
4319+
type: string
4320+
required:
4321+
- service
4322+
- started_at
4323+
- finished_at
4324+
type: object
4325+
DORADeploymentRequestData:
4326+
description: The JSON:API data.
4327+
properties:
4328+
attributes:
4329+
$ref: '#/components/schemas/DORADeploymentRequestAttributes'
4330+
required:
4331+
- attributes
4332+
type: object
4333+
DORADeploymentResponse:
4334+
description: Response after receiving a DORA deployment event.
4335+
properties:
4336+
data:
4337+
$ref: '#/components/schemas/DORADeploymentResponseData'
4338+
required:
4339+
- data
4340+
type: object
4341+
DORADeploymentResponseData:
4342+
description: The JSON:API data.
4343+
properties:
4344+
id:
4345+
description: The ID of the received DORA deployment event.
4346+
example: 4242fcdd31586083
4347+
type: string
4348+
type:
4349+
$ref: '#/components/schemas/DORADeploymentType'
4350+
required:
4351+
- id
4352+
type: object
4353+
DORADeploymentType:
4354+
default: dora_deployment
4355+
description: JSON:API type for DORA deployment events.
4356+
enum:
4357+
- dora_deployment
4358+
example: dora_deployment
4359+
type: string
4360+
x-enum-varnames:
4361+
- DORA_DEPLOYMENT
4362+
DORAGitInfo:
4363+
description: Git info for DORA Metrics events.
4364+
properties:
4365+
commit_sha:
4366+
$ref: '#/components/schemas/GitCommitSHA'
4367+
repository_url:
4368+
$ref: '#/components/schemas/GitRepositoryURL'
4369+
required:
4370+
- repository_url
4371+
- commit_sha
4372+
type: object
4373+
DORAIncidentRequest:
4374+
description: Request to create a DORA incident event.
4375+
properties:
4376+
data:
4377+
$ref: '#/components/schemas/DORAIncidentRequestData'
4378+
required:
4379+
- data
4380+
type: object
4381+
DORAIncidentRequestAttributes:
4382+
description: Attributes to create a DORA incident event.
4383+
properties:
4384+
finished_at:
4385+
description: Unix timestamp in nanoseconds when the deployment finished.
4386+
It should not be older than 3 hours.
4387+
example: 1693491984000000000
4388+
format: int64
4389+
type: integer
4390+
git:
4391+
$ref: '#/components/schemas/DORAGitInfo'
4392+
id:
4393+
description: Incident ID
4394+
type: string
4395+
name:
4396+
description: Incident name.
4397+
example: Webserver is down failing all requests
4398+
type: string
4399+
service:
4400+
description: Service name from a service available in the Service Catalog.
4401+
example: shopist
4402+
type: string
4403+
severity:
4404+
description: Incident severity.
4405+
example: High
4406+
type: string
4407+
started_at:
4408+
description: Unix timestamp in nanoseconds when the deployment started.
4409+
example: 1693491974000000000
4410+
format: int64
4411+
type: integer
4412+
version:
4413+
description: Version to correlate with [APM Deployment Tracking](https://docs.datadoghq.com/tracing/services/deployment_tracking/).
4414+
example: v1.12.07
4415+
type: string
4416+
required:
4417+
- service
4418+
- started_at
4419+
type: object
4420+
DORAIncidentRequestData:
4421+
description: The JSON:API data.
4422+
properties:
4423+
attributes:
4424+
$ref: '#/components/schemas/DORAIncidentRequestAttributes'
4425+
required:
4426+
- attributes
4427+
type: object
4428+
DORAIncidentResponse:
4429+
description: Response after receiving a DORA incident event.
4430+
properties:
4431+
data:
4432+
$ref: '#/components/schemas/DORAIncidentResponseData'
4433+
required:
4434+
- data
4435+
type: object
4436+
DORAIncidentResponseData:
4437+
description: Response after receiving a DORA incident event.
4438+
properties:
4439+
id:
4440+
description: The ID of the received DORA incident event.
4441+
example: 4242fcdd31586083
4442+
type: string
4443+
type:
4444+
$ref: '#/components/schemas/DORAIncidentType'
4445+
required:
4446+
- id
4447+
type: object
4448+
DORAIncidentType:
4449+
default: dora_incident
4450+
description: JSON:API type for DORA incident events.
4451+
enum:
4452+
- dora_incident
4453+
example: dora_incident
4454+
type: string
4455+
x-enum-varnames:
4456+
- DORA_INCIDENT
42854457
DashboardListAddItemsRequest:
42864458
description: Request containing a list of dashboards to add.
42874459
properties:
@@ -6271,6 +6443,15 @@ components:
62716443
- _HANDLE
62726444
- EMAIL
62736445
- _EMAIL
6446+
GitCommitSHA:
6447+
description: Git Commit SHA.
6448+
example: 66adc9350f2cc9b250b69abddab733dd55e1a588
6449+
pattern: ^[a-fA-F0-9]{40,}$
6450+
type: string
6451+
GitRepositoryURL:
6452+
description: Git Repository URL
6453+
example: https://github.com/organization/example-repository
6454+
type: string
62746455
GroupScalarColumn:
62756456
description: A column containing the tag keys and values in a group.
62766457
properties:
@@ -21525,6 +21706,110 @@ paths:
2152521706
tags:
2152621707
- Dashboard Lists
2152721708
x-codegen-request-body-name: body
21709+
/api/v2/dora/deployment:
21710+
post:
21711+
description: 'Use this API endpoint to provide data about deployments for DORA
21712+
metrics.
21713+
21714+
21715+
This is necessary for:
21716+
21717+
- Deployment Frequency
21718+
21719+
- Change Lead Time
21720+
21721+
- Change Failure Rate'
21722+
operationId: CreateDORADeployment
21723+
requestBody:
21724+
content:
21725+
application/json:
21726+
schema:
21727+
$ref: '#/components/schemas/DORADeploymentRequest'
21728+
required: true
21729+
responses:
21730+
'200':
21731+
content:
21732+
application/json:
21733+
schema:
21734+
$ref: '#/components/schemas/DORADeploymentResponse'
21735+
description: OK
21736+
'202':
21737+
content:
21738+
application/json:
21739+
schema:
21740+
$ref: '#/components/schemas/DORADeploymentResponse'
21741+
description: OK - but delayed due to incident
21742+
'400':
21743+
content:
21744+
application/json:
21745+
schema:
21746+
$ref: '#/components/schemas/JSONAPIErrorResponse'
21747+
description: Bad Request
21748+
'403':
21749+
$ref: '#/components/responses/NotAuthorizedResponse'
21750+
'429':
21751+
$ref: '#/components/responses/TooManyRequestsResponse'
21752+
security:
21753+
- apiKeyAuth: []
21754+
summary: Send a deployment event for DORA Metrics
21755+
tags:
21756+
- DORA Metrics
21757+
x-codegen-request-body-name: body
21758+
x-unstable: '**Note**: This endpoint is in private beta for CI Pipeline Visibility
21759+
customers.
21760+
21761+
If you want to request access, complete the [form](https://forms.gle/Eqq6uXfGjYxmqpjDA).'
21762+
/api/v2/dora/incident:
21763+
post:
21764+
description: 'Use this API endpoint to provide data about incidents for DORA
21765+
metrics.
21766+
21767+
21768+
This is necessary for:
21769+
21770+
- Change Failure Rate
21771+
21772+
- Time to Restore'
21773+
operationId: CreateDORAIncident
21774+
requestBody:
21775+
content:
21776+
application/json:
21777+
schema:
21778+
$ref: '#/components/schemas/DORAIncidentRequest'
21779+
required: true
21780+
responses:
21781+
'200':
21782+
content:
21783+
application/json:
21784+
schema:
21785+
$ref: '#/components/schemas/DORAIncidentResponse'
21786+
description: OK
21787+
'202':
21788+
content:
21789+
application/json:
21790+
schema:
21791+
$ref: '#/components/schemas/DORAIncidentResponse'
21792+
description: OK - but delayed due to incident
21793+
'400':
21794+
content:
21795+
application/json:
21796+
schema:
21797+
$ref: '#/components/schemas/JSONAPIErrorResponse'
21798+
description: Bad Request
21799+
'403':
21800+
$ref: '#/components/responses/NotAuthorizedResponse'
21801+
'429':
21802+
$ref: '#/components/responses/TooManyRequestsResponse'
21803+
security:
21804+
- apiKeyAuth: []
21805+
summary: Send an incident event for DORA Metrics
21806+
tags:
21807+
- DORA Metrics
21808+
x-codegen-request-body-name: body
21809+
x-unstable: '**Note**: This endpoint is in private beta for CI Pipeline Visibility
21810+
customers.
21811+
21812+
If you want to request access, complete the [form](https://forms.gle/Eqq6uXfGjYxmqpjDA).'
2152821813
/api/v2/downtime:
2152921814
get:
2153021815
description: Get all scheduled downtimes.
@@ -31087,6 +31372,8 @@ tags:
3108731372
name: Container Images
3108831373
- description: The Containers API allows you to query container data for your organization.
3108931374
name: Containers
31375+
- description: Send events for DORA Metrics to measure and improve software delivery.
31376+
name: DORA Metrics
3109031377
- description: 'Interact with your dashboard lists through the API to
3109131378

3109231379
organize, find, and share all of your dashboards with your team and

docs/datadog_api_client.v2.api.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ dashboard\_lists\_api
7878
:members:
7979
:show-inheritance:
8080

81+
dora\_metrics\_api
82+
------------------
83+
84+
.. automodule:: datadog_api_client.v2.api.dora_metrics_api
85+
:members:
86+
:show-inheritance:
87+
8188
downtimes\_api
8289
--------------
8390

0 commit comments

Comments
 (0)