Skip to content

Commit c7dbd06

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 25bf1133 of spec repo
1 parent 4aa538f commit c7dbd06

File tree

11 files changed

+24
-24
lines changed

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:09:59.993284",
8-
"spec_repo_commit": "4fb9047a"
7+
"regenerated": "2025-02-06 14:49:11.920454",
8+
"spec_repo_commit": "25bf1133"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-02-04 14:10:00.009911",
13-
"spec_repo_commit": "4fb9047a"
12+
"regenerated": "2025-02-06 14:49:11.936552",
13+
"spec_repo_commit": "25bf1133"
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:

cassettes/v1/Events_3416228/Post-an-event-returns-OK-response_1209415328/recording.har

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"content": {
4343
"mimeType": "application/json",
4444
"size": 375,
45-
"text": "{\"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\"}}"
45+
"text": "{\"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\"}}"
4646
},
4747
"cookies": [],
4848
"headers": [

cassettes/v1/Events_3416228/Post-an-event-with-a-long-title-returns-OK-response_3368408033/recording.har

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"content": {
4343
"mimeType": "application/json",
4444
"size": 536,
45-
"text": "{\"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\"}}"
45+
"text": "{\"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\"}}"
4646
},
4747
"cookies": [],
4848
"headers": [

cassettes/v2/App-Builder_216136899/Get-App-returns-OK-response_2570582586/recording.har

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"content": {
8686
"mimeType": "application/vnd.api+json",
8787
"size": 995,
88-
"text": "{\"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\"}}}"
88+
"text": "{\"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\":[]}}}"
8989
},
9090
"cookies": [],
9191
"headers": [

cassettes/v2/App-Builder_216136899/Update-App-returns-OK-response_1935745305/recording.har

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"content": {
9696
"mimeType": "application/vnd.api+json",
9797
"size": 996,
98-
"text": "{\"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\"}}}"
98+
"text": "{\"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\":[]}}}"
9999
},
100100
"cookies": [],
101101
"headers": [

cassettes/v2/DORA-Metrics_482886860/Send-a-deployment-event-for-DORA-Metrics-returns-OK-response_3631369903/recording.har

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"entries": [
1010
{
11-
"_id": "89b0b55754cfa77e61b369a1bee5bac6",
11+
"_id": "d766d5bbb37d849c6e59818cec461a84",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
@@ -32,7 +32,7 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"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\"}}}"
35+
"text": "{\"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\"}}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/dora/deployment"

cassettes/v2/DORA-Metrics_482886860/Send-an-incident-event-for-DORA-Metrics-returns-OK-response_1500109814/recording.har

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"entries": [
1010
{
11-
"_id": "b139e470943b53f53db93c09d91fe207",
11+
"_id": "87fb2208c5e860f7a4fc1a02145c2949",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
@@ -32,7 +32,7 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"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\"}}}"
35+
"text": "{\"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\"}}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/dora/incident"

examples/v2/dora-metrics/CreateDORADeployment.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ const params: v2.DORAMetricsApiCreateDORADeploymentRequest = {
1212
body: {
1313
data: {
1414
attributes: {
15-
finishedAt: 1693491984000000000,
15+
finishedAt: 1693491984000,
1616
git: {
1717
commitSha: "66adc9350f2cc9b250b69abddab733dd55e1a588",
1818
repositoryUrl: "https://github.com/organization/example-repository",
1919
},
2020
service: "shopist",
21-
startedAt: 1693491974000000000,
21+
startedAt: 1693491974000,
2222
version: "v1.12.07",
2323
},
2424
},

examples/v2/dora-metrics/CreateDORAIncident.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ const params: v2.DORAMetricsApiCreateDORAIncidentRequest = {
1212
body: {
1313
data: {
1414
attributes: {
15-
finishedAt: 1707842944600000000,
15+
finishedAt: 17078429446000,
1616
git: {
1717
commitSha: "66adc9350f2cc9b250b69abddab733dd55e1a588",
1818
repositoryUrl: "https://github.com/organization/example-repository",
1919
},
2020
name: "Webserver is down failing all requests",
2121
services: ["shopist"],
2222
severity: "High",
23-
startedAt: 1707842944500000000,
23+
startedAt: 17078429445000,
2424
team: "backend",
2525
version: "v1.12.07",
2626
},

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)