Skip to content

Commit d548563

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 35bc11b5 of spec repo
1 parent 6b224d2 commit d548563

11 files changed

+26
-30
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:06.221297",
8-
"spec_repo_commit": "4fb9047a"
7+
"regenerated": "2025-02-06 14:59:35.924732",
8+
"spec_repo_commit": "35bc11b5"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-02-04 14:10:06.239068",
13-
"spec_repo_commit": "4fb9047a"
12+
"regenerated": "2025-02-06 14:59:35.940064",
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.rs

+6-10
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,12 @@ use datadog_api_client::datadogV2::model::DORAGitInfo;
99
#[tokio::main]
1010
async fn main() {
1111
let body = DORADeploymentRequest::new(DORADeploymentRequestData::new(
12-
DORADeploymentRequestAttributes::new(
13-
1693491984000000000,
14-
"shopist".to_string(),
15-
1693491974000000000,
16-
)
17-
.git(DORAGitInfo::new(
18-
"66adc9350f2cc9b250b69abddab733dd55e1a588".to_string(),
19-
"https://github.com/organization/example-repository".to_string(),
20-
))
21-
.version("v1.12.07".to_string()),
12+
DORADeploymentRequestAttributes::new(1693491984000, "shopist".to_string(), 1693491974000)
13+
.git(DORAGitInfo::new(
14+
"66adc9350f2cc9b250b69abddab733dd55e1a588".to_string(),
15+
"https://github.com/organization/example-repository".to_string(),
16+
))
17+
.version("v1.12.07".to_string()),
2218
));
2319
let mut configuration = datadog::Configuration::new();
2420
configuration.set_unstable_operation_enabled("v2.CreateDORADeployment", true);

examples/v2_dora-metrics_CreateDORAIncident.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ use datadog_api_client::datadogV2::model::DORAIncidentRequestData;
99
#[tokio::main]
1010
async fn main() {
1111
let body = DORAIncidentRequest::new(DORAIncidentRequestData::new(
12-
DORAIncidentRequestAttributes::new(1707842944500000000)
13-
.finished_at(1707842944600000000)
12+
DORAIncidentRequestAttributes::new(17078429445000)
13+
.finished_at(17078429446000)
1414
.git(DORAGitInfo::new(
1515
"66adc9350f2cc9b250b69abddab733dd55e1a588".to_string(),
1616
"https://github.com/organization/example-repository".to_string(),

tests/scenarios/cassettes/v1/events/Post-an-event-returns-OK-response.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"response": {
2121
"body": {
22-
"string": "{\"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\"}}",
22+
"string": "{\"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\"}}",
2323
"encoding": null
2424
},
2525
"headers": {

tests/scenarios/cassettes/v1/events/Post-an-event-with-a-long-title-returns-OK-response.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"response": {
2121
"body": {
22-
"string": "{\"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\"}}",
22+
"string": "{\"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\"}}",
2323
"encoding": null
2424
},
2525
"headers": {

tests/scenarios/cassettes/v2/app_builder/Get-App-returns-OK-response.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
},
4848
"response": {
4949
"body": {
50-
"string": "{\"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\"}}}",
50+
"string": "{\"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\":[]}}}",
5151
"encoding": null
5252
},
5353
"headers": {

tests/scenarios/cassettes/v2/app_builder/Update-App-returns-OK-response.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
},
5454
"response": {
5555
"body": {
56-
"string": "{\"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\"}}}",
56+
"string": "{\"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\":[]}}}",
5757
"encoding": null
5858
},
5959
"headers": {

tests/scenarios/cassettes/v2/dora_metrics/Send-a-deployment-event-for-DORA-Metrics-returns-OK-response.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"request": {
55
"body": {
6-
"string": "{\"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+
"string": "{\"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
"encoding": null
88
},
99
"headers": {

tests/scenarios/cassettes/v2/dora_metrics/Send-an-incident-event-for-DORA-Metrics-returns-OK-response.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"request": {
55
"body": {
6-
"string": "{\"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+
"string": "{\"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
"encoding": null
88
},
99
"headers": {

tests/scenarios/features/v2/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)