Skip to content

Commit 3dabd2d

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 38fb231 of spec repo
1 parent 5629a9a commit 3dabd2d

12 files changed

Lines changed: 339 additions & 33 deletions

.generator/schemas/v1/openapi.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9229,19 +9229,11 @@ components:
92299229
description: The monitor `CRITICAL` threshold.
92309230
format: double
92319231
type: number
9232-
critical_query:
9233-
description: Query evaluated as a dynamic `CRITICAL` threshold. Only supported on metric monitors with a formula query and options['variables']. Cannot be combined with static thresholds. This field is in preview.
9234-
example: 'formula("2 * query1").rollup("avg").last("6mo")'
9235-
type: string
92369232
critical_recovery:
92379233
description: The monitor `CRITICAL` recovery threshold.
92389234
format: double
92399235
nullable: true
92409236
type: number
9241-
critical_recovery_query:
9242-
description: Query evaluated as a dynamic `CRITICAL` recovery threshold. Only supported on metric monitors with a formula query and options['variables']. Cannot be combined with static thresholds. This field is in preview.
9243-
example: 'formula("1.5 * query1").rollup("avg").last("3mo")'
9244-
type: string
92459237
ok:
92469238
description: The monitor `OK` threshold.
92479239
format: double
@@ -33708,10 +33700,6 @@ paths:
3370833700
- `operator`: <, <=, >, >=, ==, or !=
3370933701
- `#`: an integer or decimal number used to set the threshold
3371033702

33711-
To use a dynamic threshold on a metric monitor with a formula query, replace `#` with the `threshold` keyword
33712-
(for example, `... > threshold`) and provide the threshold as a query via `critical_query` on `options.thresholds`.
33713-
This feature is in preview.
33714-
3371533703
If you are using the `_change_` or `_pct_change_` time aggregator, instead use `change_aggr(time_aggr(time_window),
3371633704
timeshift):space_aggr:metric{tags} [by {key}] operator #` with:
3371733705

.generator/schemas/v2/openapi.yaml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53778,6 +53778,7 @@ components:
5377853778
- $ref: "#/components/schemas/ObservabilityPipelineSyslogNgDestination"
5377953779
- $ref: "#/components/schemas/ObservabilityPipelineDatabricksZerobusDestination"
5378053780
- $ref: "#/components/schemas/ObservabilityPipelineDatadogMetricsDestination"
53781+
- $ref: "#/components/schemas/ObservabilityPipelineSplunkHecMetricsDestination"
5378153782
ObservabilityPipelineConfigPipelineType:
5378253783
default: logs
5378353784
description: The type of data being ingested. Defaults to `logs` if not specified.
@@ -57899,6 +57900,79 @@ components:
5789957900
type: string
5790057901
x-enum-varnames:
5790157902
- SPLUNK_HEC
57903+
ObservabilityPipelineSplunkHecMetricsDestination:
57904+
description: |-
57905+
The `splunk_hec_metrics` destination forwards metrics to Splunk using the HTTP Event Collector (HEC).
57906+
57907+
**Supported pipeline types:** metrics
57908+
properties:
57909+
compression:
57910+
$ref: "#/components/schemas/ObservabilityPipelineSplunkHecMetricsDestinationCompression"
57911+
default_namespace:
57912+
description: Optional default namespace for metrics sent to Splunk HEC.
57913+
example: "custom_namespace"
57914+
type: string
57915+
endpoint_url_key:
57916+
description: Name of the environment variable or secret that holds the Splunk HEC endpoint URL.
57917+
example: SPLUNK_HEC_ENDPOINT_URL
57918+
type: string
57919+
id:
57920+
description: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
57921+
example: splunk-hec-metrics-destination
57922+
type: string
57923+
index:
57924+
description: Optional name of the Splunk index where metrics are written.
57925+
example: "metrics"
57926+
type: string
57927+
inputs:
57928+
description: A list of component IDs whose output is used as the `input` for this component.
57929+
example: ["metrics-filter-processor"]
57930+
items:
57931+
description: The ID of a component whose output is used as input for this destination.
57932+
type: string
57933+
type: array
57934+
source:
57935+
description: The Splunk source field value for metric events.
57936+
example: "observability_pipelines"
57937+
type: string
57938+
sourcetype:
57939+
description: The Splunk sourcetype to assign to metric events.
57940+
example: "custom_sourcetype"
57941+
type: string
57942+
tls:
57943+
$ref: "#/components/schemas/ObservabilityPipelineTls"
57944+
token_key:
57945+
description: Name of the environment variable or secret that holds the Splunk HEC token.
57946+
example: SPLUNK_HEC_TOKEN
57947+
type: string
57948+
type:
57949+
$ref: "#/components/schemas/ObservabilityPipelineSplunkHecMetricsDestinationType"
57950+
required:
57951+
- id
57952+
- type
57953+
- inputs
57954+
type: object
57955+
x-pipeline-types: [metrics]
57956+
ObservabilityPipelineSplunkHecMetricsDestinationCompression:
57957+
default: none
57958+
description: Compression algorithm applied when sending metrics to Splunk HEC.
57959+
enum:
57960+
- none
57961+
- gzip
57962+
example: none
57963+
type: string
57964+
x-enum-varnames:
57965+
- NONE
57966+
- GZIP
57967+
ObservabilityPipelineSplunkHecMetricsDestinationType:
57968+
default: splunk_hec_metrics
57969+
description: The destination type. Always `splunk_hec_metrics`.
57970+
enum:
57971+
- splunk_hec_metrics
57972+
example: splunk_hec_metrics
57973+
type: string
57974+
x-enum-varnames:
57975+
- SPLUNK_HEC_METRICS
5790257976
ObservabilityPipelineSplunkHecSource:
5790357977
description: |-
5790457978
The `splunk_hec` source implements the Splunk HTTP Event Collector (HEC) API.

