Skip to content

Commit ce03f9b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 59e6a448 of spec repo
1 parent 261d9a6 commit ce03f9b

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
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.6",
7-
"regenerated": "2025-02-27 21:31:40.799230",
8-
"spec_repo_commit": "0b2e3d20"
7+
"regenerated": "2025-02-28 17:49:27.289434",
8+
"spec_repo_commit": "59e6a448"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-02-27 21:31:40.813872",
13-
"spec_repo_commit": "0b2e3d20"
12+
"regenerated": "2025-02-28 17:49:27.303661",
13+
"spec_repo_commit": "59e6a448"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7439,7 +7439,7 @@ components:
74397439
properties:
74407440
day_starts:
74417441
description: The time of the day at which a one day cumulative evaluation
7442-
window starts. Must be defined in UTC time in `HH:mm` format.
7442+
window starts.
74437443
example: 04:00
74447444
type: string
74457445
hour_starts:
@@ -7458,6 +7458,11 @@ components:
74587458
maximum: 1
74597459
minimum: 1
74607460
type: integer
7461+
timezone:
7462+
description: The timezone of the time of the day of the cumulative evaluation
7463+
window start.
7464+
example: Europe/Paris
7465+
type: string
74617466
type: object
74627467
MonitorOverallStates:
74637468
description: The different states your monitor can be in.

src/datadog_api_client/v1/model/monitor_options_scheduling_options_evaluation_window.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,37 +31,45 @@ def openapi_types(_):
3131
"day_starts": (str,),
3232
"hour_starts": (int,),
3333
"month_starts": (int,),
34+
"timezone": (str,),
3435
}
3536

3637
attribute_map = {
3738
"day_starts": "day_starts",
3839
"hour_starts": "hour_starts",
3940
"month_starts": "month_starts",
41+
"timezone": "timezone",
4042
}
4143

4244
def __init__(
4345
self_,
4446
day_starts: Union[str, UnsetType] = unset,
4547
hour_starts: Union[int, UnsetType] = unset,
4648
month_starts: Union[int, UnsetType] = unset,
49+
timezone: Union[str, UnsetType] = unset,
4750
**kwargs,
4851
):
4952
"""
5053
Configuration options for the evaluation window. If ``hour_starts`` is set, no other fields may be set. Otherwise, ``day_starts`` and ``month_starts`` must be set together.
5154
52-
:param day_starts: The time of the day at which a one day cumulative evaluation window starts. Must be defined in UTC time in ``HH:mm`` format.
55+
:param day_starts: The time of the day at which a one day cumulative evaluation window starts.
5356
:type day_starts: str, optional
5457
5558
:param hour_starts: The minute of the hour at which a one hour cumulative evaluation window starts.
5659
:type hour_starts: int, optional
5760
5861
:param month_starts: The day of the month at which a one month cumulative evaluation window starts.
5962
:type month_starts: int, optional
63+
64+
:param timezone: The timezone of the time of the day of the cumulative evaluation window start.
65+
:type timezone: str, optional
6066
"""
6167
if day_starts is not unset:
6268
kwargs["day_starts"] = day_starts
6369
if hour_starts is not unset:
6470
kwargs["hour_starts"] = hour_starts
6571
if month_starts is not unset:
6672
kwargs["month_starts"] = month_starts
73+
if timezone is not unset:
74+
kwargs["timezone"] = timezone
6775
super().__init__(kwargs)

tests/v1/features/monitors.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Feature: Monitors
164164
Scenario: Edit a monitor returns "Bad Request" response
165165
Given new "UpdateMonitor" request
166166
And request contains "monitor_id" parameter from "REPLACE.ME"
167-
And body with value {"options": {"evaluation_delay": null, "include_tags": true, "min_failure_duration": 0, "min_location_failed": 1, "new_group_delay": null, "new_host_delay": 300, "no_data_timeframe": null, "notification_preset_name": "show_all", "notify_audit": false, "notify_by": [], "on_missing_data": "default", "renotify_interval": null, "renotify_occurrences": null, "renotify_statuses": ["alert"], "scheduling_options": {"custom_schedule": {"recurrences": [{"rrule": "FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR", "start": "2023-08-31T16:30:00", "timezone": "Europe/Paris"}]}, "evaluation_window": {"day_starts": "04:00", "hour_starts": 0, "month_starts": 1}}, "synthetics_check_id": null, "threshold_windows": {"recovery_window": null, "trigger_window": null}, "thresholds": {"critical_recovery": null, "ok": null, "unknown": null, "warning": null, "warning_recovery": null}, "timeout_h": null, "variables": [{"compute": {"aggregation": "avg", "interval": 60000, "metric": "@duration"}, "data_source": "rum", "group_by": [{"facet": "status", "limit": 10, "sort": {"aggregation": "avg", "order": "desc"}}], "indexes": ["days-3", "days-7"], "name": "query_errors", "search": {"query": "service:query"}}]}, "priority": null, "restricted_roles": [], "tags": [], "type": "query alert"}
167+
And body with value {"options": {"evaluation_delay": null, "include_tags": true, "min_failure_duration": 0, "min_location_failed": 1, "new_group_delay": null, "new_host_delay": 300, "no_data_timeframe": null, "notification_preset_name": "show_all", "notify_audit": false, "notify_by": [], "on_missing_data": "default", "renotify_interval": null, "renotify_occurrences": null, "renotify_statuses": ["alert"], "scheduling_options": {"custom_schedule": {"recurrences": [{"rrule": "FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR", "start": "2023-08-31T16:30:00", "timezone": "Europe/Paris"}]}, "evaluation_window": {"day_starts": "04:00", "hour_starts": 0, "month_starts": 1, "timezone": "Europe/Paris"}}, "synthetics_check_id": null, "threshold_windows": {"recovery_window": null, "trigger_window": null}, "thresholds": {"critical_recovery": null, "ok": null, "unknown": null, "warning": null, "warning_recovery": null}, "timeout_h": null, "variables": [{"compute": {"aggregation": "avg", "interval": 60000, "metric": "@duration"}, "data_source": "rum", "group_by": [{"facet": "status", "limit": 10, "sort": {"aggregation": "avg", "order": "desc"}}], "indexes": ["days-3", "days-7"], "name": "query_errors", "search": {"query": "service:query"}}]}, "priority": null, "restricted_roles": [], "tags": [], "type": "query alert"}
168168
When the request is sent
169169
Then the response status is 400 Bad Request
170170

0 commit comments

Comments
 (0)