Skip to content

Commit db835dd

Browse files
authored
Fix definition of ManagedBy (#2364)
1 parent 4f9a95d commit db835dd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

specification/_types/common.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,6 @@ export type Metrics = string | string[]
7777

7878
export type ClusterAlias = string
7979

80-
export type ManagedBy =
81-
| 'Index Lifecycle Management'
82-
| 'Data stream lifecycle'
83-
| 'Unmanaged'
84-
8580
export type Name = string
8681
export type Names = Name | Name[]
8782

specification/indices/_types/DataStream.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,19 @@ import {
2222
Field,
2323
HealthStatus,
2424
IndexName,
25-
ManagedBy,
2625
Metadata,
2726
Name,
2827
Uuid
2928
} from '@_types/common'
3029
import { integer } from '@_types/Numeric'
3130
import { DataStreamLifecycleWithRollover } from '@indices/_types/DataStreamLifecycle'
3231

32+
enum ManagedBy {
33+
'Index Lifecycle Management',
34+
'Data stream lifecycle',
35+
'Unmanaged'
36+
}
37+
3338
export class DataStream {
3439
/**
3540
* Custom metadata for the stream, copied from the `_meta` object of the stream’s matching index template.

0 commit comments

Comments
 (0)