Skip to content

Commit fb41aa3

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add enable_samples monitor option (#1267)
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 7a7be3c commit fb41aa3

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
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.4",
7-
"regenerated": "2022-12-13 17:18:24.643012",
8-
"spec_repo_commit": "8cd868ba"
7+
"regenerated": "2022-12-13 20:15:37.769174",
8+
"spec_repo_commit": "cb07e37b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-12-13 17:18:24.654013",
13-
"spec_repo_commit": "8cd868ba"
12+
"regenerated": "2022-12-13 20:15:37.783093",
13+
"spec_repo_commit": "cb07e37b"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6155,6 +6155,10 @@ components:
61556155
enable_logs_sample:
61566156
description: Whether or not to send a log sample when the log monitor triggers.
61576157
type: boolean
6158+
enable_samples:
6159+
description: Whether or not to send a list of samples when the monitor triggers.
6160+
This is only used by CI Test and Pipeline monitors.
6161+
type: boolean
61586162
escalation_message:
61596163
default: none
61606164
description: 'We recommend using the [is_renotify](https://docs.datadoghq.com/monitors/notify/?tab=is_alert#renotify),

src/datadog_api_client/v1/model/monitor_options.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def openapi_types(_):
5555
"aggregation": (MonitorOptionsAggregation,),
5656
"device_ids": ([MonitorDeviceID],),
5757
"enable_logs_sample": (bool,),
58+
"enable_samples": (bool,),
5859
"escalation_message": (str,),
5960
"evaluation_delay": (int, none_type),
6061
"group_retention_duration": (str,),
@@ -94,6 +95,7 @@ def openapi_types(_):
9495
"aggregation": "aggregation",
9596
"device_ids": "device_ids",
9697
"enable_logs_sample": "enable_logs_sample",
98+
"enable_samples": "enable_samples",
9799
"escalation_message": "escalation_message",
98100
"evaluation_delay": "evaluation_delay",
99101
"group_retention_duration": "group_retention_duration",
@@ -131,6 +133,7 @@ def __init__(
131133
aggregation: Union[MonitorOptionsAggregation, UnsetType] = unset,
132134
device_ids: Union[List[MonitorDeviceID], UnsetType] = unset,
133135
enable_logs_sample: Union[bool, UnsetType] = unset,
136+
enable_samples: Union[bool, UnsetType] = unset,
134137
escalation_message: Union[str, UnsetType] = unset,
135138
evaluation_delay: Union[int, none_type, UnsetType] = unset,
136139
group_retention_duration: Union[str, UnsetType] = unset,
@@ -174,6 +177,9 @@ def __init__(
174177
:param enable_logs_sample: Whether or not to send a log sample when the log monitor triggers.
175178
:type enable_logs_sample: bool, optional
176179
180+
:param enable_samples: Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.
181+
:type enable_samples: bool, optional
182+
177183
:param escalation_message: We recommend using the `is_renotify <https://docs.datadoghq.com/monitors/notify/?tab=is_alert#renotify>`_ ,
178184
block in the original message instead.
179185
A message to include with a re-notification. Supports the ``@username`` notification we allow elsewhere.
@@ -295,6 +301,8 @@ def __init__(
295301
kwargs["device_ids"] = device_ids
296302
if enable_logs_sample is not unset:
297303
kwargs["enable_logs_sample"] = enable_logs_sample
304+
if enable_samples is not unset:
305+
kwargs["enable_samples"] = enable_samples
298306
if escalation_message is not unset:
299307
kwargs["escalation_message"] = escalation_message
300308
if evaluation_delay is not unset:

0 commit comments

Comments
 (0)