Skip to content

Commit 8b9ff11

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add examples for DORA deployments and failures list endpoints (#3093)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 2e5eb1b commit 8b9ff11

File tree

1 file changed

+177
-0
lines changed

1 file changed

+177
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15837,6 +15837,15 @@ components:
1583715837
type: object
1583815838
DORAListDeploymentsRequest:
1583915839
description: Request to get a list of deployments.
15840+
example:
15841+
data:
15842+
attributes:
15843+
from: '2025-01-01T00:00:00Z'
15844+
limit: 100
15845+
query: service:(shopist OR api-service) env:production team:backend
15846+
sort: -started_at
15847+
to: '2025-01-31T23:59:59Z'
15848+
type: dora_deployments_list_request
1584015849
properties:
1584115850
data:
1584215851
$ref: '#/components/schemas/DORAListDeploymentsRequestData'
@@ -15845,6 +15854,13 @@ components:
1584515854
type: object
1584615855
DORAListDeploymentsRequestAttributes:
1584715856
description: Attributes to get a list of deployments.
15857+
example:
15858+
from: '2025-01-01T00:00:00Z'
15859+
limit: 500
15860+
query: service:(shopist OR api-service OR payment-service) env:(production
15861+
OR staging) team:(backend OR platform)
15862+
sort: -started_at
15863+
to: '2025-01-31T23:59:59Z'
1584815864
properties:
1584915865
from:
1585015866
description: Minimum timestamp for requested events.
@@ -15869,6 +15885,14 @@ components:
1586915885
type: object
1587015886
DORAListDeploymentsRequestData:
1587115887
description: The JSON:API data.
15888+
example:
15889+
attributes:
15890+
from: '2025-01-15T08:00:00Z'
15891+
limit: 200
15892+
query: env:production service:payment-service version:*v2*
15893+
sort: -finished_at
15894+
to: '2025-01-15T18:00:00Z'
15895+
type: dora_deployments_list_request
1587215896
properties:
1587315897
attributes:
1587415898
$ref: '#/components/schemas/DORAListDeploymentsRequestAttributes'
@@ -15886,6 +15910,15 @@ components:
1588615910
- DORA_DEPLOYMENTS_LIST_REQUEST
1588715911
DORAListFailuresRequest:
1588815912
description: Request to get a list of failures.
15913+
example:
15914+
data:
15915+
attributes:
15916+
from: '2025-01-01T00:00:00Z'
15917+
limit: 100
15918+
query: severity:(SEV-1 OR SEV-2) env:production team:backend
15919+
sort: -started_at
15920+
to: '2025-01-31T23:59:59Z'
15921+
type: dora_failures_list_request
1588915922
properties:
1589015923
data:
1589115924
$ref: '#/components/schemas/DORAListFailuresRequestData'
@@ -15894,6 +15927,13 @@ components:
1589415927
type: object
1589515928
DORAListFailuresRequestAttributes:
1589615929
description: Attributes to get a list of failures.
15930+
example:
15931+
from: '2025-01-01T00:00:00Z'
15932+
limit: 500
15933+
query: severity:(SEV-1 OR SEV-2) env:(production OR staging) service:(shopist
15934+
OR api-service OR payment-service) team:(backend OR platform OR payments)
15935+
sort: -started_at
15936+
to: '2025-01-31T23:59:59Z'
1589715937
properties:
1589815938
from:
1589915939
description: Minimum timestamp for requested events.
@@ -15918,6 +15958,14 @@ components:
1591815958
type: object
1591915959
DORAListFailuresRequestData:
1592015960
description: The JSON:API data.
15961+
example:
15962+
attributes:
15963+
from: '2025-01-15T00:00:00Z'
15964+
limit: 200
15965+
query: severity:SEV-1 service:(api-service OR payment-service) env:production
15966+
sort: -finished_at
15967+
to: '2025-01-15T23:59:59Z'
15968+
type: dora_failures_list_request
1592115969
properties:
1592215970
attributes:
1592315971
$ref: '#/components/schemas/DORAListFailuresRequestAttributes'
@@ -15935,6 +15983,39 @@ components:
1593515983
- DORA_FAILURES_LIST_REQUEST
1593615984
DORAListResponse:
1593715985
description: Response for the DORA list endpoints.
15986+
example:
15987+
data:
15988+
- attributes:
15989+
custom_tags:
15990+
- language:java
15991+
- department:engineering
15992+
- region:us-east-1
15993+
env: production
15994+
finished_at: 1693491984000000000
15995+
git:
15996+
commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588
15997+
repository_url: https://github.com/organization/example-repository
15998+
service: shopist
15999+
started_at: 1693491974000000000
16000+
team: backend
16001+
version: v1.12.07
16002+
id: 4242fcdd31586083
16003+
type: dora_deployment
16004+
- attributes:
16005+
custom_tags:
16006+
- language:go
16007+
- department:platform
16008+
env: production
16009+
finished_at: 1693492084000000000
16010+
git:
16011+
commit_sha: 77bdc9350f2cc9b250b69abddab733dd55e1a599
16012+
repository_url: https://github.com/organization/api-service
16013+
service: api-service
16014+
started_at: 1693492074000000000
16015+
team: backend
16016+
version: v2.1.0
16017+
id: 4242fcdd31586084
16018+
type: dora_deployment
1593816019
properties:
1593916020
data:
1594016021
description: The list of DORA events.
@@ -66871,6 +66952,24 @@ paths:
6687166952
'200':
6687266953
content:
6687366954
application/json:
66955+
example:
66956+
data:
66957+
attributes:
66958+
custom_tags:
66959+
- language:java
66960+
- department:engineering
66961+
- region:us-east-1
66962+
env: staging
66963+
finished_at: 1693491984000000000
66964+
git:
66965+
commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588
66966+
repository_url: https://github.com/organization/example-repository
66967+
service: shopist
66968+
started_at: 1693491974000000000
66969+
team: backend
66970+
version: v1.12.07
66971+
id: 4242fcdd31586083
66972+
type: dora_deployment
6687466973
schema:
6687566974
$ref: '#/components/schemas/DORAFetchResponse'
6687666975
description: OK
@@ -66989,6 +67088,64 @@ paths:
6698967088
'200':
6699067089
content:
6699167090
application/json:
67091+
example:
67092+
data:
67093+
- attributes:
67094+
custom_tags:
67095+
- language:java
67096+
- department:engineering
67097+
- region:us-east-1
67098+
env: production
67099+
finished_at: 1693491984000000000
67100+
git:
67101+
commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588
67102+
repository_url: https://github.com/organization/example-repository
67103+
name: Web server is down; all requests are failing.
67104+
services:
67105+
- shopist
67106+
severity: SEV-1
67107+
started_at: 1693491974000000000
67108+
team: backend
67109+
id: 4242fcdd31586085
67110+
type: dora_failure
67111+
- attributes:
67112+
custom_tags:
67113+
- language:go
67114+
- department:platform
67115+
env: production
67116+
finished_at: 1693492084000000000
67117+
git:
67118+
commit_sha: 77bdc9350f2cc9b250b69abddab733dd55e1a599
67119+
repository_url: https://github.com/organization/api-service
67120+
name: Database connection timeout
67121+
services:
67122+
- api-service
67123+
- payment-service
67124+
severity: SEV-1
67125+
started_at: 1693492074000000000
67126+
team: platform
67127+
version: v2.1.0
67128+
id: 4242fcdd31586086
67129+
type: dora_failure
67130+
- attributes:
67131+
custom_tags:
67132+
- language:python
67133+
- department:payments
67134+
- region:eu-west-1
67135+
env: staging
67136+
finished_at: 1693492204000000000
67137+
git:
67138+
commit_sha: 99edc9350f2cc9b250b69abddab733dd55e1a601
67139+
repository_url: https://github.com/organization/payment-service
67140+
name: Payment gateway API rate limit exceeded
67141+
services:
67142+
- payment-service
67143+
severity: SEV-2
67144+
started_at: 1693492174000000000
67145+
team: payments
67146+
version: v1.8.3
67147+
id: 4242fcdd31586087
67148+
type: dora_failure
6699267149
schema:
6699367150
$ref: '#/components/schemas/DORAListResponse'
6699467151
description: OK
@@ -67028,6 +67185,26 @@ paths:
6702867185
'200':
6702967186
content:
6703067187
application/json:
67188+
example:
67189+
data:
67190+
attributes:
67191+
custom_tags:
67192+
- language:java
67193+
- department:engineering
67194+
- region:us-east-1
67195+
env: staging
67196+
finished_at: 1693491984000000000
67197+
git:
67198+
commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588
67199+
repository_url: https://github.com/organization/example-repository
67200+
name: Web server is down; all requests are failing.
67201+
services:
67202+
- shopist
67203+
severity: High
67204+
started_at: 1693491974000000000
67205+
team: backend
67206+
id: 4242fcdd31586085
67207+
type: dora_failure
6703167208
schema:
6703267209
$ref: '#/components/schemas/DORAFetchResponse'
6703367210
description: OK

0 commit comments

Comments
 (0)