Skip to content

Commit 17b95de

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1b234ae of spec repo
1 parent a7734b5 commit 17b95de

17 files changed

Lines changed: 159 additions & 42 deletions

.generator/schemas/v1/openapi.yaml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2782,7 +2782,6 @@ components:
27822782
peer_tags:
27832783
description: Tags to query for a specific downstream entity (peer.service, peer.db_instance, peer.s3, peer.s3.bucket, etc.).
27842784
items:
2785-
description: "A tag identifying a specific downstream entity (for example: peer.service, peer.db_instance)."
27862785
example: "peer.service:my-service"
27872786
type: string
27882787
type: array
@@ -6648,7 +6647,6 @@ components:
66486647
sources:
66496648
additionalProperties:
66506649
items:
6651-
description: A fallback source attribute name.
66526650
type: string
66536651
type: array
66546652
description: Fallback sources used to populate value of field.
@@ -6697,7 +6695,6 @@ components:
66976695
description: Optional list of profiles to modify the schema.
66986696
example: ["security_control", "host"]
66996697
items:
6700-
description: A profile name that modifies the schema behavior.
67016698
type: string
67026699
type: array
67036700
schema_type:
@@ -7811,7 +7808,6 @@ components:
78117808
description: Columns to group results by.
78127809
example: ["col1", "col2"]
78137810
items:
7814-
description: A column name to group results by.
78157811
type: string
78167812
type: array
78177813
model_type_override:
@@ -7831,7 +7827,6 @@ components:
78317827
description: Optional grouping fields for aggregation.
78327828
example: ["entity_id"]
78337829
items:
7834-
description: A field name to group results by.
78357830
type: string
78367831
type: array
78377832
measure:
@@ -11166,10 +11161,8 @@ components:
1116611161
description: Product Analytics audience account subquery.
1116711162
properties:
1116811163
name:
11169-
description: The name of the account subquery.
1117011164
type: string
1117111165
query:
11172-
description: The query string for the account subquery.
1117311166
type: string
1117411167
type: object
1117511168
ProductAnalyticsAudienceFilters:
@@ -11180,7 +11173,6 @@ components:
1118011173
$ref: "#/components/schemas/ProductAnalyticsAudienceAccountSubquery"
1118111174
type: array
1118211175
filter_condition:
11183-
description: An optional filter condition applied to the audience subquery.
1118411176
type: string
1118511177
segments:
1118611178
items:
@@ -11192,33 +11184,26 @@ components:
1119211184
type: array
1119311185
type: object
1119411186
ProductAnalyticsAudienceOccurrenceFilter:
11195-
description: Filter applied to occurrence counts when building a Product Analytics audience.
1119611187
properties:
1119711188
operator:
11198-
description: "The comparison operator used for the occurrence filter (for example: `gt`, `lt`, `eq`)."
1119911189
type: string
1120011190
value:
11201-
description: The threshold value to compare occurrence counts against.
1120211191
type: string
1120311192
type: object
1120411193
ProductAnalyticsAudienceSegmentSubquery:
1120511194
description: Product Analytics audience segment subquery.
1120611195
properties:
1120711196
name:
11208-
description: The name of the segment subquery.
1120911197
type: string
1121011198
segment_id:
11211-
description: The unique identifier of the segment.
1121211199
type: string
1121311200
type: object
1121411201
ProductAnalyticsAudienceUserSubquery:
1121511202
description: Product Analytics audience user subquery.
1121611203
properties:
1121711204
name:
11218-
description: The name of the user subquery.
1121911205
type: string
1122011206
query:
11221-
description: The query string for the user subquery.
1122211207
type: string
1122311208
type: object
1122411209
QuerySortOrder:
@@ -11787,7 +11772,6 @@ components:
1178711772
- $ref: "#/components/schemas/SLOCountDefinitionWithBadEventsFormula"
1178811773
SLOCountDefinitionWithBadEventsFormula:
1178911774
additionalProperties: false
11790-
description: SLO count definition using a bad events formula alongside a good events formula.
1179111775
properties:
1179211776
bad_events_formula:
1179311777
$ref: "#/components/schemas/SLOFormula"
@@ -11814,7 +11798,6 @@ components:
1181411798
type: object
1181511799
SLOCountDefinitionWithTotalEventsFormula:
1181611800
additionalProperties: false
11817-
description: SLO count definition using a total events formula alongside a good events formula.
1181811801
properties:
1181911802
good_events_formula:
1182011803
$ref: "#/components/schemas/SLOFormula"
@@ -13021,7 +13004,6 @@ components:
1302113004
description: Fields to group by.
1302213005
example: ["source", "destination"]
1302313006
items:
13024-
description: A field name to group by.
1302513007
type: string
1302613008
type: array
1302713009
limit:
@@ -13644,7 +13626,6 @@ components:
1364413626
Always included in service level objective responses (but may be empty).
1364513627
example: ["env:prod", "app:core"]
1364613628
items:
13647-
description: A tag associated with the service level objective.
1364813629
type: string
1364913630
type: array
1365013631
created_at:
@@ -13668,7 +13649,6 @@ components:
1366813649
env_tags:
1366913650
description: Tags with the `env` tag key.
1367013651
items:
13671-
description: A tag with the `env` tag key.
1367213652
type: string
1367313653
type: array
1367413654
groups:
@@ -13713,7 +13693,6 @@ components:
1371313693
service_tags:
1371413694
description: Tags with the `service` tag key.
1371513695
items:
13716-
description: A tag with the `service` tag key.
1371713696
type: string
1371813697
type: array
1371913698
slo_type:
@@ -13723,7 +13702,6 @@ components:
1372313702
team_tags:
1372413703
description: Tags with the `team` tag key.
1372513704
items:
13726-
description: A tag with the `team` tag key.
1372713705
type: string
1372813706
type: array
1372913707
thresholds:
@@ -14734,7 +14712,6 @@ components:
1473414712
description: The tag values.
1473514713
example: ["env"]
1473614714
items:
14737-
description: A tag value string.
1473814715
minLength: 1
1473914716
type: string
1474014717
type: array
@@ -18012,7 +17989,6 @@ components:
1801217989
blockedRequestPatterns:
1801317990
description: Array of URL patterns to block.
1801417991
items:
18015-
description: A URL pattern to block during the Synthetic test.
1801617992
type: string
1801717993
type: array
1801817994
checkCertificateRevocation:

