Skip to content

Commit 8e430dd

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1b234ae of spec repo
1 parent 587c24b commit 8e430dd

16 files changed

+270
-43
lines changed

.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`.
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
// Validate an observability pipeline with amazon S3 source compression returns "OK" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.ObservabilityPipelinesApi;
6+
import com.datadog.api.client.v2.model.ObservabilityPipelineAmazonS3Source;
7+
import com.datadog.api.client.v2.model.ObservabilityPipelineAmazonS3SourceCompression;
8+
import com.datadog.api.client.v2.model.ObservabilityPipelineAmazonS3SourceType;
9+
import com.datadog.api.client.v2.model.ObservabilityPipelineConfig;
10+
import com.datadog.api.client.v2.model.ObservabilityPipelineConfigDestinationItem;
11+
import com.datadog.api.client.v2.model.ObservabilityPipelineConfigProcessorGroup;
12+
import com.datadog.api.client.v2.model.ObservabilityPipelineConfigProcessorItem;
13+
import com.datadog.api.client.v2.model.ObservabilityPipelineConfigSourceItem;
14+
import com.datadog.api.client.v2.model.ObservabilityPipelineDataAttributes;
15+
import com.datadog.api.client.v2.model.ObservabilityPipelineDatadogLogsDestination;
16+
import com.datadog.api.client.v2.model.ObservabilityPipelineDatadogLogsDestinationType;
17+
import com.datadog.api.client.v2.model.ObservabilityPipelineFilterProcessor;
18+
import com.datadog.api.client.v2.model.ObservabilityPipelineFilterProcessorType;
19+
import com.datadog.api.client.v2.model.ObservabilityPipelineSpec;
20+
import com.datadog.api.client.v2.model.ObservabilityPipelineSpecData;
21+
import com.datadog.api.client.v2.model.ValidationResponse;
22+
import java.util.Collections;
23+
24+
public class Example {
25+
public static void main(String[] args) {
26+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
27+
ObservabilityPipelinesApi apiInstance = new ObservabilityPipelinesApi(defaultClient);
28+
29+
ObservabilityPipelineSpec body =
30+
new ObservabilityPipelineSpec()
31+
.data(
32+
new ObservabilityPipelineSpecData()
33+
.attributes(
34+
new ObservabilityPipelineDataAttributes()
35+
.config(
36+
new ObservabilityPipelineConfig()
37+
.destinations(
38+
Collections.singletonList(
39+
new ObservabilityPipelineConfigDestinationItem(
40+
new ObservabilityPipelineDatadogLogsDestination()
41+
.id("datadog-logs-destination")
42+
.inputs(
43+
Collections.singletonList(
44+
"my-processor-group"))
45+
.type(
46+
ObservabilityPipelineDatadogLogsDestinationType
47+
.DATADOG_LOGS))))
48+
.processorGroups(
49+
Collections.singletonList(
50+
new ObservabilityPipelineConfigProcessorGroup()
51+
.enabled(true)
52+
.id("my-processor-group")
53+
.include("service:my-service")
54+
.inputs(
55+
Collections.singletonList("amazon-s3-source"))
56+
.processors(
57+
Collections.singletonList(
58+
new ObservabilityPipelineConfigProcessorItem(
59+
new ObservabilityPipelineFilterProcessor()
60+
.enabled(true)
61+
.id("filter-processor")
62+
.include("service:my-service")
63+
.type(
64+
ObservabilityPipelineFilterProcessorType
65+
.FILTER))))))
66+
.sources(
67+
Collections.singletonList(
68+
new ObservabilityPipelineConfigSourceItem(
69+
new ObservabilityPipelineAmazonS3Source()
70+
.id("amazon-s3-source")
71+
.type(
72+
ObservabilityPipelineAmazonS3SourceType
73+
.AMAZON_S3)
74+
.region("us-east-1")
75+
.compression(
76+
ObservabilityPipelineAmazonS3SourceCompression
77+
.GZIP)))))
78+
.name("Pipeline with S3 Source Compression"))
79+
.type("pipelines"));
80+
81+
try {
82+
ValidationResponse result = apiInstance.validatePipeline(body);
83+
System.out.println(result);
84+
} catch (ApiException e) {
85+
System.err.println("Exception when calling ObservabilityPipelinesApi#validatePipeline");
86+
System.err.println("Status code: " + e.getCode());
87+
System.err.println("Reason: " + e.getResponseBody());
88+
System.err.println("Response headers: " + e.getResponseHeaders());
89+
e.printStackTrace();
90+
}
91+
}
92+
}

src/main/java/com/datadog/api/client/v1/model/ProductAnalyticsAudienceAccountSubquery.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public ProductAnalyticsAudienceAccountSubquery name(String name) {
3737
}
3838

3939
/**
40-
* The name of the account subquery.
40+
* Getname
4141
*
4242
* @return name
4343
*/
@@ -58,7 +58,7 @@ public ProductAnalyticsAudienceAccountSubquery query(String query) {
5858
}
5959

6060
/**
61-
* The query string for the account subquery.
61+
* Getquery
6262
*
6363
* @return query
6464
*/

src/main/java/com/datadog/api/client/v1/model/ProductAnalyticsAudienceFilters.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public ProductAnalyticsAudienceFilters filterCondition(String filterCondition) {
8282
}
8383

8484
/**
85-
* An optional filter condition applied to the audience subquery.
85+
* GetfilterCondition
8686
*
8787
* @return filterCondition
8888
*/

src/main/java/com/datadog/api/client/v1/model/ProductAnalyticsAudienceOccurrenceFilter.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import java.util.Map;
1717
import java.util.Objects;
1818

19-
/** Filter applied to occurrence counts when building a Product Analytics audience. */
19+
/** */
2020
@JsonPropertyOrder({
2121
ProductAnalyticsAudienceOccurrenceFilter.JSON_PROPERTY_OPERATOR,
2222
ProductAnalyticsAudienceOccurrenceFilter.JSON_PROPERTY_VALUE
@@ -37,8 +37,7 @@ public ProductAnalyticsAudienceOccurrenceFilter operator(String operator) {
3737
}
3838

3939
/**
40-
* The comparison operator used for the occurrence filter (for example: <code>gt</code>, <code>lt
41-
* </code>, <code>eq</code>).
40+
* Getoperator
4241
*
4342
* @return operator
4443
*/
@@ -59,7 +58,7 @@ public ProductAnalyticsAudienceOccurrenceFilter value(String value) {
5958
}
6059

6160
/**
62-
* The threshold value to compare occurrence counts against.
61+
* Getvalue
6362
*
6463
* @return value
6564
*/

src/main/java/com/datadog/api/client/v1/model/ProductAnalyticsAudienceSegmentSubquery.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public ProductAnalyticsAudienceSegmentSubquery name(String name) {
3737
}
3838

3939
/**
40-
* The name of the segment subquery.
40+
* Getname
4141
*
4242
* @return name
4343
*/
@@ -58,7 +58,7 @@ public ProductAnalyticsAudienceSegmentSubquery segmentId(String segmentId) {
5858
}
5959

6060
/**
61-
* The unique identifier of the segment.
61+
* GetsegmentId
6262
*
6363
* @return segmentId
6464
*/

0 commit comments

Comments
 (0)