Skip to content

Commit a5b511d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
MNTS-90534 : Clarify behavior of renotify_statuses when not explicitly set (#1922)
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 ac273ef commit a5b511d

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-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": "2024-04-04 17:56:42.820919",
8-
"spec_repo_commit": "bf950df2"
7+
"regenerated": "2024-04-04 19:22:32.316903",
8+
"spec_repo_commit": "fd06108d"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-04-04 17:56:42.841894",
13-
"spec_repo_commit": "bf950df2"
12+
"regenerated": "2024-04-04 19:22:32.334807",
13+
"spec_repo_commit": "fd06108d"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7067,8 +7067,13 @@ components:
70677067
nullable: true
70687068
type: integer
70697069
renotify_statuses:
7070-
description: The types of monitor statuses for which re-notification messages
7070+
description: 'The types of monitor statuses for which re-notification messages
70717071
are sent.
7072+
7073+
Default: **null** if `renotify_interval` is **null**.
7074+
7075+
If `renotify_interval` is set, defaults to renotify on `Alert` and `No
7076+
Data`.'
70727077
items:
70737078
$ref: '#/components/schemas/MonitorRenotifyStatusType'
70747079
nullable: true

src/datadog_api_client/v1/model/monitor_options.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ def __init__(
275275
:type renotify_occurrences: int, none_type, optional
276276
277277
:param renotify_statuses: The types of monitor statuses for which re-notification messages are sent.
278+
Default: **null** if ``renotify_interval`` is **null**.
279+
If ``renotify_interval`` is set, defaults to renotify on ``Alert`` and ``No Data``.
278280
:type renotify_statuses: [MonitorRenotifyStatusType], none_type, optional
279281
280282
:param require_full_window: A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.

0 commit comments

Comments
 (0)