Skip to content

Commit da4fd39

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b4bf4cf of spec repo
1 parent 49f4b02 commit da4fd39

16 files changed

Lines changed: 755 additions & 7 deletions

‎.generator/schemas/v2/openapi.yaml‎

Lines changed: 166 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74933,6 +74933,7 @@ components:
7493374933
- $ref: "#/components/schemas/ObservabilityPipelineDatabricksZerobusDestination"
7493474934
- $ref: "#/components/schemas/ObservabilityPipelineDatadogMetricsDestination"
7493574935
- $ref: "#/components/schemas/ObservabilityPipelineOpentelemetryMetricsDestination"
74936+
- $ref: "#/components/schemas/ObservabilityPipelinePrometheusRemoteWriteDestination"
7493674937
- $ref: "#/components/schemas/ObservabilityPipelineSplunkHecMetricsDestination"
7493774938
ObservabilityPipelineConfigPipelineType:
7493874939
default: logs
@@ -75032,6 +75033,7 @@ components:
7503275033
- $ref: "#/components/schemas/ObservabilityPipelineSyslogNgSource"
7503375034
- $ref: "#/components/schemas/ObservabilityPipelineWebsocketSource"
7503475035
- $ref: "#/components/schemas/ObservabilityPipelineOpentelemetrySource"
75036+
- $ref: "#/components/schemas/ObservabilityPipelinePrometheusRemoteWriteSource"
7503575037
ObservabilityPipelineCrowdStrikeNextGenSiemDestination:
7503675038
description: |-
7503775039
The `crowdstrike_next_gen_siem` destination forwards logs to CrowdStrike Next Gen SIEM.
@@ -77927,6 +77929,168 @@ components:
7792777929
type: string
7792877930
x-enum-varnames:
7792977931
- PARSE_XML
77932+
ObservabilityPipelinePrometheusRemoteWriteDestination:
77933+
description: |-
77934+
The `prometheus_remote_write` destination forwards metrics to an endpoint that supports the Prometheus Remote Write protocol.
77935+
77936+
**Supported pipeline types:** metrics
77937+
properties:
77938+
auth_strategy:
77939+
$ref: "#/components/schemas/ObservabilityPipelinePrometheusRemoteWriteDestinationAuthStrategy"
77940+
buffer:
77941+
$ref: "#/components/schemas/ObservabilityPipelineBufferOptions"
77942+
default_namespace:
77943+
description: The default namespace to add as a prefix to metric names that do not already have one.
77944+
example: datadog
77945+
type: string
77946+
endpoint_url_key:
77947+
description: |-
77948+
Name of the environment variable or secret that holds the Prometheus Remote Write endpoint URL.
77949+
Defaults to `DESTINATION_PROMETHEUS_REMOTE_WRITE_ENDPOINT_URL` (prefixed with `DD_OP_` at runtime).
77950+
example: PROMETHEUS_REMOTE_WRITE_ENDPOINT_URL
77951+
type: string
77952+
id:
77953+
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).
77954+
example: prometheus-remote-write-destination
77955+
type: string
77956+
inputs:
77957+
description: A list of component IDs whose output is used as the `input` for this component.
77958+
example: ["metrics-filter-processor"]
77959+
items:
77960+
description: The ID of a component whose output is used as input for this destination.
77961+
type: string
77962+
type: array
77963+
password_key:
77964+
description: Name of the environment variable or secret that holds the password (used when `auth_strategy` is `basic`).
77965+
example: PROMETHEUS_REMOTE_WRITE_PASSWORD
77966+
type: string
77967+
tenant_id:
77968+
description: The tenant ID to include with outgoing requests. Used by multi-tenant Prometheus Remote Write receivers.
77969+
example: my-tenant
77970+
type: string
77971+
tls:
77972+
$ref: "#/components/schemas/ObservabilityPipelineClientTls"
77973+
token_key:
77974+
description: Name of the environment variable or secret that holds the bearer token (used when `auth_strategy` is `bearer`).
77975+
example: PROMETHEUS_REMOTE_WRITE_TOKEN
77976+
type: string
77977+
type:
77978+
$ref: "#/components/schemas/ObservabilityPipelinePrometheusRemoteWriteDestinationType"
77979+
username_key:
77980+
description: Name of the environment variable or secret that holds the username (used when `auth_strategy` is `basic`).
77981+
example: PROMETHEUS_REMOTE_WRITE_USERNAME
77982+
type: string
77983+
required:
77984+
- id
77985+
- type
77986+
- inputs
77987+
type: object
77988+
x-pipeline-types: [metrics]
77989+
ObservabilityPipelinePrometheusRemoteWriteDestinationAuthStrategy:
77990+
description: The authentication strategy to use for outgoing Prometheus Remote Write requests.
77991+
enum:
77992+
- none
77993+
- basic
77994+
- bearer
77995+
example: basic
77996+
type: string
77997+
x-enum-varnames:
77998+
- NONE
77999+
- BASIC
78000+
- BEARER
78001+
ObservabilityPipelinePrometheusRemoteWriteDestinationType:
78002+
default: prometheus_remote_write
78003+
description: The destination type. The value should always be `prometheus_remote_write`.
78004+
enum:
78005+
- prometheus_remote_write
78006+
example: prometheus_remote_write
78007+
type: string
78008+
x-enum-varnames:
78009+
- PROMETHEUS_REMOTE_WRITE
78010+
ObservabilityPipelinePrometheusRemoteWriteSource:
78011+
description: |-
78012+
The `prometheus_remote_write` source ingests metrics pushed over the Prometheus Remote Write protocol.
78013+
78014+
**Supported pipeline types:** metrics
78015+
properties:
78016+
address_key:
78017+
description: Name of the environment variable or secret that holds the listen address for the Prometheus Remote Write endpoint.
78018+
example: PROMETHEUS_REMOTE_WRITE_ADDRESS
78019+
type: string
78020+
auth_strategy:
78021+
$ref: "#/components/schemas/ObservabilityPipelinePrometheusRemoteWriteSourceAuthStrategy"
78022+
id:
78023+
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).
78024+
example: prometheus-remote-write-source
78025+
type: string
78026+
password_key:
78027+
description: Name of the environment variable or secret that holds the password (used when `auth_strategy` is `plain`).
78028+
example: PROMETHEUS_REMOTE_WRITE_PASSWORD
78029+
type: string
78030+
path:
78031+
description: The HTTP path on which the source listens for incoming Prometheus Remote Write requests.
78032+
example: "/api/v1/write"
78033+
type: string
78034+
tls:
78035+
$ref: "#/components/schemas/ObservabilityPipelineMtlsServerTls"
78036+
type:
78037+
$ref: "#/components/schemas/ObservabilityPipelinePrometheusRemoteWriteSourceType"
78038+
username_key:
78039+
description: Name of the environment variable or secret that holds the username (used when `auth_strategy` is `plain`).
78040+
example: PROMETHEUS_REMOTE_WRITE_USERNAME
78041+
type: string
78042+
valid_tokens:
78043+
description: |-
78044+
A list of tokens that are accepted for authenticating incoming requests. When set,
78045+
the source rejects any request whose token does not match an enabled entry in this list.
78046+
items:
78047+
$ref: "#/components/schemas/ObservabilityPipelinePrometheusRemoteWriteSourceValidToken"
78048+
type: array
78049+
required:
78050+
- id
78051+
- type
78052+
- auth_strategy
78053+
- path
78054+
type: object
78055+
x-pipeline-types: [metrics]
78056+
ObservabilityPipelinePrometheusRemoteWriteSourceAuthStrategy:
78057+
description: HTTP authentication method.
78058+
enum:
78059+
- none
78060+
- plain
78061+
example: plain
78062+
type: string
78063+
x-enum-varnames:
78064+
- NONE
78065+
- PLAIN
78066+
ObservabilityPipelinePrometheusRemoteWriteSourceType:
78067+
default: prometheus_remote_write
78068+
description: The source type. The value should always be `prometheus_remote_write`.
78069+
enum: [prometheus_remote_write]
78070+
example: prometheus_remote_write
78071+
type: string
78072+
x-enum-varnames:
78073+
- PROMETHEUS_REMOTE_WRITE
78074+
ObservabilityPipelinePrometheusRemoteWriteSourceValidToken:
78075+
description: An accepted token used to authenticate incoming Prometheus Remote Write requests.
78076+
properties:
78077+
enabled:
78078+
default: true
78079+
description: |-
78080+
Indicates whether this token is currently accepted. Disabled tokens are rejected without
78081+
being removed from the configuration.
78082+
example: true
78083+
type: boolean
78084+
path_to_token:
78085+
$ref: "#/components/schemas/ObservabilityPipelineHttpServerSourceValidTokenPathToToken"
78086+
token_key:
78087+
description: Name of the environment variable or secret that holds the expected token value.
78088+
example: PROMETHEUS_REMOTE_WRITE_TOKEN
78089+
pattern: "^[A-Za-z0-9_]+$"
78090+
type: string
78091+
required:
78092+
- token_key
78093+
type: object
7793078094
ObservabilityPipelineQuotaProcessor:
7793178095
description: |-
7793278096
The `quota` processor measures logging traffic for logs that match a specified filter. When the configured daily quota is met, the processor can drop or alert.
@@ -95538,7 +95702,7 @@ components:
9553895702
example: true
9553995703
type: boolean
9554095704
trace_sample_rate:
95541-
description: The sample rate for the APM cross-product retention filter, between 0 and 100.
95705+
description: The sample rate for the APM cross-product retention filter, between 0 and 100. Values returned by the API are rounded to two decimal places.
9554295706
example: 25.0
9554395707
format: double
9554495708
maximum: 100
@@ -96189,7 +96353,7 @@ components:
9618996353
$ref: "#/components/schemas/RumRetentionFilterData"
9619096354
type: object
9619196355
RumRetentionFilterSampleRate:
96192-
description: The sample rate for a RUM retention filter, between 0.1 and 100.
96356+
description: The sample rate for a RUM retention filter, between 0.1 and 100. Values are truncated to one decimal place.
9619396357
example: 50.5
9619496358
format: double
9619596359
maximum: 100

