Skip to content

Commit ddb31aa

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit f75e7820 of spec repo (#1474)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 4f0018e commit ddb31aa

14 files changed

+65
-42
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.4",
7-
"regenerated": "2023-05-19 19:01:59.374943",
8-
"spec_repo_commit": "c3f9f308"
7+
"regenerated": "2023-05-22 14:41:04.817442",
8+
"spec_repo_commit": "f75e7820"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-05-19 19:01:59.387350",
13-
"spec_repo_commit": "c3f9f308"
12+
"regenerated": "2023-05-22 14:41:04.834555",
13+
"spec_repo_commit": "f75e7820"
1414
}
1515
}
1616
}

examples/v1/downtimes/CreateDowntime.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
body = Downtime(
1515
message="Example-Downtime",
1616
start=int(datetime.now().timestamp()),
17+
end=int((datetime.now() + relativedelta(hours=1)).timestamp()),
1718
timezone="Etc/UTC",
1819
scope=[
1920
"test:exampledowntime",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-05-12T09:49:53.715Z
1+
2023-05-22T14:29:16.526Z

tests/v1/cassettes/test_scenarios/test_cancel_a_downtime_returns_ok_response.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"message":"Test-Cancel_a_downtime_returns_OK_response-1652348993","recurrence":{"period":1,"type":"weeks","until_date":1654163393,"week_days":["Mon","Tue","Wed","Thu","Fri"]},"scope":["test:testcanceladowntimereturnsokresponse1652348993"],"start":1652348993,"timezone":"Etc/UTC"}'
3+
body: '{"end":1684769356,"message":"Test-Cancel_a_downtime_returns_OK_response-1684765756","recurrence":{"period":1,"type":"weeks","until_date":1686580156,"week_days":["Mon","Tue","Wed","Thu","Fri"]},"scope":["test:testcanceladowntimereturnsokresponse1684765756"],"start":1684765756,"timezone":"Etc/UTC"}'
44
headers:
55
accept:
66
- application/json
@@ -10,7 +10,10 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v1/downtime
1111
response:
1212
body:
13-
string: '{"recurrence":{"until_date":1654163393,"until_occurrences":null,"week_days":["Mon","Tue","Wed","Thu","Fri"],"type":"weeks","period":1},"end":null,"monitor_tags":["*"],"child_id":null,"canceled":null,"monitor_id":null,"mute_first_recovery_notification":false,"created":1652348994,"org_id":321813,"modified":1652348994,"disabled":false,"start":1652348993,"creator_id":1445416,"parent_id":null,"timezone":"Etc/UTC","active":true,"scope":["test:testcanceladowntimereturnsokresponse1652348993"],"message":"Test-Cancel_a_downtime_returns_OK_response-1652348993","downtime_type":2,"id":1944162237,"updater_id":null}'
13+
string: '{"id":2941964683,"monitor_id":null,"org_id":321813,"start":1684765756,"end":1684769356,"canceled":null,"created":1684765756,"modified":1684765756,"message":"Test-Cancel_a_downtime_returns_OK_response-1684765756","active":true,"disabled":false,"recurrence":{"type":"weeks","period":1,"week_days":["Mon","Tue","Wed","Thu","Fri"],"until_occurrences":null,"until_date":1686580156},"timezone":"Etc/UTC","parent_id":null,"child_id":null,"creator_id":1445416,"updater_id":null,"downtime_type":2,"status":"active","monitor_tags":["*"],"mute_first_recovery_notification":false,"notify_end_types":["expired"],"notify_end_states":["alert","no
14+
data","warn"],"uuid":"08391596-f8ad-11ed-a637-da7ad0900002","scope":["test:testcanceladowntimereturnsokresponse1684765756"]}
15+
16+
'
1417
headers:
1518
content-type:
1619
- application/json
@@ -23,11 +26,13 @@ interactions:
2326
accept:
2427
- '*/*'
2528
method: DELETE
26-
uri: https://api.datadoghq.com/api/v1/downtime/1944162237
29+
uri: https://api.datadoghq.com/api/v1/downtime/2941964683
2730
response:
2831
body:
2932
string: ''
30-
headers: {}
33+
headers:
34+
content-type:
35+
- text/html; charset=utf-8
3136
status:
3237
code: 204
3338
message: No Content
@@ -37,11 +42,13 @@ interactions:
3742
accept:
3843
- '*/*'
3944
method: DELETE
40-
uri: https://api.datadoghq.com/api/v1/downtime/1944162237
45+
uri: https://api.datadoghq.com/api/v1/downtime/2941964683
4146
response:
4247
body:
4348
string: ''
44-
headers: {}
49+
headers:
50+
content-type:
51+
- text/html; charset=utf-8
4552
status:
4653
code: 204
4754
message: No Content
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-05-12T09:49:55.004Z
1+
2023-05-22T14:29:42.993Z

tests/v1/cassettes/test_scenarios/test_cancel_downtimes_by_scope_returns_ok_response.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"message":"Test-Cancel_downtimes_by_scope_returns_OK_response-1652348995","recurrence":{"period":1,"type":"weeks","until_date":1654163395,"week_days":["Mon","Tue","Wed","Thu","Fri"]},"scope":["test:testcanceldowntimesbyscopereturnsokresponse1652348995"],"start":1652348995,"timezone":"Etc/UTC"}'
3+
body: '{"end":1684769382,"message":"Test-Cancel_downtimes_by_scope_returns_OK_response-1684765782","recurrence":{"period":1,"type":"weeks","until_date":1686580182,"week_days":["Mon","Tue","Wed","Thu","Fri"]},"scope":["test:testcanceldowntimesbyscopereturnsokresponse1684765782"],"start":1684765782,"timezone":"Etc/UTC"}'
44
headers:
55
accept:
66
- application/json
@@ -10,15 +10,18 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v1/downtime
1111
response:
1212
body:
13-
string: '{"recurrence":{"until_date":1654163395,"until_occurrences":null,"week_days":["Mon","Tue","Wed","Thu","Fri"],"type":"weeks","period":1},"end":null,"monitor_tags":["*"],"child_id":null,"canceled":null,"monitor_id":null,"mute_first_recovery_notification":false,"created":1652348995,"org_id":321813,"modified":1652348995,"disabled":false,"start":1652348995,"creator_id":1445416,"parent_id":null,"timezone":"Etc/UTC","active":true,"scope":["test:testcanceldowntimesbyscopereturnsokresponse1652348995"],"message":"Test-Cancel_downtimes_by_scope_returns_OK_response-1652348995","downtime_type":2,"id":1944162243,"updater_id":null}'
13+
string: '{"id":2941965647,"monitor_id":null,"org_id":321813,"start":1684765782,"end":1684769382,"canceled":null,"created":1684765783,"modified":1684765783,"message":"Test-Cancel_downtimes_by_scope_returns_OK_response-1684765782","active":true,"disabled":false,"recurrence":{"type":"weeks","period":1,"week_days":["Mon","Tue","Wed","Thu","Fri"],"until_occurrences":null,"until_date":1686580182},"timezone":"Etc/UTC","parent_id":null,"child_id":null,"creator_id":1445416,"updater_id":null,"downtime_type":2,"status":"active","monitor_tags":["*"],"mute_first_recovery_notification":false,"notify_end_types":["expired"],"notify_end_states":["alert","no
14+
data","warn"],"uuid":"17fac312-f8ad-11ed-9ae8-da7ad0900002","scope":["test:testcanceldowntimesbyscopereturnsokresponse1684765782"]}
15+
16+
'
1417
headers:
1518
content-type:
1619
- application/json
1720
status:
1821
code: 200
1922
message: OK
2023
- request:
21-
body: '{"scope":"test:testcanceldowntimesbyscopereturnsokresponse1652348995"}'
24+
body: '{"scope":"test:testcanceldowntimesbyscopereturnsokresponse1684765782"}'
2225
headers:
2326
accept:
2427
- application/json
@@ -28,7 +31,9 @@ interactions:
2831
uri: https://api.datadoghq.com/api/v1/downtime/cancel/by_scope
2932
response:
3033
body:
31-
string: '{"cancelled_ids":[1944162243]}'
34+
string: '{"cancelled_ids":[2941965647]}
35+
36+
'
3237
headers:
3338
content-type:
3439
- application/json
@@ -41,11 +46,13 @@ interactions:
4146
accept:
4247
- '*/*'
4348
method: DELETE
44-
uri: https://api.datadoghq.com/api/v1/downtime/1944162243
49+
uri: https://api.datadoghq.com/api/v1/downtime/2941965647
4550
response:
4651
body:
4752
string: ''
48-
headers: {}
53+
headers:
54+
content-type:
55+
- text/html; charset=utf-8
4956
status:
5057
code: 204
5158
message: No Content
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-05-12T09:49:56.343Z
1+
2023-05-22T14:30:10.537Z

