Skip to content

Commit 516da3a

Browse files
Auto-generated code for main (#1996)
1 parent 49eccfb commit 516da3a

File tree

4 files changed

+27
-1
lines changed

4 files changed

+27
-1
lines changed

docs/reference.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4016,6 +4016,8 @@ To target all data streams use `*` or `_all`.
40164016
** *`data_retention` (Optional, string | -1 | 0)*: If defined, every document added to this data stream will be stored at least for this time frame.
40174017
Any time after this duration the document could be deleted.
40184018
When empty, every document in this data stream will be stored indefinitely.
4019+
** *`downsampling` (Optional, { rounds })*: If defined, every backing index will execute the configured downsampling configuration after the backing
4020+
index is not the data stream write index anymore.
40194021
** *`expand_wildcards` (Optional, Enum("all" | "open" | "closed" | "hidden" | "none") | Enum("all" | "open" | "closed" | "hidden" | "none")[])*: Type of data stream that wildcard patterns can match.
40204022
Supports a list of values, such as `open,hidden`.
40214023
Valid values are: `all`, `hidden`, `open`, `closed`, `none`.

src/api/api/indices.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ export default class Indices {
12331233
async putDataLifecycle (this: That, params: T.IndicesPutDataLifecycleRequest | TB.IndicesPutDataLifecycleRequest, options?: TransportRequestOptions): Promise<T.IndicesPutDataLifecycleResponse>
12341234
async putDataLifecycle (this: That, params: T.IndicesPutDataLifecycleRequest | TB.IndicesPutDataLifecycleRequest, options?: TransportRequestOptions): Promise<any> {
12351235
const acceptedPath: string[] = ['name']
1236-
const acceptedBody: string[] = ['data_retention']
1236+
const acceptedBody: string[] = ['data_retention', 'downsampling']
12371237
const querystring: Record<string, any> = {}
12381238
// @ts-expect-error
12391239
const userBody: any = params?.body

src/api/types.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9519,6 +9519,11 @@ export interface IndicesDataStreamIndex {
95199519

95209520
export interface IndicesDataStreamLifecycle {
95219521
data_retention?: Duration
9522+
downsampling?: IndicesDataStreamLifecycleDownsampling
9523+
}
9524+
9525+
export interface IndicesDataStreamLifecycleDownsampling {
9526+
rounds: IndicesDownsamplingRound[]
95229527
}
95239528

95249529
export interface IndicesDataStreamLifecycleRolloverConditions {
@@ -9536,6 +9541,7 @@ export interface IndicesDataStreamLifecycleRolloverConditions {
95369541

95379542
export interface IndicesDataStreamLifecycleWithRollover {
95389543
data_retention?: Duration
9544+
downsampling?: IndicesDataStreamLifecycleDownsampling
95399545
rollover?: IndicesDataStreamLifecycleRolloverConditions
95409546
}
95419547

@@ -9551,6 +9557,11 @@ export interface IndicesDownsampleConfig {
95519557
fixed_interval: DurationLarge
95529558
}
95539559

9560+
export interface IndicesDownsamplingRound {
9561+
after: Duration
9562+
config: IndicesDownsampleConfig
9563+
}
9564+
95549565
export interface IndicesFielddataFrequencyFilter {
95559566
max: double
95569567
min: double
@@ -10537,6 +10548,7 @@ export interface IndicesPutDataLifecycleRequest extends RequestBase {
1053710548
master_timeout?: Duration
1053810549
timeout?: Duration
1053910550
data_retention?: Duration
10551+
downsampling?: IndicesDataStreamLifecycleDownsampling
1054010552
}
1054110553

1054210554
export type IndicesPutDataLifecycleResponse = AcknowledgedResponseBase

src/api/typesWithBodyKey.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9642,6 +9642,11 @@ export interface IndicesDataStreamIndex {
96429642

96439643
export interface IndicesDataStreamLifecycle {
96449644
data_retention?: Duration
9645+
downsampling?: IndicesDataStreamLifecycleDownsampling
9646+
}
9647+
9648+
export interface IndicesDataStreamLifecycleDownsampling {
9649+
rounds: IndicesDownsamplingRound[]
96459650
}
96469651

96479652
export interface IndicesDataStreamLifecycleRolloverConditions {
@@ -9659,6 +9664,7 @@ export interface IndicesDataStreamLifecycleRolloverConditions {
96599664

96609665
export interface IndicesDataStreamLifecycleWithRollover {
96619666
data_retention?: Duration
9667+
downsampling?: IndicesDataStreamLifecycleDownsampling
96629668
rollover?: IndicesDataStreamLifecycleRolloverConditions
96639669
}
96649670

@@ -9674,6 +9680,11 @@ export interface IndicesDownsampleConfig {
96749680
fixed_interval: DurationLarge
96759681
}
96769682

9683+
export interface IndicesDownsamplingRound {
9684+
after: Duration
9685+
config: IndicesDownsampleConfig
9686+
}
9687+
96779688
export interface IndicesFielddataFrequencyFilter {
96789689
max: double
96799690
min: double
@@ -10678,6 +10689,7 @@ export interface IndicesPutDataLifecycleRequest extends RequestBase {
1067810689
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
1067910690
body?: {
1068010691
data_retention?: Duration
10692+
downsampling?: IndicesDataStreamLifecycleDownsampling
1068110693
}
1068210694
}
1068310695

0 commit comments

Comments
 (0)