‎src/datadog_api_client/v2/model/observability_pipeline_config.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@
103103
from datadog_api_client.v2.model.observability_pipeline_opentelemetry_metrics_destination import (
104104
ObservabilityPipelineOpentelemetryMetricsDestination,
105105
)
106+
from datadog_api_client.v2.model.observability_pipeline_prometheus_remote_write_destination import (
107+
ObservabilityPipelinePrometheusRemoteWriteDestination,
108+
)
106109
from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination import (
107110
ObservabilityPipelineSplunkHecMetricsDestination,
108111
)
@@ -144,6 +147,9 @@
144147
from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source import (
145148
ObservabilityPipelineOpentelemetrySource,
146149
)
150+
from datadog_api_client.v2.model.observability_pipeline_prometheus_remote_write_source import (
151+
ObservabilityPipelinePrometheusRemoteWriteSource,
152+
)
147153

148154

149155
class ObservabilityPipelineConfig(ModelNormal):
@@ -212,6 +218,7 @@ def __init__(
212218
ObservabilityPipelineDatabricksZerobusDestination,
213219
ObservabilityPipelineDatadogMetricsDestination,
214220
ObservabilityPipelineOpentelemetryMetricsDestination,
221+
ObservabilityPipelinePrometheusRemoteWriteDestination,
215222
ObservabilityPipelineSplunkHecMetricsDestination,
216223
]
217224
],
@@ -236,6 +243,7 @@ def __init__(
236243
ObservabilityPipelineSyslogNgSource,
237244
ObservabilityPipelineWebsocketSource,
238245
ObservabilityPipelineOpentelemetrySource,
246+
ObservabilityPipelinePrometheusRemoteWriteSource,
239247
]
240248
],
241249
pipeline_type: Union[ObservabilityPipelineConfigPipelineType, UnsetType] = unset,

