Skip to content

Commit 241fa26

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 526ff73 of spec repo
1 parent 53be7d6 commit 241fa26

6 files changed

Lines changed: 20 additions & 4 deletions

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11798,7 +11798,8 @@ components:
1179811798
The default option results in different behavior depending on the monitor query type.
1179911799
For monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.
1180011800
For monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.
11801-
This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
11801+
This option is available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
11802+
It is also required for metric monitors that use `scheduling_options.custom_schedule`.
1180211803
enum:
1180311804
- "default"
1180411805
- "show_no_data"

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64968,6 +64968,9 @@ components:
6496864968
description: The ID of a component whose output is used as input for this destination.
6496964969
type: string
6497064970
type: array
64971+
tls:
64972+
$ref: "#/components/schemas/ObservabilityPipelineTls"
64973+
description: Configuration for TLS encryption.
6497164974
type:
6497264975
$ref: "#/components/schemas/ObservabilityPipelineCloudPremDestinationType"
6497364976
required:

src/datadog_api_client/v1/model/monitor_options.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ def __init__(
289289
The default option results in different behavior depending on the monitor query type.
290290
For monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.
291291
For monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.
292-
This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
292+
This option is available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
293+
It is also required for metric monitors that use ``scheduling_options.custom_schedule``.
293294
:type on_missing_data: OnMissingDataOption, optional
294295
295296
:param renotify_interval: The number of minutes after the last notification before a monitor re-notifies on the current status.

src/datadog_api_client/v1/model/on_missing_data_option.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ class OnMissingDataOption(ModelSimple):
1818
The default option results in different behavior depending on the monitor query type.
1919
For monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.
2020
For monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.
21-
This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
21+
This option is available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
22+
It is also required for metric monitors that use `scheduling_options.custom_schedule`.
2223
2324
:param value: Must be one of ["default", "show_no_data", "show_and_notify_no_data", "resolve"].
2425
:type value: str

src/datadog_api_client/v2/model/observability_pipeline_cloud_prem_destination.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
if TYPE_CHECKING:
1717
from datadog_api_client.v2.model.observability_pipeline_buffer_options import ObservabilityPipelineBufferOptions
18+
from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls
1819
from datadog_api_client.v2.model.observability_pipeline_cloud_prem_destination_type import (
1920
ObservabilityPipelineCloudPremDestinationType,
2021
)
@@ -33,6 +34,7 @@ class ObservabilityPipelineCloudPremDestination(ModelNormal):
3334
@cached_property
3435
def openapi_types(_):
3536
from datadog_api_client.v2.model.observability_pipeline_buffer_options import ObservabilityPipelineBufferOptions
37+
from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls
3638
from datadog_api_client.v2.model.observability_pipeline_cloud_prem_destination_type import (
3739
ObservabilityPipelineCloudPremDestinationType,
3840
)
@@ -42,6 +44,7 @@ def openapi_types(_):
4244
"endpoint_url_key": (str,),
4345
"id": (str,),
4446
"inputs": ([str],),
47+
"tls": (ObservabilityPipelineTls,),
4548
"type": (ObservabilityPipelineCloudPremDestinationType,),
4649
}
4750

@@ -50,6 +53,7 @@ def openapi_types(_):
5053
"endpoint_url_key": "endpoint_url_key",
5154
"id": "id",
5255
"inputs": "inputs",
56+
"tls": "tls",
5357
"type": "type",
5458
}
5559

@@ -66,6 +70,7 @@ def __init__(
6670
UnsetType,
6771
] = unset,
6872
endpoint_url_key: Union[str, UnsetType] = unset,
73+
tls: Union[ObservabilityPipelineTls, UnsetType] = unset,
6974
**kwargs,
7075
):
7176
"""
@@ -85,13 +90,18 @@ def __init__(
8590
:param inputs: A list of component IDs whose output is used as the ``input`` for this component.
8691
:type inputs: [str]
8792
93+
:param tls: Configuration for enabling TLS encryption between the pipeline component and external services.
94+
:type tls: ObservabilityPipelineTls, optional
95+
8896
:param type: The destination type. The value should always be ``cloud_prem``.
8997
:type type: ObservabilityPipelineCloudPremDestinationType
9098
"""
9199
if buffer is not unset:
92100
kwargs["buffer"] = buffer
93101
if endpoint_url_key is not unset:
94102
kwargs["endpoint_url_key"] = endpoint_url_key
103+
if tls is not unset:
104+
kwargs["tls"] = tls
95105
super().__init__(kwargs)
96106

97107
self_.id = id

tests/v1/features/monitors.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Feature: Monitors
119119
And the response "name" is equal to "{{ unique }}"
120120
And the response "query" is equal to "avg(current_1mo):avg:system.load.5{*} > 0.5"
121121

122-
@team:DataDog/monitor-app
122+
@oncall-page:monitor-app @team:DataDog/monitor-app
123123
Scenario: Create a metric monitor with a custom schedule returns "OK" response
124124
Given new "CreateMonitor" request
125125
And body with value {"message":"some message Notify: @hipchat-channel","name":"{{ unique }}","query":"avg(current_1mo):avg:system.load.5{*} > 0.5","tags":[],"options":{"thresholds":{"critical":0.5},"notify_audit":false,"include_tags":false,"on_missing_data":"default","scheduling_options":{"evaluation_window":{"day_starts":"04:00", "month_starts":1},"custom_schedule":{"recurrences":[{"rrule":"FREQ=DAILY;INTERVAL=1","timezone":"America/Los_Angeles","start":"2024-10-26T09:13:00"}]}}},"type":"query alert", "draft_status": "published"}

0 commit comments

Comments
 (0)