Skip to content

Commit 569a37e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 35bc11b5 of spec repo
1 parent eed3ef9 commit 569a37e

11 files changed

+24
-24
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-02-04 14:10:00.992806",
8-
"spec_repo_commit": "4fb9047a"
7+
"regenerated": "2025-02-06 14:59:33.684800",
8+
"spec_repo_commit": "35bc11b5"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-02-04 14:10:01.007762",
13-
"spec_repo_commit": "4fb9047a"
12+
"regenerated": "2025-02-06 14:59:33.700281",
13+
"spec_repo_commit": "35bc11b5"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8695,7 +8695,7 @@ components:
86958695
description: Unix timestamp when the deployment finished. It must be in
86968696
nanoseconds, milliseconds, or seconds, and it should not be older than
86978697
1 hour.
8698-
example: 1693491984000000000
8698+
example: 1693491984000
86998699
format: int64
87008700
type: integer
87018701
git:
@@ -8710,7 +8710,7 @@ components:
87108710
started_at:
87118711
description: Unix timestamp when the deployment started. It must be in nanoseconds,
87128712
milliseconds, or seconds.
8713-
example: 1693491974000000000
8713+
example: 1693491974000
87148714
format: int64
87158715
type: integer
87168716
team:
@@ -8794,7 +8794,7 @@ components:
87948794
finished_at:
87958795
description: Unix timestamp when the incident finished. It must be in nanoseconds,
87968796
milliseconds, or seconds, and it should not be older than 1 hour.
8797-
example: 1693491984000000000
8797+
example: 1693491984000
87988798
format: int64
87998799
type: integer
88008800
git:
@@ -8822,7 +8822,7 @@ components:
88228822
started_at:
88238823
description: Unix timestamp when the incident started. It must be in nanoseconds,
88248824
milliseconds, or seconds.
8825-
example: 1693491974000000000
8825+
example: 1693491974000
88268826
format: int64
88278827
type: integer
88288828
team:

examples/v2/dora-metrics/CreateDORADeployment.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ public static void main(String[] args) {
2121
new DORADeploymentRequestData()
2222
.attributes(
2323
new DORADeploymentRequestAttributes()
24-
.finishedAt(1693491984000000000L)
24+
.finishedAt(1693491984000L)
2525
.git(
2626
new DORAGitInfo()
2727
.commitSha("66adc9350f2cc9b250b69abddab733dd55e1a588")
2828
.repositoryUrl(
2929
"https://github.com/organization/example-repository"))
3030
.service("shopist")
31-
.startedAt(1693491974000000000L)
31+
.startedAt(1693491974000L)
3232
.version("v1.12.07")));
3333

