diff --git a/src/Nest/XPack/Ilm/ExplainLifecycle/ExplainLifecycleResponse.cs b/src/Nest/XPack/Ilm/ExplainLifecycle/ExplainLifecycleResponse.cs index 64a74b4600f..eec9f29c613 100644 --- a/src/Nest/XPack/Ilm/ExplainLifecycle/ExplainLifecycleResponse.cs +++ b/src/Nest/XPack/Ilm/ExplainLifecycle/ExplainLifecycleResponse.cs @@ -78,6 +78,12 @@ public class LifecycleExplain [DataMember(Name = "step_time_millis")] [JsonFormatter(typeof(DateTimeOffsetEpochMillisecondsFormatter))] public DateTimeOffset StepTime { get; internal set; } + + /// + /// The age of the index, useful to gauge when the next phase will trigger based on + /// + [DataMember(Name = "age")] + public Time Age { get; internal set; } } public class PhaseExecution diff --git a/src/Tests/Tests/XPack/Ilm/IlmApiTests.cs b/src/Tests/Tests/XPack/Ilm/IlmApiTests.cs index 0789a231edc..77433c516ec 100644 --- a/src/Tests/Tests/XPack/Ilm/IlmApiTests.cs +++ b/src/Tests/Tests/XPack/Ilm/IlmApiTests.cs @@ -176,7 +176,7 @@ [I] public async Task IlmExplainLifecycleResponse() => await Assert await Assert(IlmStopStep, (v, r) =>