Skip to content

Commit be7456b

Browse files
committed
Add retry count and is retryable to ILM explain
Relates: #4341, elastic/elasticsearch#48256 This commit adds FailedStepRetryCount and IsAutoRetryableError properties to ILM explain, applicable if a step fails.
1 parent 060e13b commit be7456b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Nest/XPack/Ilm/ExplainLifecycle/ExplainLifecycleResponse.cs

+13
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,25 @@ public class LifecycleExplain
2424
[JsonFormatter(typeof(DateTimeOffsetEpochMillisecondsFormatter))]
2525
public DateTimeOffset ActionTime { get; internal set; }
2626

27+
/// <summary>
28+
/// Indicates if retrying a failed step can overcome the error.
29+
/// If this is true, the failed step will be retried automatically.
30+
/// </summary>
31+
[DataMember(Name = "is_auto_retryable_error")]
32+
public bool? IsAutoRetryableError { get; internal set; }
33+
2734
/// <summary>
2835
/// The step that caused the error, if applicable.
2936
/// </summary>
3037
[DataMember(Name = "failed_step")]
3138
public string FailedStep { get; internal set; }
3239

40+
/// <summary>
41+
/// Number of attempted automatic retries to execute the failed step, if applicable.
42+
/// </summary>
43+
[DataMember(Name = "failed_step_retry_count")]
44+
public int? FailedStepRetryCount { get; internal set; }
45+
3346
[DataMember(Name = "index")]
3447
public IndexName Index { get; internal set; }
3548

0 commit comments

Comments
 (0)