Skip to content

Commit 08117fb

Browse files
dakronepquentin
andauthored
Add the index mode to the output of get-data-stream API. (#3926)
* Add the index mode to the output of get-data-stream API. Relates to elastic/elasticsearch#122486 * Run make contrib --------- Co-authored-by: Quentin Pradet <[email protected]>
1 parent 3a49d22 commit 08117fb

File tree

6 files changed

+152
-10
lines changed

6 files changed

+152
-10
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema-serverless.json

Lines changed: 51 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 51 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/indices/_types/DataStream.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ enum ManagedBy {
3636
unmanaged = 'Unmanaged'
3737
}
3838

39+
// Available index modes (for the `index.mode` setting) See the `IndexMode` class in Elasticsearch for the options.
40+
export enum IndexMode {
41+
standard,
42+
time_series,
43+
logsdb,
44+
lookup
45+
}
46+
3947
export class FailureStore {
4048
enabled: boolean
4149
indices: DataStreamIndex[]
@@ -124,6 +132,10 @@ export class DataStream {
124132
* Information about the `@timestamp` field in the data stream.
125133
*/
126134
timestamp_field: DataStreamTimestampField
135+
/**
136+
* The index mode for the data stream that will be used for newly created backing indices.
137+
*/
138+
index_mode?: IndexMode
127139
}
128140

129141
export class DataStreamTimestampField {
@@ -154,6 +166,10 @@ export class DataStreamIndex {
154166
* Indicates if ILM should take precedence over DSL in case both are configured to manage this index.
155167
*/
156168
prefer_ilm?: boolean
169+
/**
170+
* The index mode of this backing index of the data stream.
171+
*/
172+
index_mode?: IndexMode
157173
}
158174

159175
export class DataStreamVisibility {

0 commit comments

Comments
 (0)