tests/v1/cassettes/test_scenarios/test_get_a_downtime_returns_ok_response.yaml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"message":"Test-Get_a_downtime_returns_OK_response-1652348996","recurrence":{"period":1,"type":"weeks","until_date":1654163396,"week_days":["Mon","Tue","Wed","Thu","Fri"]},"scope":["test:testgetadowntimereturnsokresponse1652348996"],"start":1652348996,"timezone":"Etc/UTC"}'
3+
body: '{"end":1684769410,"message":"Test-Get_a_downtime_returns_OK_response-1684765810","recurrence":{"period":1,"type":"weeks","until_date":1686580210,"week_days":["Mon","Tue","Wed","Thu","Fri"]},"scope":["test:testgetadowntimereturnsokresponse1684765810"],"start":1684765810,"timezone":"Etc/UTC"}'
44
headers:
55
accept:
66
- application/json
@@ -10,7 +10,10 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v1/downtime
1111
response:
1212
body:
13-
string: '{"recurrence":{"until_date":1654163396,"until_occurrences":null,"week_days":["Mon","Tue","Wed","Thu","Fri"],"type":"weeks","period":1},"end":null,"monitor_tags":["*"],"child_id":null,"canceled":null,"monitor_id":null,"mute_first_recovery_notification":false,"created":1652348997,"org_id":321813,"modified":1652348997,"disabled":false,"start":1652348996,"creator_id":1445416,"parent_id":null,"timezone":"Etc/UTC","active":true,"scope":["test:testgetadowntimereturnsokresponse1652348996"],"message":"Test-Get_a_downtime_returns_OK_response-1652348996","downtime_type":2,"id":1944162261,"updater_id":null}'
13+
string: '{"id":2941966869,"monitor_id":null,"org_id":321813,"start":1684765810,"end":1684769410,"canceled":null,"created":1684765810,"modified":1684765810,"message":"Test-Get_a_downtime_returns_OK_response-1684765810","active":true,"disabled":false,"recurrence":{"type":"weeks","period":1,"week_days":["Mon","Tue","Wed","Thu","Fri"],"until_occurrences":null,"until_date":1686580210},"timezone":"Etc/UTC","parent_id":null,"child_id":null,"creator_id":1445416,"updater_id":null,"downtime_type":2,"status":"active","monitor_tags":["*"],"mute_first_recovery_notification":false,"notify_end_types":["expired"],"notify_end_states":["alert","no
14+
data","warn"],"uuid":"286629f8-f8ad-11ed-9901-da7ad0900002","scope":["test:testgetadowntimereturnsokresponse1684765810"]}
15+
16+
'
1417
headers:
1518
content-type:
1619
- application/json
@@ -23,10 +26,13 @@ interactions:
2326
accept:
2427
- application/json
2528
method: GET
26-
uri: https://api.datadoghq.com/api/v1/downtime/1944162261
29+
uri: https://api.datadoghq.com/api/v1/downtime/2941966869
2730
response:
2831
body:
29-
string: '{"recurrence":{"until_date":1654163396,"until_occurrences":null,"week_days":["Mon","Tue","Wed","Thu","Fri"],"type":"weeks","period":1},"end":null,"monitor_tags":["*"],"child_id":null,"canceled":null,"monitor_id":null,"mute_first_recovery_notification":false,"created":1652348997,"org_id":321813,"modified":1652348997,"disabled":false,"start":1652348996,"creator_id":1445416,"parent_id":null,"timezone":"Etc/UTC","active":true,"scope":["test:testgetadowntimereturnsokresponse1652348996"],"message":"Test-Get_a_downtime_returns_OK_response-1652348996","downtime_type":2,"id":1944162261,"updater_id":null}'
32+
string: '{"id":2941966869,"monitor_id":null,"org_id":321813,"start":1684765810,"end":1684769410,"canceled":null,"created":1684765810,"modified":1684765810,"message":"Test-Get_a_downtime_returns_OK_response-1684765810","active":true,"disabled":false,"recurrence":{"type":"weeks","period":1,"week_days":["Mon","Tue","Wed","Thu","Fri"],"until_occurrences":null,"until_date":1686580210},"timezone":"Etc/UTC","parent_id":null,"child_id":null,"creator_id":1445416,"updater_id":null,"downtime_type":2,"status":"active","monitor_tags":["*"],"mute_first_recovery_notification":false,"notify_end_types":["expired"],"notify_end_states":["alert","no
33+
data","warn"],"uuid":"286629f8-f8ad-11ed-9901-da7ad0900002","scope":["test:testgetadowntimereturnsokresponse1684765810"]}
34+
35+
'
3036
headers:
3137
content-type:
3238
- application/json
@@ -39,11 +45,13 @@ interactions:
3945
accept:
4046
- '*/*'
4147
method: DELETE
42-
uri: https://api.datadoghq.com/api/v1/downtime/1944162261
48+
uri: https://api.datadoghq.com/api/v1/downtime/2941966869
4349
response:
4450
body:
4551
string: ''
46-
headers: {}
52+
headers:
53+
content-type:
54+
- text/html; charset=utf-8
4755
status:
4856
code: 204
4957
message: No Content
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2023-05-05T17:14:34.652Z
1+
2023-05-22T14:34:57.936Z

