diff --git a/output/schema/schema.json b/output/schema/schema.json index 0c4204872a..3f124447ca 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -105303,6 +105303,17 @@ "namespace": "_types" } } + }, + { + "name": "system_annotations_retention_days", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } } ] }, @@ -105502,6 +105513,17 @@ "namespace": "_types" } } + }, + { + "name": "system_annotations_retention_days", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } } ] }, @@ -114032,6 +114054,18 @@ "namespace": "_types" } } + }, + { + "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.", + "name": "system_annotations_retention_days", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } } ] }, @@ -114288,6 +114322,17 @@ "namespace": "_types" } } + }, + { + "name": "system_annotations_retention_days", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } } ] }, @@ -115523,6 +115568,18 @@ "namespace": "ml._types" } } + }, + { + "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.", + "name": "system_annotations_retention_days", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } } ] }, diff --git a/output/typescript/types.ts b/output/typescript/types.ts index ffd59843a4..e2ea8fc674 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -10707,6 +10707,7 @@ export interface MlJob { renormalization_window_days?: long results_index_name: IndexName results_retention_days?: long + system_annotations_retention_days?: long } export interface MlJobConfig { @@ -10727,6 +10728,7 @@ export interface MlJobConfig { renormalization_window_days?: long results_index_name?: IndexName results_retention_days?: long + system_annotations_retention_days?: long } export interface MlJobForecastStatistics { @@ -11728,6 +11730,7 @@ export interface MlPutJobRequest extends RequestBase { renormalization_window_days?: long results_index_name?: IndexName results_retention_days?: long + system_annotations_retention_days?: long } } @@ -11752,6 +11755,7 @@ export interface MlPutJobResponse { renormalization_window_days?: long results_index_name: string results_retention_days?: long + system_annotations_retention_days?: long } export interface MlPutTrainedModelRequest extends RequestBase { @@ -11899,6 +11903,7 @@ export interface MlUpdateJobRequest extends RequestBase { groups?: string[] detectors?: MlDetector[] per_partition_categorization?: MlPerPartitionCategorization + system_annotations_retention_days?: long } } diff --git a/specification/ml/_types/Job.ts b/specification/ml/_types/Job.ts index ec71d0d54b..f48da3847c 100644 --- a/specification/ml/_types/Job.ts +++ b/specification/ml/_types/Job.ts @@ -66,6 +66,7 @@ export class Job { renormalization_window_days?: long results_index_name: IndexName results_retention_days?: long + system_annotations_retention_days?: long } export class JobConfig { @@ -86,6 +87,7 @@ export class JobConfig { renormalization_window_days?: long results_index_name?: IndexName results_retention_days?: long + system_annotations_retention_days?: long } export class JobStats { assignment_explanation: string diff --git a/specification/ml/put_job/MlPutJobRequest.ts b/specification/ml/put_job/MlPutJobRequest.ts index 7a05408585..be2d8d211c 100644 --- a/specification/ml/put_job/MlPutJobRequest.ts +++ b/specification/ml/put_job/MlPutJobRequest.ts @@ -104,5 +104,9 @@ export interface Request extends RequestBase { * 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. */ results_retention_days?: long + /** + * 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. + */ + system_annotations_retention_days?: long } } diff --git a/specification/ml/put_job/MlPutJobResponse.ts b/specification/ml/put_job/MlPutJobResponse.ts index ccc0c5fb65..6a0615b89a 100644 --- a/specification/ml/put_job/MlPutJobResponse.ts +++ b/specification/ml/put_job/MlPutJobResponse.ts @@ -48,5 +48,6 @@ export class Response { renormalization_window_days?: long results_index_name: string results_retention_days?: long + system_annotations_retention_days?: long } } diff --git a/specification/ml/update_job/MlUpdateJobRequest.ts b/specification/ml/update_job/MlUpdateJobRequest.ts index 402629a4ef..9ba8e67e4b 100644 --- a/specification/ml/update_job/MlUpdateJobRequest.ts +++ b/specification/ml/update_job/MlUpdateJobRequest.ts @@ -89,5 +89,9 @@ export interface Request extends RequestBase { * Settings related to how categorization interacts with partition fields. */ per_partition_categorization?: PerPartitionCategorization + /** + * 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. + */ + system_annotations_retention_days?: long } }