Skip to content

Commit 66f6b61

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Deprecate options from logs aggregate API public spec (#2776)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 2429578 commit 66f6b61

File tree

5 files changed

+21
-12
lines changed

5 files changed

+21
-12
lines changed

.apigentools-info

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-03-28 15:07:41.004258",
8-
"spec_repo_commit": "3f3e8eaf"
7+
"regenerated": "2025-03-28 19:42:58.001817",
8+
"spec_repo_commit": "1d2132af"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-28 15:07:41.026638",
13-
"spec_repo_commit": "3f3e8eaf"
12+
"regenerated": "2025-03-28 19:42:58.026085",
13+
"spec_repo_commit": "1d2132af"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19109,10 +19109,10 @@ components:
1910919109
type: string
1911019110
type: object
1911119111
LogsQueryOptions:
19112+
deprecated: true
1911219113
description: 'Global query options that are used during the query.
1911319114

19114-
Note: you should supply either timezone or time offset, but not both. Otherwise,
19115-
the query will fail.'
19115+
Note: These fields are currently deprecated and do not affect the query results.'
1911619116
properties:
1911719117
timeOffset:
1911819118
description: The time offset (in seconds) to apply to the query.

src/main/java/com/datadog/api/client/v2/model/LogsAggregateRequest.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -140,18 +140,21 @@ public LogsAggregateRequest options(LogsQueryOptions options) {
140140
}
141141

142142
/**
143-
* Global query options that are used during the query. Note: you should supply either timezone or
144-
* time offset, but not both. Otherwise, the query will fail.
143+
* Global query options that are used during the query. Note: These fields are currently
144+
* deprecated and do not affect the query results.
145145
*
146146
* @return options
147+
* @deprecated
147148
*/
149+
@Deprecated
148150
@jakarta.annotation.Nullable
149151
@JsonProperty(JSON_PROPERTY_OPTIONS)
150152
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
151153
public LogsQueryOptions getOptions() {
152154
return options;
153155
}
154156

157+
@Deprecated
155158
public void setOptions(LogsQueryOptions options) {
156159
this.options = options;
157160
}

src/main/java/com/datadog/api/client/v2/model/LogsListRequest.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,21 @@ public LogsListRequest options(LogsQueryOptions options) {
6868
}
6969

7070
/**
71-
* Global query options that are used during the query. Note: you should supply either timezone or
72-
* time offset, but not both. Otherwise, the query will fail.
71+
* Global query options that are used during the query. Note: These fields are currently
72+
* deprecated and do not affect the query results.
7373
*
7474
* @return options
75+
* @deprecated
7576
*/
77+
@Deprecated
7678
@jakarta.annotation.Nullable
7779
@JsonProperty(JSON_PROPERTY_OPTIONS)
7880
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
7981
public LogsQueryOptions getOptions() {
8082
return options;
8183
}
8284

85+
@Deprecated
8386
public void setOptions(LogsQueryOptions options) {
8487
this.options = options;
8588
}

src/main/java/com/datadog/api/client/v2/model/LogsQueryOptions.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@
1717
import java.util.Objects;
1818

1919
/**
20-
* Global query options that are used during the query. Note: you should supply either timezone or
21-
* time offset, but not both. Otherwise, the query will fail.
20+
* Global query options that are used during the query. Note: These fields are currently deprecated
21+
* and do not affect the query results.
22+
*
23+
* @deprecated
2224
*/
25+
@Deprecated
2326
@JsonPropertyOrder({
2427
LogsQueryOptions.JSON_PROPERTY_TIME_OFFSET,
2528
LogsQueryOptions.JSON_PROPERTY_TIMEZONE

0 commit comments

Comments
 (0)