Skip to content

Commit 7379ac4

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 35bc11b5 of spec repo
1 parent 8817fc2 commit 7379ac4

11 files changed

+23
-23
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:04.791613",
8-
"spec_repo_commit": "4fb9047a"
7+
"regenerated": "2025-02-06 14:59:31.678882",
8+
"spec_repo_commit": "35bc11b5"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-02-04 14:10:04.806083",
13-
"spec_repo_commit": "4fb9047a"
12+
"regenerated": "2025-02-06 14:59:31.693966",
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.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
body = DORADeploymentRequest(
1313
data=DORADeploymentRequestData(
1414
attributes=DORADeploymentRequestAttributes(
15-
finished_at=1693491984000000000,
15+
finished_at=1693491984000,
1616
git=DORAGitInfo(
1717
commit_sha="66adc9350f2cc9b250b69abddab733dd55e1a588",
1818
repository_url="https://github.com/organization/example-repository",
1919
),
2020
service="shopist",
21-
started_at=1693491974000000000,
21+
started_at=1693491974000,
2222
version="v1.12.07",
2323
),
2424
),

examples/v2/dora-metrics/CreateDORAIncident.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
body = DORAIncidentRequest(
1313
data=DORAIncidentRequestData(
1414
attributes=DORAIncidentRequestAttributes(
15-
finished_at=1707842944600000000,
15+
finished_at=17078429446000,
1616
git=DORAGitInfo(
1717
commit_sha="66adc9350f2cc9b250b69abddab733dd55e1a588",
1818
repository_url="https://github.com/organization/example-repository",
@@ -22,7 +22,7 @@
2222
"shopist",
2323
],
2424
severity="High",
25-
started_at=1707842944500000000,
25+
started_at=17078429445000,
2626
team="backend",
2727
version="v1.12.07",
2828
),

tests/v1/cassettes/test_scenarios/test_post_an_event_returns_ok_response.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interactions:
1111
uri: https://api.datadoghq.com/api/v1/events
1212
response:
1313
body:
14-
string: '{"status":"ok","event":{"id":6327818702635911000,"id_str":"6327818702635911562","title":"Test-Post_an_event_returns_OK_response-1641430251","text":"A
14+
string: '{"status":"ok","event":{"id":63278187026359,"id_str":"6327818702635911562","title":"Test-Post_an_event_returns_OK_response-1641430251","text":"A
1515
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:

tests/v1/cassettes/test_scenarios/test_post_an_event_with_a_long_title_returns_ok_response.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interactions:
1313
uri: https://api.datadoghq.com/api/v1/events
1414
response:
1515
body:
16-
string: '{"status":"ok","event":{"id":6327818704671040000,"id_str":"6327818704671039975","title":"Test-Post_an_event_with_a_long_title_returns_OK_response-1641430251
16+
string: '{"status":"ok","event":{"id":63278187046710,"id_str":"6327818704671039975","title":"Test-Post_an_event_with_a_long_title_returns_OK_response-1641430251
1717
very very very looooooooong looooooooooooong loooooooooooooooooooooong looooooooooooooooooooooooooong
1818
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"}}'
1919
headers:

tests/v2/cassettes/test_scenarios/test_get_app_returns_ok_response.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ interactions:
3030
body:
3131
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
3232
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
33-
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"}}}'
33+
is a simple example app","favorite":false,"name":"Example App","queries":[],"rootInstanceName":"grid0","tags":[]}}}'
3434
headers:
3535
content-type:
3636
- application/vnd.api+json

tests/v2/cassettes/test_scenarios/test_send_a_deployment_event_for_dora_metrics_returns_ok_response.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"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"}}}'
3+
body: '{"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"}}}'
44
headers:
55
accept:
66
- application/json

tests/v2/cassettes/test_scenarios/test_send_an_incident_event_for_dora_metrics_returns_ok_response.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
3-
body: '{"data":{"attributes":{"finished_at":1707842944600000000,"git":{"commit_sha":"66adc9350f2cc9b250b69abddab733dd55e1a588","repository_url":"https://github.com/organization/example-repository"},"name":"Webserver
4-
is down failing all requests","services":["shopist"],"severity":"High","started_at":1707842944500000000,"team":"backend","version":"v1.12.07"}}}'
3+
body: '{"data":{"attributes":{"finished_at":17078429446000,"git":{"commit_sha":"66adc9350f2cc9b250b69abddab733dd55e1a588","repository_url":"https://github.com/organization/example-repository"},"name":"Webserver
4+
is down failing all requests","services":["shopist"],"severity":"High","started_at":17078429445000,"team":"backend","version":"v1.12.07"}}}'
55
headers:
66
accept:
77
- application/json

tests/v2/cassettes/test_scenarios/test_update_app_returns_ok_response.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ interactions:
3232
body:
3333
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
3434
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
35-
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"}}}'
35+
is a simple example app","favorite":false,"name":"Updated Name","queries":[],"rootInstanceName":"grid0","tags":[]}}}'
3636
headers:
3737
content-type:
3838
- application/vnd.api+json

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