Skip to content

Commit 4f9fc5f

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 7edfcfcc of spec repo
1 parent 91995d0 commit 4f9fc5f

8 files changed

+146
-5
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": "2023-09-25 12:12:23.639338",
8-
"spec_repo_commit": "5d002e79"
7+
"regenerated": "2023-09-25 14:29:13.724956",
8+
"spec_repo_commit": "7edfcfcc"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-09-25 12:12:23.655830",
13-
"spec_repo_commit": "5d002e79"
12+
"regenerated": "2023-09-25 14:29:13.748304",
13+
"spec_repo_commit": "7edfcfcc"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6852,9 +6852,34 @@ components:
68526852
MonitorOptionsSchedulingOptions:
68536853
description: Configuration options for scheduling.
68546854
properties:
6855+
custom_schedule:
6856+
$ref: '#/components/schemas/MonitorOptionsSchedulingOptionsCustomSchedule'
68556857
evaluation_window:
68566858
$ref: '#/components/schemas/MonitorOptionsSchedulingOptionsEvaluationWindow'
68576859
type: object
6860+
MonitorOptionsSchedulingOptionsCustomSchedule:
6861+
description: Configuration options for the custom schedule.
6862+
properties:
6863+
recurrences:
6864+
$ref: '#/components/schemas/MonitorOptionsSchedulingOptionsCustomScheduleRecurrences'
6865+
type: object
6866+
MonitorOptionsSchedulingOptionsCustomScheduleRecurrences:
6867+
description: Configuration recurrences set on the monitor options for custom
6868+
schedule.
6869+
properties:
6870+
rrule:
6871+
description: Defines the recurrence rule (RRULE) for a given schedule.
6872+
example: FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
6873+
type: string
6874+
start:
6875+
description: Defines the timestamp on when the schedule should start.
6876+
example: '2023-08-31T16:30:00'
6877+
type: string
6878+
timezone:
6879+
description: Defines the timezone the schedule runs on.
6880+
example: Europe/Paris
6881+
type: string
6882+
type: object
68586883
MonitorOptionsSchedulingOptionsEvaluationWindow:
68596884
description: Configuration options for the evaluation window. If `hour_starts`
68606885
is set, no other fields may be set. Otherwise, `day_starts` and `month_starts`

features/v1/monitors.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Feature: Monitors
146146
Scenario: Edit a monitor returns "Bad Request" response
147147
Given new "UpdateMonitor" request
148148
And request contains "monitor_id" parameter from "REPLACE.ME"
149-
And body with value {"options": {"escalation_message": "none", "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": [], "notify_no_data": false, "on_missing_data": "default", "renotify_interval": null, "renotify_occurrences": null, "renotify_statuses": ["alert"], "scheduling_options": {"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"}}]}, "restricted_roles": [], "tags": [], "type": "query alert"}
149+
And body with value {"options": {"escalation_message": "none", "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": [], "notify_no_data": false, "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"}}]}, "restricted_roles": [], "tags": [], "type": "query alert"}
150150
When the request is sent
151151
Then the response status is 400 Bad Request
152152

packages/datadog-api-client-v1/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,8 @@ export { MonitorOptions } from "./models/MonitorOptions";
610610
export { MonitorOptionsAggregation } from "./models/MonitorOptionsAggregation";
611611
export { MonitorOptionsNotificationPresets } from "./models/MonitorOptionsNotificationPresets";
612612
export { MonitorOptionsSchedulingOptions } from "./models/MonitorOptionsSchedulingOptions";
613+
export { MonitorOptionsSchedulingOptionsCustomSchedule } from "./models/MonitorOptionsSchedulingOptionsCustomSchedule";
614+
export { MonitorOptionsSchedulingOptionsCustomScheduleRecurrences } from "./models/MonitorOptionsSchedulingOptionsCustomScheduleRecurrences";
613615
export { MonitorOptionsSchedulingOptionsEvaluationWindow } from "./models/MonitorOptionsSchedulingOptionsEvaluationWindow";
614616
export { MonitorOverallStates } from "./models/MonitorOverallStates";
615617
export { MonitorRenotifyStatusType } from "./models/MonitorRenotifyStatusType";

