Skip to content

Commit eb87030

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1b234ae of spec repo
1 parent 4d74d56 commit eb87030

18 files changed

Lines changed: 193 additions & 67 deletions

File tree

.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"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "Observability Pipelines/Validate an observability pipeline with amazon S3 source compression returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "558c65f8ee8c961fc37ffd1c9d896964",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 532,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 583,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"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\":[{\"compression\":\"gzip\",\"id\":\"amazon-s3-source\",\"region\":\"us-east-1\",\"type\":\"amazon_s3\"}]},\"name\":\"Pipeline with S3 Source Compression\"},\"type\":\"pipelines\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/obs-pipelines/pipelines/validate"
39+
},
40+
"response": {
41+
"bodySize": 14,
42+
"content": {
43+
"mimeType": "application/vnd.api+json",
44+
"size": 14,
45+
"text": "{\"errors\":[]}\n"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/vnd.api+json"
52+
}
53+
],
54+
"headersSize": 370,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2026-04-08T12:44:25.066Z",
61+
"time": 389
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/**
2+
* Validate an observability pipeline with amazon S3 source compression returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.ObservabilityPipelinesApi(configuration);
9+
10+
const params: v2.ObservabilityPipelinesApiValidatePipelineRequest = {
11+
body: {
12+
data: {
13+
attributes: {
14+
config: {
15+
destinations: [
16+
{
17+
id: "datadog-logs-destination",
18+
inputs: ["my-processor-group"],
19+
type: "datadog_logs",
20+
},
21+
],
22+
processorGroups: [
23+
{
24+
enabled: true,
25+
id: "my-processor-group",
26+
include: "service:my-service",
27+
inputs: ["amazon-s3-source"],
28+
processors: [
29+
{
30+
enabled: true,
31+
id: "filter-processor",
32+
include: "service:my-service",
33+
type: "filter",
34+
},
35+
],
36+
},
37+
],
38+
sources: [
39+
{
40+
id: "amazon-s3-source",
41+
type: "amazon_s3",
42+
region: "us-east-1",
43+
compression: "gzip",
44+
},
45+
],
46+
},
47+
name: "Pipeline with S3 Source Compression",
48+
},
49+
type: "pipelines",
50+
},
51+
},
52+
};
53+
54+
apiInstance
55+
.validatePipeline(params)
56+
.then((data: v2.ValidationResponse) => {
57+
console.log(
58+
"API called successfully. Returned data: " + JSON.stringify(data)
59+
);
60+
})
61+
.catch((error: any) => console.error(error));

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

packages/datadog-api-client-v1/models/ProductAnalyticsAudienceAccountSubquery.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1010
* Product Analytics audience account subquery.
1111
*/
1212
export class ProductAnalyticsAudienceAccountSubquery {
13-
/**
14-
* The name of the account subquery.
15-
*/
1613
"name"?: string;
17-
/**
18-
* The query string for the account subquery.
19-
*/
2014
"query"?: string;
2115

2216
/**

packages/datadog-api-client-v1/models/ProductAnalyticsAudienceFilters.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1414
*/
1515
export class ProductAnalyticsAudienceFilters {
1616
"accounts"?: Array<ProductAnalyticsAudienceAccountSubquery>;
17-
/**
18-
* An optional filter condition applied to the audience subquery.
19-
*/
2017
"filterCondition"?: string;
2118
"segments"?: Array<ProductAnalyticsAudienceSegmentSubquery>;
2219
"users"?: Array<ProductAnalyticsAudienceUserSubquery>;

0 commit comments

Comments
 (0)