Skip to content

Commit 18d4e03

Browse files
authored
Add system_annotations_retention_days to ML APIs (#522)
1 parent 7083422 commit 18d4e03

File tree

6 files changed

+73
-0
lines changed

6 files changed

+73
-0
lines changed

output/schema/schema.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105303,6 +105303,17 @@
105303105303
"namespace": "_types"
105304105304
}
105305105305
}
105306+
},
105307+
{
105308+
"name": "system_annotations_retention_days",
105309+
"required": false,
105310+
"type": {
105311+
"kind": "instance_of",
105312+
"type": {
105313+
"name": "long",
105314+
"namespace": "_types"
105315+
}
105316+
}
105306105317
}
105307105318
]
105308105319
},
@@ -105502,6 +105513,17 @@
105502105513
"namespace": "_types"
105503105514
}
105504105515
}
105516+
},
105517+
{
105518+
"name": "system_annotations_retention_days",
105519+
"required": false,
105520+
"type": {
105521+
"kind": "instance_of",
105522+
"type": {
105523+
"name": "long",
105524+
"namespace": "_types"
105525+
}
105526+
}
105505105527
}
105506105528
]
105507105529
},
@@ -114070,6 +114092,18 @@
114070114092
"namespace": "_types"
114071114093
}
114072114094
}
114095+
},
114096+
{
114097+
"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.",
114098+
"name": "system_annotations_retention_days",
114099+
"required": false,
114100+
"type": {
114101+
"kind": "instance_of",
114102+
"type": {
114103+
"name": "long",
114104+
"namespace": "_types"
114105+
}
114106+
}
114073114107
}
114074114108
]
114075114109
},
@@ -114326,6 +114360,17 @@
114326114360
"namespace": "_types"
114327114361
}
114328114362
}
114363+
},
114364+
{
114365+
"name": "system_annotations_retention_days",
114366+
"required": false,
114367+
"type": {
114368+
"kind": "instance_of",
114369+
"type": {
114370+
"name": "long",
114371+
"namespace": "_types"
114372+
}
114373+
}
114329114374
}
114330114375
]
114331114376
},
@@ -115573,6 +115618,18 @@
115573115618
"namespace": "ml._types"
115574115619
}
115575115620
}
115621+
},
115622+
{
115623+
"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.",
115624+
"name": "system_annotations_retention_days",
115625+
"required": false,
115626+
"type": {
115627+
"kind": "instance_of",
115628+
"type": {
115629+
"name": "long",
115630+
"namespace": "_types"
115631+
}
115632+
}
115576115633
}
115577115634
]
115578115635
},

output/typescript/types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10707,6 +10707,7 @@ export interface MlJob {
1070710707
renormalization_window_days?: long
1070810708
results_index_name: IndexName
1070910709
results_retention_days?: long
10710+
system_annotations_retention_days?: long
1071010711
}
1071110712

1071210713
export interface MlJobConfig {
@@ -10727,6 +10728,7 @@ export interface MlJobConfig {
1072710728
renormalization_window_days?: long
1072810729
results_index_name?: IndexName
1072910730
results_retention_days?: long
10731+
system_annotations_retention_days?: long
1073010732
}
1073110733

1073210734
export interface MlJobForecastStatistics {
@@ -11731,6 +11733,7 @@ export interface MlPutJobRequest extends RequestBase {
1173111733
renormalization_window_days?: long
1173211734
results_index_name?: IndexName
1173311735
results_retention_days?: long
11736+
system_annotations_retention_days?: long
1173411737
}
1173511738
}
1173611739

@@ -11755,6 +11758,7 @@ export interface MlPutJobResponse {
1175511758
renormalization_window_days?: long
1175611759
results_index_name: string
1175711760
results_retention_days?: long
11761+
system_annotations_retention_days?: long
1175811762
}
1175911763

1176011764
export interface MlPutTrainedModelRequest extends RequestBase {
@@ -11903,6 +11907,7 @@ export interface MlUpdateJobRequest extends RequestBase {
1190311907
groups?: string[]
1190411908
detectors?: MlDetector[]
1190511909
per_partition_categorization?: MlPerPartitionCategorization
11910+
system_annotations_retention_days?: long
1190611911
}
1190711912
}
1190811913

specification/ml/_types/Job.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export class Job {
6666
renormalization_window_days?: long
6767
results_index_name: IndexName
6868
results_retention_days?: long
69+
system_annotations_retention_days?: long
6970
}
7071

7172
export class JobConfig {
@@ -86,6 +87,7 @@ export class JobConfig {
8687
renormalization_window_days?: long
8788
results_index_name?: IndexName
8889
results_retention_days?: long
90+
system_annotations_retention_days?: long
8991
}
9092
export class JobStats {
9193
assignment_explanation: string

specification/ml/put_job/MlPutJobRequest.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,9 @@ 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
107111
}
108112
}

specification/ml/put_job/MlPutJobResponse.ts

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

specification/ml/update_job/MlUpdateJobRequest.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,9 @@ 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
9296
}
9397
}

0 commit comments

Comments
 (0)