.generator/schemas/v2/openapi.yaml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25792,7 +25792,6 @@ components:
2579225792
description: Tags associated with the feature flag.
2579325793
example: []
2579425794
items:
25795-
description: A tag associated with the feature flag.
2579625795
type: string
2579725796
type: array
2579825797
updated_at:
@@ -25846,7 +25845,6 @@ components:
2584625845
- "test-feature-flag"
2584725846
- "env-search-term"
2584825847
items:
25849-
description: A query string targeting the environment.
2585025848
type: string
2585125849
type: array
2585225850
is_production:
@@ -43008,12 +43006,14 @@ components:
4300843006
ObservabilityPipelineAmazonS3Source:
4300943007
description: |-
4301043008
The `amazon_s3` source ingests logs from an Amazon S3 bucket.
43011-
It supports AWS authentication and TLS encryption.
43009+
It supports AWS authentication, TLS encryption, and configurable compression.
4301243010

4301343011
**Supported pipeline types:** logs
4301443012
properties:
4301543013
auth:
4301643014
$ref: "#/components/schemas/ObservabilityPipelineAwsAuth"
43015+
compression:
43016+
$ref: "#/components/schemas/ObservabilityPipelineAmazonS3SourceCompression"
4301743017
id:
4301843018
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).
4301943019
example: aws-s3-source
@@ -43036,6 +43036,20 @@ components:
4303643036
- region
4303743037
type: object
4303843038
x-pipeline-types: [logs]
43039+
ObservabilityPipelineAmazonS3SourceCompression:
43040+
description: Compression format for objects retrieved from the S3 bucket. Use `auto` to detect compression from the object's Content-Encoding or file extension.
43041+
enum:
43042+
- auto
43043+
- none
43044+
- gzip
43045+
- zstd
43046+
example: gzip
43047+
type: string
43048+
x-enum-varnames:
43049+
- AUTO
43050+
- NONE
43051+
- GZIP
43052+
- ZSTD
4303943053
ObservabilityPipelineAmazonS3SourceType:
4304043054
default: amazon_s3
4304143055
description: The source type. Always `amazon_s3`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2026-04-08T12:44:25.060Z

