Skip to content

Commit 948ff9c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit aa3898bf of spec repo
1 parent 375c92b commit 948ff9c

21 files changed

+1841
-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-20 07:21:24.854718",
8-
"spec_repo_commit": "fec20f97"
7+
"regenerated": "2025-05-21 13:58:48.981698",
8+
"spec_repo_commit": "aa3898bf"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-20 07:21:24.871057",
13-
"spec_repo_commit": "fec20f97"
12+
"regenerated": "2025-05-21 13:58:48.997838",
13+
"spec_repo_commit": "aa3898bf"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 271 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11049,6 +11049,25 @@ components:
1104911049
type: string
1105011050
x-enum-varnames:
1105111051
- DORA_DEPLOYMENT
11052+
DORAEvent:
11053+
description: A DORA event.
11054+
properties:
11055+
attributes:
11056+
description: The attributes of the event.
11057+
type: object
11058+
id:
11059+
description: The ID of the event.
11060+
type: string
11061+
type:
11062+
description: The type of the event.
11063+
type: string
11064+
type: object
11065+
DORAFetchResponse:
11066+
description: Response for the DORA fetch endpoints.
11067+
properties:
11068+
data:
11069+
$ref: '#/components/schemas/DORAEvent'
11070+
type: object
1105211071
DORAGitInfo:
1105311072
description: Git info for DORA Metrics events.
1105411073
properties:
@@ -11084,7 +11103,8 @@ components:
1108411103
git:
1108511104
$ref: '#/components/schemas/DORAGitInfo'
1108611105
id:
11087-
description: Incident ID. Required to update a previously sent incident.
11106+
description: Incident ID. Should have at least 16 characters. Required to
11107+
update a previously sent incident.
1108811108
type: string
1108911109
name:
1109011110
description: Incident name.
@@ -11159,6 +11179,95 @@ components:
1115911179
type: string
1116011180
x-enum-varnames:
1116111181
- DORA_INCIDENT
11182+
DORAListDeploymentsRequest:
11183+
description: Request to get a list of deployments.
11184+
properties:
11185+
data:
11186+
$ref: '#/components/schemas/DORAListDeploymentsRequestData'
11187+
required:
11188+
- data
11189+
type: object
11190+
DORAListDeploymentsRequestAttributes:
11191+
description: Attributes to get a list of deployments.
11192+
properties:
11193+
from:
11194+
description: Minimum timestamp for requested events.
11195+
format: date-time
11196+
type: string
11197+
limit:
11198+
default: 10
11199+
description: Maximum number of events in the response.
11200+
format: int32
11201+
maximum: 1000
11202+
type: integer
11203+
query:
11204+
description: Search query with event platform syntax.
11205+
type: string
11206+
sort:
11207+
description: Sort order (prefixed with `-` for descending).
11208+
type: string
11209+
to:
11210+
description: Maximum timestamp for requested events.
11211+
format: date-time
11212+
type: string
11213+
type: object
11214+
DORAListDeploymentsRequestData:
11215+
description: The JSON:API data.
11216+
properties:
11217+
attributes:
11218+
$ref: '#/components/schemas/DORAListDeploymentsRequestAttributes'
11219+
required:
11220+
- attributes
11221+
type: object
11222+
DORAListFailuresRequest:
11223+
description: Request to get a list of failures.
11224+
properties:
11225+
data:
11226+
$ref: '#/components/schemas/DORAListFailuresRequestData'
11227+
required:
11228+
- data
11229+
type: object
11230+
DORAListFailuresRequestAttributes:
11231+
description: Attributes to get a list of failures.
11232+
properties:
11233+
from:
11234+
description: Minimum timestamp for requested events.
11235+
format: date-time
11236+
type: string
11237+
limit:
11238+
default: 10
11239+
description: Maximum number of events in the response.
11240+
format: int32
11241+
maximum: 1000
11242+
type: integer
11243+
query:
11244+
description: Search query with event platform syntax.
11245+
type: string
11246+
sort:
11247+
description: Sort order (prefixed with `-` for descending).
11248+
type: string
11249+
to:
11250+
description: Maximum timestamp for requested events.
11251+
format: date-time
11252+
type: string
11253+
type: object
11254+
DORAListFailuresRequestData:
11255+
description: The JSON:API data.
11256+
properties:
11257+
attributes:
11258+
$ref: '#/components/schemas/DORAListFailuresRequestAttributes'
11259+
required:
11260+
- attributes
11261+
type: object
11262+
DORAListResponse:
11263+
description: Response for the DORA list endpoints.
11264+
properties:
11265+
data:
11266+
description: The list of DORA events.
11267+
items:
11268+
$ref: '#/components/schemas/DORAEvent'
11269+
type: array
11270+
type: object
1116211271
DashboardListAddItemsRequest:
1116311272
description: Request containing a list of dashboards to add.
1116411273
properties:
@@ -45500,10 +45609,163 @@ paths:
4550045609
x-unstable: '**Note**: This endpoint is in public beta.
4550145610

