Skip to content

Commit eec7ca9

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit d3379b79 of spec repo (#1094)
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 0c5205f commit eec7ca9

24 files changed

+60
-33
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.2",
7-
"regenerated": "2022-07-12 16:16:35.151924",
8-
"spec_repo_commit": "2d238f31"
7+
"regenerated": "2022-07-14 15:13:33.175723",
8+
"spec_repo_commit": "d3379b79"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-07-12 16:16:35.164145",
13-
"spec_repo_commit": "2d238f31"
12+
"regenerated": "2022-07-14 15:13:33.187108",
13+
"spec_repo_commit": "d3379b79"
1414
}
1515
}
1616
}

examples/v1/downtimes/CreateDowntime_1393233946.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
start=int(datetime.now().timestamp()),
3030
end=int((datetime.now() + relativedelta(hours=1)).timestamp()),
3131
timezone="Etc/UTC",
32+
monitor_tags=[
33+
"tag0",
34+
],
3235
)
3336

3437
configuration = Configuration()

examples/v1/downtimes/CreateDowntime_2908359488.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
end=int((datetime.now() + relativedelta(hours=1)).timestamp()),
3131
timezone="Etc/UTC",
3232
mute_first_recovery_notification=True,
33+
monitor_tags=[
34+
"tag0",
35+
],
3336
)
3437

3538
configuration = Configuration()

examples/v1/downtimes/CreateDowntime_3059354445.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
end=int((datetime.now() + relativedelta(hours=1)).timestamp()),
2323
timezone="Etc/UTC",
2424
mute_first_recovery_notification=True,
25+
monitor_tags=[
26+
"tag0",
27+
],
2528
)
2629

2730
configuration = Configuration()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-05-12T09:49:58.211Z
1+
2022-07-12T22:07:44.361Z

tests/v1/cassettes/test_scenarios/test_schedule_a_downtime_once_a_year.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"end":1652352598,"message":"Test-Schedule_a_downtime_once_a_year-1652348998","mute_first_recovery_notification":true,"recurrence":{"period":1,"type":"years"},"scope":["*"],"start":1652348998,"timezone":"Etc/UTC"}'
3+
body: '{"end":1657667264,"message":"Test-Schedule_a_downtime_once_a_year-1657663664","monitor_tags":["tag0"],"mute_first_recovery_notification":true,"recurrence":{"period":1,"type":"years"},"scope":["*"],"start":1657663664,"timezone":"Etc/UTC"}'
44
headers:
55
accept:
66
- application/json
@@ -10,7 +10,7 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v1/downtime
1111
response:
1212
body:
13-
string: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"years","period":1},"end":1652352598,"monitor_tags":["*"],"child_id":null,"canceled":null,"monitor_id":null,"mute_first_recovery_notification":true,"created":1652348998,"org_id":321813,"modified":1652348998,"disabled":false,"start":1652348998,"creator_id":1445416,"parent_id":null,"timezone":"Etc/UTC","active":true,"scope":["*"],"message":"Test-Schedule_a_downtime_once_a_year-1652348998","downtime_type":0,"id":1944162271,"updater_id":null}'
13+
string: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"years","period":1},"end":1657667264,"monitor_tags":["tag0"],"child_id":null,"canceled":null,"monitor_id":null,"mute_first_recovery_notification":true,"created":1657663664,"org_id":321813,"modified":1657663664,"disabled":false,"start":1657663664,"creator_id":1445416,"parent_id":null,"timezone":"Etc/UTC","active":true,"scope":["*"],"message":"Test-Schedule_a_downtime_once_a_year-1657663664","downtime_type":0,"id":2082107265,"updater_id":null}'
1414
headers:
1515
content-type:
1616
- application/json
@@ -23,7 +23,7 @@ interactions:
2323
accept:
2424
- '*/*'
2525
method: DELETE
26-
uri: https://api.datadoghq.com/api/v1/downtime/1944162271
26+
uri: https://api.datadoghq.com/api/v1/downtime/2082107265
2727
response:
2828
body:
2929
string: ''
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-05-12T09:49:59.975Z
1+
2022-07-12T22:07:45.319Z

