Skip to content

Commit 343f8a5

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 2c917de9 of spec repo (#942)
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 bd9ce8b commit 343f8a5

16 files changed

+49
-24
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-05-05 07:22:42.135746",
8-
"spec_repo_commit": "e81df6f3"
7+
"regenerated": "2022-05-06 08:36:01.950575",
8+
"spec_repo_commit": "2c917de9"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-05-05 07:22:42.151969",
13-
"spec_repo_commit": "e81df6f3"
12+
"regenerated": "2022-05-06 08:36:01.969046",
13+
"spec_repo_commit": "2c917de9"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,6 +1499,11 @@ components:
14991499
description: A monitor tag.
15001500
type: string
15011501
type: array
1502+
mute_first_recovery_notification:
1503+
description: If the first recovery notification during a downtime should
1504+
be muted.
1505+
example: false
1506+
type: boolean
15021507
parent_id:
15031508
description: ID of the parent Downtime.
15041509
example: 123
@@ -1628,6 +1633,11 @@ components:
16281633
description: A monitor tag.
16291634
type: string
16301635
type: array
1636+
mute_first_recovery_notification:
1637+
description: If the first recovery notification during a downtime should
1638+
be muted.
1639+
example: false
1640+
type: boolean
16311641
parent_id:
16321642
description: ID of the parent Downtime.
16331643
example: 123

examples/v1/downtimes/CreateDowntime_2908359488.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
start=int(datetime.now().timestamp()),
3030
end=int((datetime.now() + relativedelta(hours=1)).timestamp()),
3131
timezone="Etc/UTC",
32+
mute_first_recovery_notification=True,
3233
)
3334

3435
configuration = Configuration()

examples/v1/downtimes/CreateDowntime_3059354445.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
start=int(datetime.now().timestamp()),
2222
end=int((datetime.now() + relativedelta(hours=1)).timestamp()),
2323
timezone="Etc/UTC",
24+
mute_first_recovery_notification=True,
2425
)
2526

2627
configuration = Configuration()

examples/v1/downtimes/UpdateDowntime.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
body = Downtime(
1414
message="Example-Update_a_downtime_returns_OK_response-updated",
15+
mute_first_recovery_notification=True,
1516
)
1617

1718
configuration = Configuration()

src/datadog_api_client/v1/model/downtime.py

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v1/model/downtime_child.py

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-01-10T15:50:12.385Z
1+
2022-04-21T06:01:10.874Z

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":1641833412,"message":"Test-Schedule_a_downtime_once_a_year-1641829812","recurrence":{"period":1,"type":"years"},"scope":["*"],"start":1641829812,"timezone":"Etc/UTC"}'
3+
body: '{"end":1650524470,"message":"Test-Schedule_a_downtime_once_a_year-1650520870","mute_first_recovery_notification":true,"recurrence":{"period":1,"type":"years"},"scope":["*"],"start":1650520870,"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":1641833412,"monitor_tags":["*"],"child_id":null,"canceled":null,"monitor_id":null,"created":1641829812,"org_id":321813,"modified":1641829812,"disabled":false,"start":1641829812,"creator_id":1445416,"parent_id":null,"timezone":"Etc/UTC","active":true,"scope":["*"],"message":"Test-Schedule_a_downtime_once_a_year-1641829812","downtime_type":0,"id":1672791231,"updater_id":null}'
13+
string: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"years","period":1},"end":1650524470,"monitor_tags":["*"],"child_id":null,"canceled":null,"monitor_id":null,"mute_first_recovery_notification":true,"created":1650520871,"org_id":321813,"modified":1650520871,"disabled":false,"start":1650520870,"creator_id":1445416,"parent_id":null,"timezone":"Etc/UTC","active":true,"scope":["*"],"message":"Test-Schedule_a_downtime_once_a_year-1650520870","downtime_type":0,"id":1894788565,"updater_id":null}'
1414
headers:
1515
content-type:
1616
- application/json
@@ -23,7 +23,7 @@ interactions:
2323
accept:
2424
- application/json
2525
method: DELETE
26-
uri: https://api.datadoghq.com/api/v1/downtime/1672791231
26+
uri: https://api.datadoghq.com/api/v1/downtime/1894788565
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-10T15:50:13.969Z
1+
2022-04-07T11:06:08.144Z

0 commit comments

Comments
 (0)