packages/datadog-api-client-v1/models/MonitorOptionsSchedulingOptions.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* This product includes software developed at Datadog (https://www.datadoghq.com/).
44
* Copyright 2020-Present Datadog, Inc.
55
*/
6+
import { MonitorOptionsSchedulingOptionsCustomSchedule } from "./MonitorOptionsSchedulingOptionsCustomSchedule";
67
import { MonitorOptionsSchedulingOptionsEvaluationWindow } from "./MonitorOptionsSchedulingOptionsEvaluationWindow";
78

89
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
@@ -11,6 +12,10 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1112
* Configuration options for scheduling.
1213
*/
1314
export class MonitorOptionsSchedulingOptions {
15+
/**
16+
* Configuration options for the custom schedule.
17+
*/
18+
"customSchedule"?: MonitorOptionsSchedulingOptionsCustomSchedule;
1419
/**
1520
* 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.
1621
*/
@@ -25,6 +30,10 @@ export class MonitorOptionsSchedulingOptions {
2530
* @ignore
2631
*/
2732
static readonly attributeTypeMap: AttributeTypeMap = {
33+
customSchedule: {
34+
baseName: "custom_schedule",
35+
type: "MonitorOptionsSchedulingOptionsCustomSchedule",
36+
},
2837
evaluationWindow: {
2938
baseName: "evaluation_window",
3039
type: "MonitorOptionsSchedulingOptionsEvaluationWindow",
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/**
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2020-Present Datadog, Inc.
5+
*/
6+
import { MonitorOptionsSchedulingOptionsCustomScheduleRecurrences } from "./MonitorOptionsSchedulingOptionsCustomScheduleRecurrences";
7+
8+
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
9+
10+
/**
11+
* Configuration options for the custom schedule.
12+
*/
13+
export class MonitorOptionsSchedulingOptionsCustomSchedule {
14+
/**
15+
* Configuration recurrences set on the monitor options for custom schedule.
16+
*/
17+
"recurrences"?: MonitorOptionsSchedulingOptionsCustomScheduleRecurrences;
18+
19+
/**
20+
* @ignore
21+
*/
22+
"_unparsed"?: boolean;
23+
24+
/**
25+
* @ignore
26+
*/
27+
static readonly attributeTypeMap: AttributeTypeMap = {
28+
recurrences: {
29+
baseName: "recurrences",
30+
type: "MonitorOptionsSchedulingOptionsCustomScheduleRecurrences",
31+
},
32+
};
33+
34+
/**
35+
* @ignore
36+
*/
37+
static getAttributeTypeMap(): AttributeTypeMap {
38+
return MonitorOptionsSchedulingOptionsCustomSchedule.attributeTypeMap;
39+
}
40+
41+
public constructor() {}
42+
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/**
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2020-Present Datadog, Inc.
5+
*/
6+
7+
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
8+
9+
/**
10+
* Configuration recurrences set on the monitor options for custom schedule.
11+
*/
12+
export class MonitorOptionsSchedulingOptionsCustomScheduleRecurrences {
13+
/**
14+
* Defines the recurrence rule (RRULE) for a given schedule.
15+
*/
16+
"rrule"?: string;
17+
/**
18+
* Defines the timestamp on when the schedule should start.
19+
*/
20+
"start"?: string;
21+
/**
22+
* Defines the timezone the schedule runs on.
23+
*/
24+
"timezone"?: string;
25+
26+
/**
27+
* @ignore
28+
*/
29+
"_unparsed"?: boolean;
30+
31+
/**
32+
* @ignore
33+
*/
34+
static readonly attributeTypeMap: AttributeTypeMap = {
35+
rrule: {
36+
baseName: "rrule",
37+
type: "string",
38+
},
39+
start: {
40+
baseName: "start",
41+
type: "string",
42+
},
43+
timezone: {
44+
baseName: "timezone",
45+
type: "string",
46+
},
47+
};
48+
49+
/**
50+
* @ignore
51+
*/
52+
static getAttributeTypeMap(): AttributeTypeMap {
53+
return MonitorOptionsSchedulingOptionsCustomScheduleRecurrences.attributeTypeMap;
54+
}
55+
56+
public constructor() {}
57+
}

packages/datadog-api-client-v1/models/ObjectSerializer.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ import { MonitorGroupSearchResult } from "./MonitorGroupSearchResult";
202202
import { MonitorOptions } from "./MonitorOptions";
203203
import { MonitorOptionsAggregation } from "./MonitorOptionsAggregation";
204204
import { MonitorOptionsSchedulingOptions } from "./MonitorOptionsSchedulingOptions";
205+
import { MonitorOptionsSchedulingOptionsCustomSchedule } from "./MonitorOptionsSchedulingOptionsCustomSchedule";
206+
import { MonitorOptionsSchedulingOptionsCustomScheduleRecurrences } from "./MonitorOptionsSchedulingOptionsCustomScheduleRecurrences";
205207
import { MonitorOptionsSchedulingOptionsEvaluationWindow } from "./MonitorOptionsSchedulingOptionsEvaluationWindow";
206208
import { MonitorSearchCountItem } from "./MonitorSearchCountItem";
207209
import { MonitorSearchResponse } from "./MonitorSearchResponse";
@@ -1690,6 +1692,10 @@ const typeMap: { [index: string]: any } = {
16901692
MonitorOptions: MonitorOptions,
16911693
MonitorOptionsAggregation: MonitorOptionsAggregation,
16921694
MonitorOptionsSchedulingOptions: MonitorOptionsSchedulingOptions,
1695+
MonitorOptionsSchedulingOptionsCustomSchedule:
1696+
MonitorOptionsSchedulingOptionsCustomSchedule,
1697+
MonitorOptionsSchedulingOptionsCustomScheduleRecurrences:
1698+
MonitorOptionsSchedulingOptionsCustomScheduleRecurrences,
16931699
MonitorOptionsSchedulingOptionsEvaluationWindow:
16941700
MonitorOptionsSchedulingOptionsEvaluationWindow,
16951701
MonitorSearchCountItem: MonitorSearchCountItem,

0 commit comments

Comments
 (0)