From ef82093fef0e8599a743ee42f7fbdad5213d1b1d Mon Sep 17 00:00:00 2001 From: Russ Cam Date: Thu, 20 Feb 2020 10:12:55 +1100 Subject: [PATCH] Add retry count and is retryable to ILM explain (#4391) Relates: #4341, elastic/elasticsearch#48256 This commit adds FailedStepRetryCount and IsAutoRetryableError properties to ILM explain, applicable if a step fails. (cherry picked from commit 4dc0e83594263bc02b70c4acaa159030d371f69c) --- .../ExplainLifecycle/ExplainLifecycleResponse.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Nest/XPack/Ilm/ExplainLifecycle/ExplainLifecycleResponse.cs b/src/Nest/XPack/Ilm/ExplainLifecycle/ExplainLifecycleResponse.cs index eec9f29c613..773130c7c21 100644 --- a/src/Nest/XPack/Ilm/ExplainLifecycle/ExplainLifecycleResponse.cs +++ b/src/Nest/XPack/Ilm/ExplainLifecycle/ExplainLifecycleResponse.cs @@ -24,12 +24,25 @@ public class LifecycleExplain [JsonFormatter(typeof(DateTimeOffsetEpochMillisecondsFormatter))] public DateTimeOffset ActionTime { get; internal set; } + /// + /// Indicates if retrying a failed step can overcome the error. + /// If this is true, the failed step will be retried automatically. + /// + [DataMember(Name = "is_auto_retryable_error")] + public bool? IsAutoRetryableError { get; internal set; } + /// /// The step that caused the error, if applicable. /// [DataMember(Name = "failed_step")] public string FailedStep { get; internal set; } + /// + /// Number of attempted automatic retries to execute the failed step, if applicable. + /// + [DataMember(Name = "failed_step_retry_count")] + public int? FailedStepRetryCount { get; internal set; } + [DataMember(Name = "index")] public IndexName Index { get; internal set; }