4550245611
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
45612+
/api/v2/dora/deployments:
45613+
post:
45614+
description: Use this API endpoint to get a list of deployment events.
45615+
operationId: ListDORADeployments
45616+
requestBody:
45617+
content:
45618+
application/json:
45619+
schema:
45620+
$ref: '#/components/schemas/DORAListDeploymentsRequest'
45621+
required: true
45622+
responses:
45623+
'200':
45624+
content:
45625+
application/json:
45626+
schema:
45627+
$ref: '#/components/schemas/DORAListResponse'
45628+
description: OK
45629+
'400':
45630+
content:
45631+
application/json:
45632+
schema:
45633+
$ref: '#/components/schemas/JSONAPIErrorResponse'
45634+
description: Bad Request
45635+
'403':
45636+
$ref: '#/components/responses/NotAuthorizedResponse'
45637+
'429':
45638+
$ref: '#/components/responses/TooManyRequestsResponse'
45639+
security:
45640+
- apiKeyAuth: []
45641+
appKeyAuth: []
45642+
summary: Get a list of deployment events
45643+
tags:
45644+
- DORA Metrics
45645+
x-codegen-request-body-name: body
45646+
x-permission:
45647+
operator: OR
45648+
permissions:
45649+
- dora_metrics_read
45650+
/api/v2/dora/deployments/{deployment_id}:
45651+
get:
45652+
description: Use this API endpoint to get a deployment event.
45653+
operationId: GetDORADeployment
45654+
parameters:
45655+
- description: The ID of the deployment event.
45656+
in: path
45657+
name: deployment_id
45658+
required: true
45659+
schema:
45660+
type: string
45661+
responses:
45662+
'200':
45663+
content:
45664+
application/json:
45665+
schema:
45666+
$ref: '#/components/schemas/DORAFetchResponse'
45667+
description: OK
45668+
'400':
45669+
content:
45670+
application/json:
45671+
schema:
45672+
$ref: '#/components/schemas/JSONAPIErrorResponse'
45673+
description: Bad Request
45674+
'403':
45675+
$ref: '#/components/responses/NotAuthorizedResponse'
45676+
'429':
45677+
$ref: '#/components/responses/TooManyRequestsResponse'
45678+
security:
45679+
- apiKeyAuth: []
45680+
- appKeyAuth: []
45681+
summary: Get a deployment event
45682+
tags:
45683+
- DORA Metrics
45684+
x-codegen-request-body-name: body
45685+
x-permission:
45686+
operator: OR
45687+
permissions:
45688+
- dora_metrics_read
45689+
/api/v2/dora/failures:
45690+
post:
45691+
description: Use this API endpoint to get a list of failure events.
45692+
operationId: ListDORAFailures
45693+
requestBody:
45694+
content:
45695+
application/json:
45696+
schema:
45697+
$ref: '#/components/schemas/DORAListFailuresRequest'
45698+
required: true
45699+
responses:
45700+
'200':
45701+
content:
45702+
application/json:
45703+
schema:
45704+
$ref: '#/components/schemas/DORAListResponse'
45705+
description: OK
45706+
'400':
45707+
content:
45708+
application/json:
45709+
schema:
45710+
$ref: '#/components/schemas/JSONAPIErrorResponse'
45711+
description: Bad Request
45712+
'403':
45713+
$ref: '#/components/responses/NotAuthorizedResponse'
45714+
'429':
45715+
$ref: '#/components/responses/TooManyRequestsResponse'
45716+
security:
45717+
- apiKeyAuth: []
45718+
appKeyAuth: []
45719+
summary: Get a list of failure events
45720+
tags:
45721+
- DORA Metrics
45722+
x-codegen-request-body-name: body
45723+
x-permission:
45724+
operator: OR
45725+
permissions:
45726+
- dora_metrics_read
45727+
/api/v2/dora/failures/{failure_id}:
45728+
get:
45729+
description: Use this API endpoint to get a failure event.
45730+
operationId: GetDORAFailure
45731+
parameters:
45732+
- description: The ID of the failure event.
45733+
in: path
45734+
name: failure_id
45735+
required: true
45736+
schema:
45737+
type: string
45738+
responses:
45739+
'200':
45740+
content:
45741+
application/json:
45742+
schema:
45743+
$ref: '#/components/schemas/DORAFetchResponse'
45744+
description: OK
45745+
'400':
45746+
content:
45747+
application/json:
45748+
schema:
45749+
$ref: '#/components/schemas/JSONAPIErrorResponse'
45750+
description: Bad Request
45751+
'403':
45752+
$ref: '#/components/responses/NotAuthorizedResponse'
45753+
'429':
45754+
$ref: '#/components/responses/TooManyRequestsResponse'
45755+
security:
45756+
- apiKeyAuth: []
45757+
- appKeyAuth: []
45758+
summary: Get a failure event
45759+
tags:
45760+
- DORA Metrics
45761+
x-codegen-request-body-name: body
45762+
x-permission:
45763+
operator: OR
45764+
permissions:
45765+
- dora_metrics_read
4550345766
/api/v2/dora/incident:
4550445767
post:
45505-
description: 'Use this API endpoint to provide data about incidents for DORA
45506-
metrics.
45768+
description: 'Use this API endpoint to provide failure data for DORA metrics.
4550745769

