Skip to content

Commit 6a57dc2

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b5659b74 of spec repo
1 parent 9788dfb commit 6a57dc2

File tree

4 files changed

+25
-10
lines changed

4 files changed

+25
-10
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-24 14:19:11.276522",
8-
"spec_repo_commit": "b34a35ef"
7+
"regenerated": "2025-02-25 16:20:47.268722",
8+
"spec_repo_commit": "b5659b74"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-02-24 14:19:11.291802",
13-
"spec_repo_commit": "b34a35ef"
12+
"regenerated": "2025-02-25 16:20:47.284024",
13+
"spec_repo_commit": "b5659b74"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7437,7 +7437,7 @@ components:
74377437
properties:
74387438
day_starts:
74397439
description: The time of the day at which a one day cumulative evaluation
7440-
window starts. Must be defined in UTC time in `HH:mm` format.
7440+
window starts.
74417441
example: 04:00
74427442
type: string
74437443
hour_starts:
@@ -7456,6 +7456,11 @@ components:
74567456
maximum: 1
74577457
minimum: 1
74587458
type: integer
7459+
timezone:
7460+
description: The timezone of the time of the day of the cumulative evaluation
7461+
window start.
7462+
example: Europe/Paris
7463+
type: string
74597464
type: object
74607465
MonitorOverallStates:
74617466
description: The different states your monitor can be in.

features/v1/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

lib/datadog_api_client/v1/models/monitor_options_scheduling_options_evaluation_window.rb

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module DatadogAPIClient::V1
2121
class MonitorOptionsSchedulingOptionsEvaluationWindow
2222
include BaseGenericModel
2323

24-
# The time of the day at which a one day cumulative evaluation window starts. Must be defined in UTC time in `HH:mm` format.
24+
# The time of the day at which a one day cumulative evaluation window starts.
2525
attr_accessor :day_starts
2626

2727
# The minute of the hour at which a one hour cumulative evaluation window starts.
@@ -30,6 +30,9 @@ class MonitorOptionsSchedulingOptionsEvaluationWindow
3030
# The day of the month at which a one month cumulative evaluation window starts.
3131
attr_reader :month_starts
3232

33+
# The timezone of the time of the day of the cumulative evaluation window start.
34+
attr_accessor :timezone
35+
3336
attr_accessor :additional_properties
3437

3538
# Attribute mapping from ruby-style variable name to JSON key.
@@ -38,7 +41,8 @@ def self.attribute_map
3841
{
3942
:'day_starts' => :'day_starts',
4043
:'hour_starts' => :'hour_starts',
41-
:'month_starts' => :'month_starts'
44+
:'month_starts' => :'month_starts',
45+
:'timezone' => :'timezone'
4246
}
4347
end
4448

@@ -48,7 +52,8 @@ def self.openapi_types
4852
{
4953
:'day_starts' => :'String',
5054
:'hour_starts' => :'Integer',
51-
:'month_starts' => :'Integer'
55+
:'month_starts' => :'Integer',
56+
:'timezone' => :'String'
5257
}
5358
end
5459

@@ -81,6 +86,10 @@ def initialize(attributes = {})
8186
if attributes.key?(:'month_starts')
8287
self.month_starts = attributes[:'month_starts']
8388
end
89+
90+
if attributes.key?(:'timezone')
91+
self.timezone = attributes[:'timezone']
92+
end
8493
end
8594

8695
# Check to see if the all the properties in the model are valid
@@ -149,14 +158,15 @@ def ==(o)
149158
day_starts == o.day_starts &&
150159
hour_starts == o.hour_starts &&
151160
month_starts == o.month_starts &&
161+
timezone == o.timezone &&
152162
additional_properties == o.additional_properties
153163
end
154164

155165
# Calculates hash code according to all attributes.
156166
# @return [Integer] Hash code
157167
# @!visibility private
158168
def hash
159-
[day_starts, hour_starts, month_starts, additional_properties].hash
169+
[day_starts, hour_starts, month_starts, timezone, additional_properties].hash
160170
end
161171
end
162172
end

0 commit comments

Comments
 (0)