Skip to content

Commit cf9a464

Browse files
authored
Data stream lifecycle is GA (elastic#2244)
Rename the dlm reference to data stream lifecycle and mark them as stable.
1 parent 1271df5 commit cf9a464

23 files changed

+281
-282
lines changed

output/schema/schema.json

Lines changed: 180 additions & 180 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: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_json_spec/indices.delete_data_lifecycle.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"indices.delete_data_lifecycle": {
33
"documentation": {
4-
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/dlm-delete-lifecycle.html",
5-
"description": "Deletes the data lifecycle of the selected data streams."
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams-delete-lifecycle.html",
5+
"description": "Deletes the data stream lifecycle of the selected data streams."
66
},
7-
"stability": "experimental",
7+
"stability": "stable",
88
"visibility": "public",
99
"headers": {
1010
"accept": ["application/json"]
@@ -17,7 +17,7 @@
1717
"parts": {
1818
"name": {
1919
"type": "list",
20-
"description": "A comma-separated list of data streams of which the data lifecycle will be deleted; use `*` to get all data streams"
20+
"description": "A comma-separated list of data streams of which the data stream lifecycle will be deleted; use `*` to get all data streams"
2121
}
2222
}
2323
}

specification/_json_spec/indices.explain_data_lifecycle.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"indices.explain_data_lifecycle": {
33
"documentation": {
4-
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/dlm-explain-lifecycle.html",
5-
"description": "Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc."
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams-explain-lifecycle.html",
5+
"description": "Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc."
66
},
7-
"stability": "experimental",
7+
"stability": "stable",
88
"visibility": "public",
99
"headers": {
1010
"accept": ["application/json"]

specification/_json_spec/indices.get_data_lifecycle.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"indices.get_data_lifecycle": {
33
"documentation": {
4-
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/dlm-get-lifecycle.html",
5-
"description": "Returns the data lifecycle of the selected data streams."
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams-get-lifecycle.html",
5+
"description": "Returns the data stream lifecycle of the selected data streams."
66
},
7-
"stability": "experimental",
7+
"stability": "stable",
88
"visibility": "public",
99
"headers": {
1010
"accept": ["application/json"]

specification/_json_spec/indices.put_data_lifecycle.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"indices.put_data_lifecycle": {
33
"documentation": {
4-
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/dlm-put-lifecycle.html",
5-
"description": "Updates the data lifecycle of the selected data streams."
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams-put-lifecycle.html",
5+
"description": "Updates the data stream lifecycle of the selected data streams."
66
},
7-
"stability": "experimental",
7+
"stability": "stable",
88
"visibility": "public",
99
"headers": {
1010
"accept": ["application/json"]
@@ -40,8 +40,7 @@
4040
}
4141
},
4242
"body": {
43-
"description": "The data lifecycle configuration that consist of the data retention",
44-
"required": false
43+
"description": "The data lifecycle configuration that consist of the data retention"
4544
}
4645
}
4746
}

specification/cluster/_types/ComponentTemplate.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import { Dictionary } from '@spec_utils/Dictionary'
2323
import { IndexName, Metadata, Name, VersionNumber } from '@_types/common'
2424
import { TypeMapping } from '@_types/mapping/TypeMapping'
2525
import {
26-
DataLifecycle,
27-
DataLifecycleWithRollover
28-
} from '@indices/_types/DataLifecycle'
26+
DataStreamLifecycle,
27+
DataStreamLifecycleWithRollover
28+
} from '@indices/_types/DataStreamLifecycle'
2929

3030
export class ComponentTemplate {
3131
name: Name
@@ -47,8 +47,8 @@ export class ComponentTemplateSummary {
4747
mappings?: TypeMapping
4848
aliases?: Dictionary<string, AliasDefinition>
4949
/**
50-
* @availability stack since=8.8.0 stability=experimental
51-
* @availability serverless stability=experimental
50+
* @availability stack since=8.11.0 stability=stable
51+
* @availability serverless stability=stable
5252
*/
53-
lifecycle?: DataLifecycleWithRollover
53+
lifecycle?: DataStreamLifecycleWithRollover
5454
}

specification/cluster/get_component_template/ClusterGetComponentTemplateRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ export interface Request extends RequestBase {
4545
flat_settings?: boolean
4646
/**
4747
* @server_default false
48-
* @availability stack since=8.8.0 stability=experimental
49-
* @availability serverless stability=experimental
48+
* @availability stack since=8.11.0 stability=stable
49+
* @availability serverless stability=stable
5050
*/
5151
include_defaults?: boolean
5252
/**

specification/indices/_types/DataStream.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
Uuid
2828
} from '@_types/common'
2929
import { integer } from '@_types/Numeric'
30-
import { DataLifecycleWithRollover } from '@indices/_types/DataLifecycle'
30+
import { DataStreamLifecycleWithRollover } from '@indices/_types/DataStreamLifecycle'
3131

3232
export class DataStream {
3333
/**
@@ -61,10 +61,10 @@ export class DataStream {
6161
indices: DataStreamIndex[]
6262
/**
6363
* Contains the configuration for the data lifecycle management of this data stream.
64-
* @availability stack since=8.8.0 stability=experimental
65-
* @availability serverless stability=experimental
64+
* @availability stack since=8.11.0 stability=stable
65+
* @availability serverless stability=stable
6666
*/
67-
lifecycle?: DataLifecycleWithRollover
67+
lifecycle?: DataStreamLifecycleWithRollover
6868
/**
6969
* Name of the data stream.
7070
*/

specification/indices/_types/DataLifecycle.ts renamed to specification/indices/_types/DataStreamLifecycle.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ import { long } from '@_types/Numeric'
2222
import { ByteSize } from '@_types/common'
2323

2424
/**
25-
* Data lifecycle denotes that a data stream is managed by DLM and contains the configuration.
25+
* Data lifecycle denotes that a data stream is managed by the data stream lifecycle and contains the configuration.
2626
*/
27-
export class DataLifecycle {
27+
export class DataStreamLifecycle {
2828
data_retention?: Duration
2929
}
3030

3131
/**
3232
* Data lifecycle with rollover can be used to display the configuration including the default rollover conditions,
3333
* if asked.
3434
*/
35-
export class DataLifecycleWithRollover {
35+
export class DataStreamLifecycleWithRollover {
3636
/**
3737
* If defined, every document added to this data stream will be stored at least for this time frame.
3838
* Any time after this duration the document could be deleted.
@@ -44,10 +44,10 @@ export class DataLifecycleWithRollover {
4444
* This property is an implementation detail and it will only be retrieved when the query param `include_defaults` is set to true.
4545
* The contents of this field are subject to change.
4646
*/
47-
rollover?: DlmRolloverConditions
47+
rollover?: DataStreamLifecycleRolloverConditions
4848
}
4949

50-
class DlmRolloverConditions {
50+
class DataStreamLifecycleRolloverConditions {
5151
min_age?: Duration
5252
// max_age is a string because it can contain a label to signal that it's automatically calculated
5353
max_age?: string

0 commit comments

Comments
 (0)