4550845770

4550945771
This is necessary for:
@@ -61873,9 +62135,12 @@ tags:
6187362135
See the [Container Monitoring page](https://docs.datadoghq.com/containers/) for
6187462136
more information.
6187562137
name: Containers
61876-
- description: Send events for DORA Metrics to measure and improve software delivery.
61877-
See the [DORA Metrics page](https://docs.datadoghq.com/dora_metrics/) for more
61878-
information.
62138+
- description: 'Search or send events for DORA Metrics to measure and improve your
62139+
software delivery performance. See the [DORA Metrics page](https://docs.datadoghq.com/dora_metrics/)
62140+
for more information.
62141+
62142+
62143+
**Note**: DORA Metrics is not available in the US1-FED site.'
6187962144
name: DORA Metrics
6188062145
- description: 'Interact with your dashboard lists through the API to
6188162146

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get a deployment event returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new
5+
p api_instance.get_dora_deployment("deployment_id")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get a failure event returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new
5+
p api_instance.get_dora_failure("failure_id")
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Get a list of deployment events returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new
5+
6+
body = DatadogAPIClient::V2::DORAListDeploymentsRequest.new({
7+
data: DatadogAPIClient::V2::DORAListDeploymentsRequestData.new({
8+
attributes: DatadogAPIClient::V2::DORAListDeploymentsRequestAttributes.new({
9+
limit: 10,
10+
}),
11+
}),
12+
})
13+
p api_instance.list_dora_deployments(body)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Get a list of failure events returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new
5+
6+
body = DatadogAPIClient::V2::DORAListFailuresRequest.new({
7+
data: DatadogAPIClient::V2::DORAListFailuresRequestData.new({
8+
attributes: DatadogAPIClient::V2::DORAListFailuresRequestAttributes.new({
9+
limit: 10,
10+
}),
11+
}),
12+
})
13+
p api_instance.list_dora_failures(body)

features/scenarios_model_mapping.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,6 +1543,18 @@
15431543
"v2.CreateDORADeployment" => {
15441544
"body" => "DORADeploymentRequest",
15451545
},
1546+
"v2.ListDORADeployments" => {
1547+
"body" => "DORAListDeploymentsRequest",
1548+
},
1549+
"v2.GetDORADeployment" => {
1550+
"deployment_id" => "String",
1551+
},
1552+
"v2.ListDORAFailures" => {
1553+
"body" => "DORAListFailuresRequest",
1554+
},
1555+
"v2.GetDORAFailure" => {
1556+
"failure_id" => "String",
1557+
},
15461558
"v2.CreateDORAIncident" => {
15471559
"body" => "DORAIncidentRequest",
15481560
},

0 commit comments

Comments
 (0)