Skip to content

Commit 19df48f

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 11343fa of spec repo (#762)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 904e73e commit 19df48f

9 files changed

+20
-20
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.5.1.dev2",
7-
"regenerated": "2022-01-05 07:39:01.071781",
8-
"spec_repo_commit": "d72de97"
7+
"regenerated": "2022-01-05 16:26:01.277274",
8+
"spec_repo_commit": "11343fa"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2022-01-05 07:39:01.537546",
13-
"spec_repo_commit": "d72de97"
12+
"regenerated": "2022-01-05 16:26:01.707032",
13+
"spec_repo_commit": "11343fa"
1414
}
1515
}
1616
}

examples/v1/downtimes/CreateDowntime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111

1212
body = Downtime(
1313
message="Example-Schedule_a_downtime_returns_OK_response",
14-
start=datetime.now().timestamp(),
14+
start=int(datetime.now().timestamp()),
1515
timezone="Etc/UTC",
1616
scope=["test:examplescheduleadowntimereturnsokresponse"],
1717
recurrence=DowntimeRecurrence(
1818
type="weeks",
1919
period=1,
2020
week_days=["Mon", "Tue", "Wed", "Thu", "Fri"],
21-
until_date=(datetime.now() + relativedelta(days=21)).timestamp(),
21+
until_date=int((datetime.now() + relativedelta(days=21)).timestamp()),
2222
),
2323
)
2424

examples/v1/downtimes/CreateDowntime_1393233946.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
period=1, type="weeks", until_occurrences=3, week_days=["Mon", "Tue", "Wed", "Thu", "Fri"]
1616
),
1717
scope=["*"],
18-
start=datetime.now().timestamp(),
19-
end=(datetime.now() + relativedelta(hours=1)).timestamp(),
18+
start=int(datetime.now().timestamp()),
19+
end=int((datetime.now() + relativedelta(hours=1)).timestamp()),
2020
timezone="Etc/UTC",
2121
)
2222

examples/v1/downtimes/CreateDowntime_2908359488.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
recurrence=DowntimeRecurrence(
1515
period=1,
1616
type="weeks",
17-
until_date=(datetime.now() + relativedelta(days=21)).timestamp(),
17+
until_date=int((datetime.now() + relativedelta(days=21)).timestamp()),
1818
week_days=["Mon", "Tue", "Wed", "Thu", "Fri"],
1919
),
2020
scope=["*"],
21-
start=datetime.now().timestamp(),
22-
end=(datetime.now() + relativedelta(hours=1)).timestamp(),
21+
start=int(datetime.now().timestamp()),
22+
end=int((datetime.now() + relativedelta(hours=1)).timestamp()),
2323
timezone="Etc/UTC",
2424
)
2525

examples/v1/downtimes/CreateDowntime_3059354445.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
message="Example-Schedule_a_downtime_once_a_year",
1414
recurrence=DowntimeRecurrence(period=1, type="years"),
1515
scope=["*"],
16-
start=datetime.now().timestamp(),
17-
end=(datetime.now() + relativedelta(hours=1)).timestamp(),
16+
start=int(datetime.now().timestamp()),
17+
end=int((datetime.now() + relativedelta(hours=1)).timestamp()),
1818
timezone="Etc/UTC",
1919
)
2020

examples/v1/downtimes/CreateDowntime_3355644446.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
body = Downtime(
1515
message="Example-Schedule_a_monitor_downtime_returns_OK_response",
16-
start=datetime.now().timestamp(),
16+
start=int(datetime.now().timestamp()),
1717
timezone="Etc/UTC",
1818
scope=["test:examplescheduleamonitordowntimereturnsokresponse"],
19-
monitor_id=MONITOR_ID,
19+
monitor_id=int(MONITOR_ID),
2020
)
2121

2222
configuration = Configuration()

examples/v1/service-level-objective-corrections/CreateSLOCorrection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
attributes=SLOCorrectionCreateRequestAttributes(
2222
category=SLOCorrectionCategory("Scheduled Maintenance"),
2323
description="Example-Create_an_SLO_correction_returns_OK_response",
24-
end=(datetime.now() + relativedelta(hours=1)).timestamp(),
24+
end=int((datetime.now() + relativedelta(hours=1)).timestamp()),
2525
slo_id=SLO_DATA_0_ID,
26-
start=datetime.now().timestamp(),
26+
start=int(datetime.now().timestamp()),
2727
timezone="UTC",
2828
),
2929
type=SLOCorrectionType("correction"),

examples/v1/service-level-objective-corrections/CreateSLOCorrection_1326388368.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
category=SLOCorrectionCategory("Scheduled Maintenance"),
2222
description="Example-Create_an_SLO_correction_with_rrule_returns_OK_response",
2323
slo_id=SLO_DATA_0_ID,
24-
start=datetime.now().timestamp(),
24+
start=int(datetime.now().timestamp()),
2525
duration=3600,
2626
rrule="FREQ=DAILY;INTERVAL=10;COUNT=5",
2727
timezone="UTC",

examples/v1/service-level-objective-corrections/UpdateSLOCorrection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
attributes=SLOCorrectionUpdateRequestAttributes(
2222
category=SLOCorrectionCategory("Deployment"),
2323
description="Example-Update_an_SLO_correction_returns_OK_response",
24-
end=(datetime.now() + relativedelta(hours=1)).timestamp(),
25-
start=datetime.now().timestamp(),
24+
end=int((datetime.now() + relativedelta(hours=1)).timestamp()),
25+
start=int(datetime.now().timestamp()),
2626
timezone="UTC",
2727
),
2828
type=SLOCorrectionType("correction"),

0 commit comments

Comments
 (0)