From 0409194eb5b983e4eee54007761fb8f1a03d1f7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Zolt=C3=A1n=20Szab=C3=B3?= Date: Wed, 23 Aug 2023 15:23:55 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Abdon Pijpelink --- specification/ml/_types/Analysis.ts | 3 ++- specification/ml/_types/Job.ts | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/specification/ml/_types/Analysis.ts b/specification/ml/_types/Analysis.ts index aec69024e8..4022270390 100644 --- a/specification/ml/_types/Analysis.ts +++ b/specification/ml/_types/Analysis.ts @@ -124,8 +124,9 @@ export class AnalysisConfigRead implements OverloadOf { model_prune_window?: Duration /** * The size of the window in which to expect data that is out of time order. - * The default value is 0 (no latency). + * Defaults to no latency. * If you specify a non-zero value, it must be greater than or equal to one second. + * @server_default 0 */ latency?: Duration /** diff --git a/specification/ml/_types/Job.ts b/specification/ml/_types/Job.ts index 7824485874..a308766bc3 100644 --- a/specification/ml/_types/Job.ts +++ b/specification/ml/_types/Job.ts @@ -99,7 +99,7 @@ export class Job { daily_model_snapshot_retention_after_days?: long /** * The data description defines the format of the input data when you send data to the job by using the post data API. - * Note that when configure a datafeed, these properties are automatically set. + * Note that when configuring a datafeed, these properties are automatically set. * When data is received via the post data API, it is not stored in Elasticsearch. * Only the results for anomaly detection are retained. */ @@ -153,7 +153,8 @@ export class Job { * Advanced configuration option, which affects the automatic removal of old model snapshots for this job. * It specifies the maximum period of time (in days) that snapshots are retained. * This period is relative to the timestamp of the most recent snapshot for this job. - * The default value is `10`, which means snapshots ten days older than the newest snapshot are deleted. + * By default, snapshots ten days older than the newest snapshot are deleted. + * @server_default 10 */ model_snapshot_retention_days: long /**