tests/v1/cassettes/test_scenarios/test_schedule_a_downtime_returns_ok_response.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
3-
body: '{"message":"Test-Schedule_a_downtime_returns_OK_response-1683306874","notify_end_states":["alert","no
4-
data","warn"],"notify_end_types":["canceled","expired"],"recurrence":{"period":1,"type":"weeks","until_date":1685121274,"week_days":["Mon","Tue","Wed","Thu","Fri"]},"scope":["test:testscheduleadowntimereturnsokresponse1683306874"],"start":1683306874,"timezone":"Etc/UTC"}'
3+
body: '{"end":1684769697,"message":"Test-Schedule_a_downtime_returns_OK_response-1684766097","notify_end_states":["alert","no
4+
data","warn"],"notify_end_types":["canceled","expired"],"recurrence":{"period":1,"type":"weeks","until_date":1686580497,"week_days":["Mon","Tue","Wed","Thu","Fri"]},"scope":["test:testscheduleadowntimereturnsokresponse1684766097"],"start":1684766097,"timezone":"Etc/UTC"}'
55
headers:
66
accept:
77
- application/json
@@ -11,8 +11,8 @@ interactions:
1111
uri: https://api.datadoghq.com/api/v1/downtime
1212
response:
1313
body:
14-
string: '{"id":2893677175,"monitor_id":null,"org_id":321813,"start":1683306874,"end":null,"canceled":null,"created":1683306874,"modified":1683306874,"message":"Test-Schedule_a_downtime_returns_OK_response-1683306874","active":true,"disabled":false,"recurrence":{"type":"weeks","period":1,"week_days":["Mon","Tue","Wed","Thu","Fri"],"until_occurrences":null,"until_date":1685121274},"timezone":"Etc/UTC","parent_id":null,"child_id":null,"creator_id":1445416,"updater_id":null,"downtime_type":2,"status":"active","monitor_tags":["*"],"mute_first_recovery_notification":false,"notify_end_types":["canceled","expired"],"notify_end_states":["alert","no
15-
data","warn"],"uuid":"4ebe21fc-eb68-11ed-a070-da7ad0900002","scope":["test:testscheduleadowntimereturnsokresponse1683306874"]}
14+
string: '{"id":2941976753,"monitor_id":null,"org_id":321813,"start":1684766097,"end":1684769697,"canceled":null,"created":1684766098,"modified":1684766098,"message":"Test-Schedule_a_downtime_returns_OK_response-1684766097","active":true,"disabled":false,"recurrence":{"type":"weeks","period":1,"week_days":["Mon","Tue","Wed","Thu","Fri"],"until_occurrences":null,"until_date":1686580497},"timezone":"Etc/UTC","parent_id":null,"child_id":null,"creator_id":1445416,"updater_id":null,"downtime_type":2,"status":"active","monitor_tags":["*"],"mute_first_recovery_notification":false,"notify_end_types":["canceled","expired"],"notify_end_states":["alert","no
15+
data","warn"],"uuid":"d3b49b1e-f8ad-11ed-a3ce-da7ad0900002","scope":["test:testscheduleadowntimereturnsokresponse1684766097"]}
1616
1717
'
1818
headers:
@@ -27,7 +27,7 @@ interactions:
2727
accept:
2828
- '*/*'
2929
method: DELETE
30-
uri: https://api.datadoghq.com/api/v1/downtime/2893677175
30+
uri: https://api.datadoghq.com/api/v1/downtime/2941976753
3131
response:
3232
body:
3333
string: ''

0 commit comments

Comments
 (0)