cassettes/features/v2/observability_pipelines/Validate-an-observability-pipeline-with-amazon-S3-source-compression-returns-OK-response.yml

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Validate an observability pipeline with amazon S3 source compression returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new
5+
6+
body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({
7+
data: DatadogAPIClient::V2::ObservabilityPipelineSpecData.new({
8+
attributes: DatadogAPIClient::V2::ObservabilityPipelineDataAttributes.new({
9+
config: DatadogAPIClient::V2::ObservabilityPipelineConfig.new({
10+
destinations: [
11+
DatadogAPIClient::V2::ObservabilityPipelineDatadogLogsDestination.new({
12+
id: "datadog-logs-destination",
13+
inputs: [
14+
"my-processor-group",
15+
],
16+
type: DatadogAPIClient::V2::ObservabilityPipelineDatadogLogsDestinationType::DATADOG_LOGS,
17+
}),
18+
],
19+
processor_groups: [
20+
DatadogAPIClient::V2::ObservabilityPipelineConfigProcessorGroup.new({
21+
enabled: true,
22+
id: "my-processor-group",
23+
include: "service:my-service",
24+
inputs: [
25+
"amazon-s3-source",
26+
],
27+
processors: [
28+
DatadogAPIClient::V2::ObservabilityPipelineFilterProcessor.new({
29+
enabled: true,
30+
id: "filter-processor",
31+
include: "service:my-service",
32+
type: DatadogAPIClient::V2::ObservabilityPipelineFilterProcessorType::FILTER,
33+
}),
34+
],
35+
}),
36+
],
37+
sources: [
38+
DatadogAPIClient::V2::ObservabilityPipelineAmazonS3Source.new({
39+
id: "amazon-s3-source",
40+
type: DatadogAPIClient::V2::ObservabilityPipelineAmazonS3SourceType::AMAZON_S3,
41+
region: "us-east-1",
42+
compression: DatadogAPIClient::V2::ObservabilityPipelineAmazonS3SourceCompression::GZIP,
43+
}),
44+
],
45+
}),
46+
name: "Pipeline with S3 Source Compression",
47+
}),
48+
type: "pipelines",
49+
}),
50+
})
51+
p api_instance.validate_pipeline(body)

features/v2/observability_pipelines.feature

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,14 @@ Feature: Observability Pipelines
207207
Then the response status is 200 OK
208208
And the response "errors" has length 0
209209

210+
@team:DataDog/observability-pipelines
211+
Scenario: Validate an observability pipeline with amazon S3 source compression returns "OK" response
212+
Given new "ValidatePipeline" request
213+
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["my-processor-group"], "type": "datadog_logs"}], "processor_groups": [{"enabled": true, "id": "my-processor-group", "include": "service:my-service", "inputs": ["amazon-s3-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "service:my-service", "type": "filter"}]}], "sources": [{"id": "amazon-s3-source", "type": "amazon_s3", "region": "us-east-1", "compression": "gzip"}]}, "name": "Pipeline with S3 Source Compression"}, "type": "pipelines"}}
214+
When the request is sent
215+
Then the response status is 200 OK
216+
And the response "errors" has length 0
217+
210218
@team:DataDog/observability-pipelines
211219
Scenario: Validate an observability pipeline with destination secret key returns "OK" response
212220
Given new "ValidatePipeline" request

lib/datadog_api_client/inflector.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3758,6 +3758,7 @@ def overrides
37583758
"v2.observability_pipeline_amazon_s3_generic_encoding_parquet" => "ObservabilityPipelineAmazonS3GenericEncodingParquet",
37593759
"v2.observability_pipeline_amazon_s3_generic_encoding_parquet_type" => "ObservabilityPipelineAmazonS3GenericEncodingParquetType",
37603760
"v2.observability_pipeline_amazon_s3_source" => "ObservabilityPipelineAmazonS3Source",
3761+
"v2.observability_pipeline_amazon_s3_source_compression" => "ObservabilityPipelineAmazonS3SourceCompression",
37613762
"v2.observability_pipeline_amazon_s3_source_type" => "ObservabilityPipelineAmazonS3SourceType",
37623763
"v2.observability_pipeline_amazon_security_lake_destination" => "ObservabilityPipelineAmazonSecurityLakeDestination",
37633764
"v2.observability_pipeline_amazon_security_lake_destination_type" => "ObservabilityPipelineAmazonSecurityLakeDestinationType",

lib/datadog_api_client/v1/models/product_analytics_audience_account_subquery.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ module DatadogAPIClient::V1
2121
class ProductAnalyticsAudienceAccountSubquery
2222
include BaseGenericModel
2323

24-
# The name of the account subquery.
24+
#
2525
attr_accessor :name
2626

27-
# The query string for the account subquery.
27+
#
2828
attr_accessor :query
2929

3030
attr_accessor :additional_properties

lib/datadog_api_client/v1/models/product_analytics_audience_filters.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ProductAnalyticsAudienceFilters
2424
#
2525
attr_accessor :accounts
2626

27-
# An optional filter condition applied to the audience subquery.
27+
#
2828
attr_accessor :filter_condition
2929

3030
#

lib/datadog_api_client/v1/models/product_analytics_audience_occurrence_filter.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V1
20-
# Filter applied to occurrence counts when building a Product Analytics audience.
20+
#
2121
class ProductAnalyticsAudienceOccurrenceFilter
2222
include BaseGenericModel
2323

24-
# The comparison operator used for the occurrence filter (for example: `gt`, `lt`, `eq`).
24+
#
2525
attr_accessor :operator
2626

27-
# The threshold value to compare occurrence counts against.
27+
#
2828
attr_accessor :value
2929

3030
attr_accessor :additional_properties

0 commit comments

Comments
 (0)