tests/v1/cassettes/test_scenarios/test_schedule_a_downtime_until_date.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"end":1652352599,"message":"Test-Schedule_a_downtime_until_date-1652348999","mute_first_recovery_notification":true,"recurrence":{"period":1,"type":"weeks","until_date":1654163399,"week_days":["Mon","Tue","Wed","Thu","Fri"]},"scope":["*"],"start":1652348999,"timezone":"Etc/UTC"}'
3+
body: '{"end":1657667265,"message":"Test-Schedule_a_downtime_until_date-1657663665","monitor_tags":["tag0"],"mute_first_recovery_notification":true,"recurrence":{"period":1,"type":"weeks","until_date":1659478065,"week_days":["Mon","Tue","Wed","Thu","Fri"]},"scope":["*"],"start":1657663665,"timezone":"Etc/UTC"}'
44
headers:
55
accept:
66
- application/json
@@ -10,7 +10,7 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v1/downtime
1111
response:
1212
body:
13-
string: '{"recurrence":{"until_date":1654163399,"until_occurrences":null,"week_days":["Mon","Tue","Wed","Thu","Fri"],"type":"weeks","period":1},"end":1652352599,"monitor_tags":["*"],"child_id":null,"canceled":null,"monitor_id":null,"mute_first_recovery_notification":true,"created":1652349000,"org_id":321813,"modified":1652349000,"disabled":false,"start":1652348999,"creator_id":1445416,"parent_id":null,"timezone":"Etc/UTC","active":true,"scope":["*"],"message":"Test-Schedule_a_downtime_until_date-1652348999","downtime_type":0,"id":1944162290,"updater_id":null}'
13+
string: '{"recurrence":{"until_date":1659478065,"until_occurrences":null,"week_days":["Mon","Tue","Wed","Thu","Fri"],"type":"weeks","period":1},"end":1657667265,"monitor_tags":["tag0"],"child_id":null,"canceled":null,"monitor_id":null,"mute_first_recovery_notification":true,"created":1657663665,"org_id":321813,"modified":1657663665,"disabled":false,"start":1657663665,"creator_id":1445416,"parent_id":null,"timezone":"Etc/UTC","active":true,"scope":["*"],"message":"Test-Schedule_a_downtime_until_date-1657663665","downtime_type":0,"id":2082107326,"updater_id":null}'
1414
headers:
1515
content-type:
1616
- application/json
@@ -23,7 +23,7 @@ interactions:
2323
accept:
2424
- '*/*'
2525
method: DELETE
26-
uri: https://api.datadoghq.com/api/v1/downtime/1944162290
26+
uri: https://api.datadoghq.com/api/v1/downtime/2082107326
2727
response:
2828
body:
2929
string: ''
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-01-06T00:50:48.683Z
1+
2022-07-12T22:07:46.126Z

tests/v1/cassettes/test_scenarios/test_schedule_a_downtime_with_invalid_type_hours.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"end":1641433848,"message":"Test-Schedule_a_downtime_with_invalid_type_hours-1641430248","recurrence":{"period":1,"type":"hours"},"scope":["*"],"start":1641430248,"timezone":"Etc/UTC"}'
3+
body: '{"end":1657667266,"message":"Test-Schedule_a_downtime_with_invalid_type_hours-1657663666","monitor_tags":["tag0"],"recurrence":{"period":1,"type":"hours"},"scope":["*"],"start":1657663666,"timezone":"Etc/UTC"}'
44
headers:
55
accept:
66
- application/json
@@ -10,7 +10,7 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v1/downtime
1111
response:
1212
body:
13-
string: '{"errors":["Invalid recurrence type"]}'
13+
string: '{"errors": ["Invalid recurrence type"]}'
1414
headers:
1515
content-type:
1616
- application/json

0 commit comments

Comments
 (0)