Skip to content

Commit f7c825c

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Deprecate options from logs aggregate API public spec (#2306)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 2ade699 commit f7c825c

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
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:48.185211",
8-
"spec_repo_commit": "3f3e8eaf"
7+
"regenerated": "2025-03-28 19:43:11.098502",
8+
"spec_repo_commit": "1d2132af"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-28 15:07:48.208726",
13-
"spec_repo_commit": "3f3e8eaf"
12+
"regenerated": "2025-03-28 19:43:11.121309",
13+
"spec_repo_commit": "1d2132af"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 2 deletions
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.

lib/datadog_api_client/v2/models/logs_aggregate_request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class LogsAggregateRequest
3131
attr_accessor :group_by
3232

3333
# Global query options that are used during the query.
34-
# Note: you should supply either timezone or time offset, but not both. Otherwise, the query will fail.
34+
# Note: These fields are currently deprecated and do not affect the query results.
3535
attr_accessor :options
3636

3737
# Paging settings

lib/datadog_api_client/v2/models/logs_list_request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class LogsListRequest
2525
attr_accessor :filter
2626

2727
# Global query options that are used during the query.
28-
# Note: you should supply either timezone or time offset, but not both. Otherwise, the query will fail.
28+
# Note: These fields are currently deprecated and do not affect the query results.
2929
attr_accessor :options
3030

3131
# Paging attributes for listing logs.

lib/datadog_api_client/v2/models/logs_query_options.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818

1919
module DatadogAPIClient::V2
2020
# Global query options that are used during the query.
21-
# Note: you should supply either timezone or time offset, but not both. Otherwise, the query will fail.
21+
# Note: These fields are currently deprecated and do not affect the query results.
22+
#
23+
# @deprecated This model is deprecated.
2224
class LogsQueryOptions
2325
include BaseGenericModel
2426

@@ -52,6 +54,7 @@ def self.openapi_types
5254
# @param attributes [Hash] Model attributes in the form of hash
5355
# @!visibility private
5456
def initialize(attributes = {})
57+
warn "[DEPRECATION] `LogsQueryOptions` is deprecated."
5558
if (!attributes.is_a?(Hash))
5659
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsQueryOptions` initialize method"
5760
end

0 commit comments

Comments
 (0)