Skip to content

Commit 8ae626f

Browse files
droberts195sethmlarson
authored andcommitted
[7.x] Remove ML system_annotations_retention_days setting
This is a reversion of #522. We decided not to add a new setting after all, but to use results_retention_days for both results and system annotations (on the basis that system annotations are a type of result). This setting has been added and removed within the 7.15 development cycle so there are no implications for anyone using released product.
1 parent 1a82532 commit 8ae626f

File tree

6 files changed

+0
-73
lines changed

6 files changed

+0
-73
lines changed

output/schema/schema.json

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -105393,17 +105393,6 @@
105393105393
"namespace": "_types"
105394105394
}
105395105395
}
105396-
},
105397-
{
105398-
"name": "system_annotations_retention_days",
105399-
"required": false,
105400-
"type": {
105401-
"kind": "instance_of",
105402-
"type": {
105403-
"name": "long",
105404-
"namespace": "_types"
105405-
}
105406-
}
105407105396
}
105408105397
]
105409105398
},
@@ -105652,17 +105641,6 @@
105652105641
"namespace": "_types"
105653105642
}
105654105643
}
105655-
},
105656-
{
105657-
"name": "system_annotations_retention_days",
105658-
"required": false,
105659-
"type": {
105660-
"kind": "instance_of",
105661-
"type": {
105662-
"name": "long",
105663-
"namespace": "_types"
105664-
}
105665-
}
105666105644
}
105667105645
]
105668105646
},
@@ -114261,18 +114239,6 @@
114261114239
"namespace": "_types"
114262114240
}
114263114241
}
114264-
},
114265-
{
114266-
"description": "Advanced configuration option. The period of time (in days) that automatically created annotations are retained. Age is calculated relative to the timestamp of the latest bucket result. If this property has a non-null value, once per day at 00:30 (server time), annotations that are the specified number of days older than the latest bucket result are deleted from Elasticsearch. The default value is null, which means all annotations are retained. User created annotations are never deleted automatically.",
114267-
"name": "system_annotations_retention_days",
114268-
"required": false,
114269-
"type": {
114270-
"kind": "instance_of",
114271-
"type": {
114272-
"name": "long",
114273-
"namespace": "_types"
114274-
}
114275-
}
114276114242
}
114277114243
]
114278114244
},
@@ -114529,17 +114495,6 @@
114529114495
"namespace": "_types"
114530114496
}
114531114497
}
114532-
},
114533-
{
114534-
"name": "system_annotations_retention_days",
114535-
"required": false,
114536-
"type": {
114537-
"kind": "instance_of",
114538-
"type": {
114539-
"name": "long",
114540-
"namespace": "_types"
114541-
}
114542-
}
114543114498
}
114544114499
]
114545114500
},
@@ -115852,18 +115807,6 @@
115852115807
"namespace": "ml._types"
115853115808
}
115854115809
}
115855-
},
115856-
{
115857-
"description": "Advanced configuration option. The period of time (in days) that automatically created annotations are retained. Age is calculated relative to the timestamp of the latest bucket result. If this property has a non-null value, once per day at 00:30 (server time), annotations that are the specified number of days older than the latest bucket result are deleted from Elasticsearch. The default value is null, which means all annotations are retained. User created annotations are never deleted automatically.",
115858-
"name": "system_annotations_retention_days",
115859-
"required": false,
115860-
"type": {
115861-
"kind": "instance_of",
115862-
"type": {
115863-
"name": "long",
115864-
"namespace": "_types"
115865-
}
115866-
}
115867115810
}
115868115811
]
115869115812
},

output/typescript/types.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10717,7 +10717,6 @@ export interface MlJob {
1071710717
renormalization_window_days?: long
1071810718
results_index_name: IndexName
1071910719
results_retention_days?: long
10720-
system_annotations_retention_days?: long
1072110720
}
1072210721

1072310722
export interface MlJobBlocked {
@@ -10745,7 +10744,6 @@ export interface MlJobConfig {
1074510744
renormalization_window_days?: long
1074610745
results_index_name?: IndexName
1074710746
results_retention_days?: long
10748-
system_annotations_retention_days?: long
1074910747
}
1075010748

1075110749
export interface MlJobForecastStatistics {
@@ -11752,7 +11750,6 @@ export interface MlPutJobRequest extends RequestBase {
1175211750
renormalization_window_days?: long
1175311751
results_index_name?: IndexName
1175411752
results_retention_days?: long
11755-
system_annotations_retention_days?: long
1175611753
}
1175711754
}
1175811755

@@ -11777,7 +11774,6 @@ export interface MlPutJobResponse {
1177711774
renormalization_window_days?: long
1177811775
results_index_name: string
1177911776
results_retention_days?: long
11780-
system_annotations_retention_days?: long
1178111777
}
1178211778

1178311779
export interface MlPutTrainedModelRequest extends RequestBase {
@@ -11934,7 +11930,6 @@ export interface MlUpdateJobRequest extends RequestBase {
1193411930
groups?: string[]
1193511931
detectors?: MlDetector[]
1193611932
per_partition_categorization?: MlPerPartitionCategorization
11937-
system_annotations_retention_days?: long
1193811933
}
1193911934
}
1194011935

specification/ml/_types/Job.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ export class Job {
6767
renormalization_window_days?: long
6868
results_index_name: IndexName
6969
results_retention_days?: long
70-
system_annotations_retention_days?: long
7170
}
7271

7372
export class JobConfig {
@@ -88,7 +87,6 @@ export class JobConfig {
8887
renormalization_window_days?: long
8988
results_index_name?: IndexName
9089
results_retention_days?: long
91-
system_annotations_retention_days?: long
9290
}
9391
export class JobStats {
9492
assignment_explanation?: string

specification/ml/put_job/MlPutJobRequest.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,5 @@ export interface Request extends RequestBase {
104104
* Advanced configuration option. The period of time (in days) that results are retained. Age is calculated relative to the timestamp of the latest bucket result. If this property has a non-null value, once per day at 00:30 (server time), results that are the specified number of days older than the latest bucket result are deleted from Elasticsearch. The default value is null, which means all results are retained.
105105
*/
106106
results_retention_days?: long
107-
/**
108-
* Advanced configuration option. The period of time (in days) that automatically created annotations are retained. Age is calculated relative to the timestamp of the latest bucket result. If this property has a non-null value, once per day at 00:30 (server time), annotations that are the specified number of days older than the latest bucket result are deleted from Elasticsearch. The default value is null, which means all annotations are retained. User created annotations are never deleted automatically.
109-
*/
110-
system_annotations_retention_days?: long
111107
}
112108
}

specification/ml/put_job/MlPutJobResponse.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,5 @@ export class Response {
4848
renormalization_window_days?: long
4949
results_index_name: string
5050
results_retention_days?: long
51-
system_annotations_retention_days?: long
5251
}
5352
}

specification/ml/update_job/MlUpdateJobRequest.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,5 @@ export interface Request extends RequestBase {
8989
* Settings related to how categorization interacts with partition fields.
9090
*/
9191
per_partition_categorization?: PerPartitionCategorization
92-
/**
93-
* Advanced configuration option. The period of time (in days) that automatically created annotations are retained. Age is calculated relative to the timestamp of the latest bucket result. If this property has a non-null value, once per day at 00:30 (server time), annotations that are the specified number of days older than the latest bucket result are deleted from Elasticsearch. The default value is null, which means all annotations are retained. User created annotations are never deleted automatically.
94-
*/
95-
system_annotations_retention_days?: long
9692
}
9793
}

0 commit comments

Comments
 (0)