‎src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def __init__(self, **kwargs):
265265
:param http_client_uri_key: Environment variable name containing the URI of the OTLP HTTP endpoint to send metrics to.
266266
:type http_client_uri_key: str, optional
267267
268-
:param default_namespace: Optional default namespace for metrics sent to Splunk HEC.
268+
:param default_namespace: The default namespace to add as a prefix to metric names that do not already have one.
269269
:type default_namespace: str, optional
270270
271271
:param source: The Splunk source field value for metric events.
@@ -359,6 +359,9 @@ def _composed_schemas(_):
359359
from datadog_api_client.v2.model.observability_pipeline_opentelemetry_metrics_destination import (
360360
ObservabilityPipelineOpentelemetryMetricsDestination,
361361
)
362+
from datadog_api_client.v2.model.observability_pipeline_prometheus_remote_write_destination import (
363+
ObservabilityPipelinePrometheusRemoteWriteDestination,
364+
)
362365
from datadog_api_client.v2.model.observability_pipeline_splunk_hec_metrics_destination import (
363366
ObservabilityPipelineSplunkHecMetricsDestination,
364367
)
@@ -392,6 +395,7 @@ def _composed_schemas(_):
392395
ObservabilityPipelineDatabricksZerobusDestination,
393396
ObservabilityPipelineDatadogMetricsDestination,
394397
ObservabilityPipelineOpentelemetryMetricsDestination,
398+
ObservabilityPipelinePrometheusRemoteWriteDestination,
395399
ObservabilityPipelineSplunkHecMetricsDestination,
396400
],
397401
}

‎src/datadog_api_client/v2/model/observability_pipeline_config_source_item.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ def __init__(self, **kwargs):
114114
115115
:param http_address_key: Environment variable name containing the HTTP server address for receiving OTLP data. Must be a valid environment variable name (alphanumeric characters and underscores only).
116116
:type http_address_key: str, optional
117+
118+
:param path: The HTTP path on which the source listens for incoming Prometheus Remote Write requests.
119+
:type path: str
117120
"""
118121
super().__init__(kwargs)
119122

@@ -172,6 +175,9 @@ def _composed_schemas(_):
172175
from datadog_api_client.v2.model.observability_pipeline_opentelemetry_source import (
173176
ObservabilityPipelineOpentelemetrySource,
174177
)
178+
from datadog_api_client.v2.model.observability_pipeline_prometheus_remote_write_source import (
179+
ObservabilityPipelinePrometheusRemoteWriteSource,
180+
)
175181

176182
return {
177183
"oneOf": [
@@ -193,5 +199,6 @@ def _composed_schemas(_):
193199
ObservabilityPipelineSyslogNgSource,
194200
ObservabilityPipelineWebsocketSource,
195201
ObservabilityPipelineOpentelemetrySource,
202+
ObservabilityPipelinePrometheusRemoteWriteSource,
196203
],
197204
}

0 commit comments

Comments
 (0)