3434
try {

examples/v2/dora-metrics/CreateDORAIncident.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static void main(String[] args) {
2222
new DORAIncidentRequestData()
2323
.attributes(
2424
new DORAIncidentRequestAttributes()
25-
.finishedAt(1707842944600000000L)
25+
.finishedAt(17078429446000L)
2626
.git(
2727
new DORAGitInfo()
2828
.commitSha("66adc9350f2cc9b250b69abddab733dd55e1a588")
@@ -31,7 +31,7 @@ public static void main(String[] args) {
3131
.name("Webserver is down failing all requests")
3232
.services(Collections.singletonList("shopist"))
3333
.severity("High")
34-
.startedAt(1707842944500000000L)
34+
.startedAt(17078429445000L)
3535
.team("backend")
3636
.version("v1.12.07")));
3737

src/test/resources/cassettes/features/v1/Post_an_event_returns_OK_response.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"secure": true
1313
},
1414
"httpResponse": {
15-
"body": "{\"status\":\"ok\",\"event\":{\"id\":6327818702635911000,\"id_str\":\"6327818702635911562\",\"title\":\"Test-Post_an_event_returns_OK_response-1641430251\",\"text\":\"A text message.\",\"date_happened\":1641430251,\"handle\":null,\"priority\":null,\"related_event_id\":null,\"tags\":[\"test:TestPostaneventreturnsOKresponse1641430251\"],\"url\":\"https://app.datadoghq.com/event/event?id=6327818702635911562\"}}",
15+
"body": "{\"status\":\"ok\",\"event\":{\"id\":63278187026359,\"id_str\":\"6327818702635911562\",\"title\":\"Test-Post_an_event_returns_OK_response-1641430251\",\"text\":\"A text message.\",\"date_happened\":1641430251,\"handle\":null,\"priority\":null,\"related_event_id\":null,\"tags\":[\"test:TestPostaneventreturnsOKresponse1641430251\"],\"url\":\"https://app.datadoghq.com/event/event?id=6327818702635911562\"}}",
1616
"headers": {
1717
"Content-Type": [
1818
"application/json"

src/test/resources/cassettes/features/v1/Post_an_event_with_a_long_title_returns_OK_response.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"secure": true
1313
},
1414
"httpResponse": {
15-
"body": "{\"status\":\"ok\",\"event\":{\"id\":6327818704671040000,\"id_str\":\"6327818704671039975\",\"title\":\"Test-Post_an_event_with_a_long_title_returns_OK_response-1641430251 very very very looooooooong looooooooooooong loooooooooooooooooooooong looooooooooooooooooooooooooong title with 100+ characters\",\"text\":\"A text message.\",\"date_happened\":1641430252,\"handle\":null,\"priority\":null,\"related_event_id\":null,\"tags\":[\"test:TestPostaneventwithalongtitlereturnsOKresponse1641430251\"],\"url\":\"https://app.datadoghq.com/event/event?id=6327818704671039975\"}}",
15+
"body": "{\"status\":\"ok\",\"event\":{\"id\":63278187046710,\"id_str\":\"6327818704671039975\",\"title\":\"Test-Post_an_event_with_a_long_title_returns_OK_response-1641430251 very very very looooooooong looooooooooooong loooooooooooooooooooooong looooooooooooooooooooooooooong title with 100+ characters\",\"text\":\"A text message.\",\"date_happened\":1641430252,\"handle\":null,\"priority\":null,\"related_event_id\":null,\"tags\":[\"test:TestPostaneventwithalongtitlereturnsOKresponse1641430251\"],\"url\":\"https://app.datadoghq.com/event/event?id=6327818704671039975\"}}",
1616
"headers": {
1717
"Content-Type": [
1818
"application/json"

src/test/resources/cassettes/features/v2/Get_App_returns_OK_response.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"secure": true
3939
},
4040
"httpResponse": {
41-
"body": "{\"data\":{\"id\":\"25442f2c-fb75-4abe-b875-ed3497d2fc2c\",\"type\":\"appDefinitions\",\"attributes\":{\"components\":[{\"events\":[],\"name\":\"grid0\",\"properties\":{\"children\":[{\"events\":[],\"name\":\"gridCell0\",\"properties\":{\"children\":[{\"events\":[],\"name\":\"calloutValue0\",\"properties\":{\"isDisabled\":false,\"isLoading\":false,\"isVisible\":true,\"label\":\"CPU Usage\",\"size\":\"sm\",\"style\":\"vivid_yellow\",\"unit\":\"kB\",\"value\":\"42\"},\"type\":\"calloutValue\"}],\"isVisible\":\"true\",\"layout\":{\"default\":{\"height\":8,\"width\":2,\"x\":0,\"y\":0}}},\"type\":\"gridCell\"}]},\"type\":\"grid\"}],\"description\":\"This is a simple example app\",\"favorite\":false,\"name\":\"Example App\",\"queries\":[],\"rootInstanceName\":\"grid0\",\"selfService\":false,\"tags\":[]},\"meta\":{\"org_id\":1107852,\"user_id\":15479137,\"user_uuid\":\"b3f98453-b289-11ef-a4e9-d6d283f92d91\",\"user_name\":\"[email protected]\",\"version\":1,\"updated_since_deployment\":false,\"created_at\":\"2025-01-30T22:30:43.296595Z\",\"updated_at\":\"2025-01-30T22:30:43.296595Z\",\"deleted_at\":\"0001-01-01T00:00:00Z\"}}}",
41+
"body": "{\"data\":{\"id\":\"25442f2c-fb75-4abe-b875-ed3497d2fc2c\",\"type\":\"appDefinitions\",\"attributes\":{\"components\":[{\"events\":[],\"name\":\"grid0\",\"properties\":{\"children\":[{\"events\":[],\"name\":\"gridCell0\",\"properties\":{\"children\":[{\"events\":[],\"name\":\"calloutValue0\",\"properties\":{\"isDisabled\":false,\"isLoading\":false,\"isVisible\":true,\"label\":\"CPU Usage\",\"size\":\"sm\",\"style\":\"vivid_yellow\",\"unit\":\"kB\",\"value\":\"42\"},\"type\":\"calloutValue\"}],\"isVisible\":\"true\",\"layout\":{\"default\":{\"height\":8,\"width\":2,\"x\":0,\"y\":0}}},\"type\":\"gridCell\"}]},\"type\":\"grid\"}],\"description\":\"This is a simple example app\",\"favorite\":false,\"name\":\"Example App\",\"queries\":[],\"rootInstanceName\":\"grid0\",\"tags\":[]}}}",
4242
"headers": {
4343
"Content-Type": [
4444
"application/vnd.api+json"

src/test/resources/cassettes/features/v2/Send_a_deployment_event_for_DORA_Metrics_returns_OK_response.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"httpRequest": {
44
"body": {
55
"type": "JSON",
6-
"json": "{\"data\":{\"attributes\":{\"finished_at\":1693491984000000000,\"git\":{\"commit_sha\":\"66adc9350f2cc9b250b69abddab733dd55e1a588\",\"repository_url\":\"https://github.com/organization/example-repository\"},\"service\":\"shopist\",\"started_at\":1693491974000000000,\"version\":\"v1.12.07\"}}}"
6+
"json": "{\"data\":{\"attributes\":{\"finished_at\":1693491984000,\"git\":{\"commit_sha\":\"66adc9350f2cc9b250b69abddab733dd55e1a588\",\"repository_url\":\"https://github.com/organization/example-repository\"},\"service\":\"shopist\",\"started_at\":16934919740000,\"version\":\"v1.12.07\"}}}"
77
},
88
"headers": {},
99
"method": "POST",
@@ -27,6 +27,6 @@
2727
"timeToLive": {
2828
"unlimited": true
2929
},
30-
"id": "89b0b557-54cf-a77e-61b3-69a1bee5bac6"
30+
"id": "d766d5bb-b37d-849c-6e59-818cec461a84"
3131
}
3232
]

src/test/resources/cassettes/features/v2/Send_an_incident_event_for_DORA_Metrics_returns_OK_response.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"httpRequest": {
44
"body": {
55
"type": "JSON",
6-
"json": "{\"data\":{\"attributes\":{\"finished_at\":1707842944600000000,\"git\":{\"commit_sha\":\"66adc9350f2cc9b250b69abddab733dd55e1a588\",\"repository_url\":\"https://github.com/organization/example-repository\"},\"name\":\"Webserver is down failing all requests\",\"services\":[\"shopist\"],\"severity\":\"High\",\"started_at\":1707842944500000000,\"team\":\"backend\",\"version\":\"v1.12.07\"}}}"
6+
"json": "{\"data\":{\"attributes\":{\"finished_at\":17078429446000,\"git\":{\"commit_sha\":\"66adc9350f2cc9b250b69abddab733dd55e1a588\",\"repository_url\":\"https://github.com/organization/example-repository\"},\"name\":\"Webserver is down failing all requests\",\"services\":[\"shopist\"],\"severity\":\"High\",\"started_at\":17078429445000,\"team\":\"backend\",\"version\":\"v1.12.07\"}}}"
77
},
88
"headers": {},
99
"method": "POST",
@@ -27,6 +27,6 @@
2727
"timeToLive": {
2828
"unlimited": true
2929
},
30-
"id": "b139e470-943b-53f5-3db9-3c09d91fe207"
30+
"id": "87fb2208-c5e8-60f7-a4fc-1a02145c2949"
3131
}
3232
]

src/test/resources/cassettes/features/v2/Update_App_returns_OK_response.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"secure": true
4343
},
4444
"httpResponse": {
45-
"body": "{\"data\":{\"id\":\"892d9225-fd31-4237-b218-e964ac33fc71\",\"type\":\"appDefinitions\",\"attributes\":{\"components\":[{\"events\":[],\"name\":\"grid0\",\"properties\":{\"children\":[{\"events\":[],\"name\":\"gridCell0\",\"properties\":{\"children\":[{\"events\":[],\"name\":\"calloutValue0\",\"properties\":{\"isDisabled\":false,\"isLoading\":false,\"isVisible\":true,\"label\":\"CPU Usage\",\"size\":\"sm\",\"style\":\"vivid_yellow\",\"unit\":\"kB\",\"value\":\"42\"},\"type\":\"calloutValue\"}],\"isVisible\":\"true\",\"layout\":{\"default\":{\"height\":8,\"width\":2,\"x\":0,\"y\":0}}},\"type\":\"gridCell\"}]},\"type\":\"grid\"}],\"description\":\"This is a simple example app\",\"favorite\":false,\"name\":\"Updated Name\",\"queries\":[],\"rootInstanceName\":\"grid0\",\"selfService\":false,\"tags\":[]},\"meta\":{\"org_id\":1107852,\"user_id\":15479137,\"user_uuid\":\"b3f98453-b289-11ef-a4e9-d6d283f92d91\",\"user_name\":\"[email protected]\",\"version\":2,\"updated_since_deployment\":false,\"created_at\":\"2025-01-30T22:30:45.584607Z\",\"updated_at\":\"2025-01-30T22:30:45.785438Z\",\"deleted_at\":\"0001-01-01T00:00:00Z\"}}}",
45+
"body": "{\"data\":{\"id\":\"892d9225-fd31-4237-b218-e964ac33fc71\",\"type\":\"appDefinitions\",\"attributes\":{\"components\":[{\"events\":[],\"name\":\"grid0\",\"properties\":{\"children\":[{\"events\":[],\"name\":\"gridCell0\",\"properties\":{\"children\":[{\"events\":[],\"name\":\"calloutValue0\",\"properties\":{\"isDisabled\":false,\"isLoading\":false,\"isVisible\":true,\"label\":\"CPU Usage\",\"size\":\"sm\",\"style\":\"vivid_yellow\",\"unit\":\"kB\",\"value\":\"42\"},\"type\":\"calloutValue\"}],\"isVisible\":\"true\",\"layout\":{\"default\":{\"height\":8,\"width\":2,\"x\":0,\"y\":0}}},\"type\":\"gridCell\"}]},\"type\":\"grid\"}],\"description\":\"This is a simple example app\",\"favorite\":false,\"name\":\"Updated Name\",\"queries\":[],\"rootInstanceName\":\"grid0\",\"tags\":[]}}}",
4646
"headers": {
4747
"Content-Type": [
4848
"application/vnd.api+json"

src/test/resources/com/datadog/api/client/v2/api/dora_metrics.feature

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ Feature: DORA Metrics
2020
Scenario: Send a deployment event for DORA Metrics returns "OK - but delayed due to incident" response
2121
Given operation "CreateDORADeployment" enabled
2222
And new "CreateDORADeployment" request
23-
And body with value {"data": {"attributes": {"finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "service": "shopist", "started_at": 1693491974000000000, "version": "v1.12.07"}}}
23+
And body with value {"data": {"attributes": {"finished_at": 1693491984000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "service": "shopist", "started_at": 1693491974000, "version": "v1.12.07"}}}
2424
When the request is sent
2525
Then the response status is 202 OK - but delayed due to incident
2626

2727
@replay-only @team:Datadog/ci-app-backend
2828
Scenario: Send a deployment event for DORA Metrics returns "OK" response
2929
Given operation "CreateDORADeployment" enabled
3030
And new "CreateDORADeployment" request
31-
And body with value {"data": {"attributes": {"finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "service": "shopist", "started_at": 1693491974000000000, "version": "v1.12.07"}}}
31+
And body with value {"data": {"attributes": {"finished_at": 1693491984000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "service": "shopist", "started_at": 1693491974000, "version": "v1.12.07"}}}
3232
When the request is sent
3333
Then the response status is 200 OK
3434

@@ -44,14 +44,14 @@ Feature: DORA Metrics
4444
Scenario: Send an incident event for DORA Metrics returns "OK - but delayed due to incident" response
4545
Given operation "CreateDORAIncident" enabled
4646
And new "CreateDORAIncident" request
47-
And body with value {"data": {"attributes": {"env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
47+
And body with value {"data": {"attributes": {"env": "staging", "finished_at": 1693491984000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000, "team": "backend", "version": "v1.12.07"}}}
4848
When the request is sent
4949
Then the response status is 202 OK - but delayed due to incident
5050

5151
@replay-only @team:Datadog/ci-app-backend
5252
Scenario: Send an incident event for DORA Metrics returns "OK" response
5353
Given operation "CreateDORAIncident" enabled
5454
And new "CreateDORAIncident" request
55-
And body with value {"data": {"attributes": {"finished_at": 1707842944600000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests", "services": ["shopist"], "severity": "High", "started_at": 1707842944500000000, "team": "backend", "version": "v1.12.07"}}}
55+
And body with value {"data": {"attributes": {"finished_at": 17078429446000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests", "services": ["shopist"], "severity": "High", "started_at": 17078429445000, "team": "backend", "version": "v1.12.07"}}}
5656
When the request is sent
5757
Then the response status is 200 OK

0 commit comments

Comments
 (0)