docs/datadog_api_client.v2.model.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24714,6 +24714,27 @@ datadog\_api\_client.v2.model.observability\_pipeline\_splunk\_hec\_destination\
2471424714
:members:
2471524715
:show-inheritance:
2471624716

24717+
datadog\_api\_client.v2.model.observability\_pipeline\_splunk\_hec\_metrics\_destination module
24718+
-----------------------------------------------------------------------------------------------
24719+
24720+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination
24721+
:members:
24722+
:show-inheritance:
24723+
24724+
datadog\_api\_client.v2.model.observability\_pipeline\_splunk\_hec\_metrics\_destination\_compression module
24725+
------------------------------------------------------------------------------------------------------------
24726+
24727+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination_compression
24728+
:members:
24729+
:show-inheritance:
24730+
24731+
datadog\_api\_client.v2.model.observability\_pipeline\_splunk\_hec\_metrics\_destination\_type module
24732+
-----------------------------------------------------------------------------------------------------
24733+
24734+
.. automodule:: datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination_type
24735+
:members:
24736+
:show-inheritance:
24737+
2471724738
datadog\_api\_client.v2.model.observability\_pipeline\_splunk\_hec\_source module
2471824739
---------------------------------------------------------------------------------
2471924740

src/datadog_api_client/v1/api/monitors_api.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -425,10 +425,6 @@ def create_monitor(
425425
* ``operator`` : <, <=, >, >=, ==, or !=
426426
* ``#`` : an integer or decimal number used to set the threshold
427427
428-
To use a dynamic threshold on a metric monitor with a formula query, replace ``#`` with the ``threshold`` keyword
429-
(for example, ``... > threshold`` ) and provide the threshold as a query via ``critical_query`` on ``options.thresholds``.
430-
This feature is in preview.
431-
432428
If you are using the ``_change_`` or ``_pct_change_`` time aggregator, instead use ``change_aggr(time_aggr(time_window),
433429
timeshift):space_aggr:metric{tags} [by {key}] operator #`` with:
434430

src/datadog_api_client/v1/model/monitor_thresholds.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ class MonitorThresholds(ModelNormal):
1919
def openapi_types(_):
2020
return {
2121
"critical": (float,),
22-
"critical_query": (str,),
2322
"critical_recovery": (float, none_type),
24-
"critical_recovery_query": (str,),
2523
"ok": (float, none_type),
2624
"unknown": (float, none_type),
2725
"warning": (float, none_type),
@@ -30,9 +28,7 @@ def openapi_types(_):
3028

3129
attribute_map = {
3230
"critical": "critical",
33-
"critical_query": "critical_query",
3431
"critical_recovery": "critical_recovery",
35-
"critical_recovery_query": "critical_recovery_query",
3632
"ok": "ok",
3733
"unknown": "unknown",
3834
"warning": "warning",
@@ -42,9 +38,7 @@ def openapi_types(_):
4238
def __init__(
4339
self_,
4440
critical: Union[float, UnsetType] = unset,
45-
critical_query: Union[str, UnsetType] = unset,
4641
critical_recovery: Union[float, none_type, UnsetType] = unset,
47-
critical_recovery_query: Union[str, UnsetType] = unset,
4842
ok: Union[float, none_type, UnsetType] = unset,
4943
unknown: Union[float, none_type, UnsetType] = unset,
5044
warning: Union[float, none_type, UnsetType] = unset,
@@ -57,15 +51,9 @@ def __init__(
5751
:param critical: The monitor ``CRITICAL`` threshold.
5852
:type critical: float, optional
5953
60-
:param critical_query: Query evaluated as a dynamic ``CRITICAL`` threshold. Only supported on metric monitors with a formula query and options['variables']. Cannot be combined with static thresholds. This field is in preview.
61-
:type critical_query: str, optional
62-
6354
:param critical_recovery: The monitor ``CRITICAL`` recovery threshold.
6455
:type critical_recovery: float, none_type, optional
6556
66-
:param critical_recovery_query: Query evaluated as a dynamic ``CRITICAL`` recovery threshold. Only supported on metric monitors with a formula query and options['variables']. Cannot be combined with static thresholds. This field is in preview.
67-
:type critical_recovery_query: str, optional
68-
6957
:param ok: The monitor ``OK`` threshold.
7058
:type ok: float, none_type, optional
7159
@@ -80,12 +68,8 @@ def __init__(
8068
"""
8169
if critical is not unset:
8270
kwargs["critical"] = critical
83-
if critical_query is not unset:
84-
kwargs["critical_query"] = critical_query
8571
if critical_recovery is not unset:
8672
kwargs["critical_recovery"] = critical_recovery
87-
if critical_recovery_query is not unset:
88-
kwargs["critical_recovery_query"] = critical_recovery_query
8973
if ok is not unset:
9074
kwargs["ok"] = ok
9175
if unknown is not unset:

src/datadog_api_client/v2/model/observability_pipeline_config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@
9797
from datadog_api_client.v2.model.observability_pipeline_datadog_metrics_destination import (
9898
ObservabilityPipelineDatadogMetricsDestination,
9999
)
100+
from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination import (
101+
ObservabilityPipelineSplunkHecMetricsDestination,
102+
)
100103
from datadog_api_client.v2.model.observability_pipeline_datadog_agent_source import (
101104
ObservabilityPipelineDatadogAgentSource,
102105
)
@@ -200,6 +203,7 @@ def __init__(
200203
ObservabilityPipelineSyslogNgDestination,
201204
ObservabilityPipelineDatabricksZerobusDestination,
202205
ObservabilityPipelineDatadogMetricsDestination,
206+
ObservabilityPipelineSplunkHecMetricsDestination,
203207
]
204208
],
205209
sources: List[

src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,12 @@ def __init__(self, **kwargs):
226226
227227
:param unity_catalog_endpoint_key: Name of the environment variable or the secret identifier that references your Databricks workspace URL, which is used to communicate with the Unity Catalog API.
228228
:type unity_catalog_endpoint_key: str, optional
229+
230+
:param default_namespace: Optional default namespace for metrics sent to Splunk HEC.
231+
:type default_namespace: str, optional
232+
233+
:param source: The Splunk source field value for metric events.
234+
:type source: str, optional
229235
"""
230236
super().__init__(kwargs)
231237

@@ -309,6 +315,9 @@ def _composed_schemas(_):
309315
from datadog_api_client.v2.model.observability_pipeline_datadog_metrics_destination import (
310316
ObservabilityPipelineDatadogMetricsDestination,
311317
)
318+
from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination import (
319+
ObservabilityPipelineSplunkHecMetricsDestination,
320+
)
312321

313322
return {
314323
"oneOf": [
@@ -337,5 +346,6 @@ def _composed_schemas(_):
337346
ObservabilityPipelineSyslogNgDestination,
338347
ObservabilityPipelineDatabricksZerobusDestination,
339348
ObservabilityPipelineDatadogMetricsDestination,
349+
ObservabilityPipelineSplunkHecMetricsDestination,
340350
],
341351
}

0 commit comments

Comments
 (0)