Skip to content

Add age_in_millis to ILM Explain Response #128866

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

gmjehovich
Copy link
Contributor

@gmjehovich gmjehovich commented Jun 3, 2025

This PR enhances the _ilm/explain API by adding an age_in_millis field to its response.

Previously, the index's "age" was only reported in a human-readable format (age: "1.97d").

This change introduces the age_in_millis field, providing the index's age as a precise millisecond value (e.g., age_in_millis: 170208000).

This new field is validated with corresponding unit and integration testing

Closes #103659

@gmjehovich gmjehovich requested a review from joegallo June 3, 2025 22:24
@gmjehovich gmjehovich self-assigned this Jun 3, 2025
@gmjehovich gmjehovich added >enhancement :Data Management/ILM+SLM Index and Snapshot lifecycle management Team:Data Management Meta label for data/management team Supportability Improve our (devs, SREs, support eng, users) ability to troubleshoot/self-service product better. labels Jun 3, 2025
@gmjehovich gmjehovich added the auto-backport Automatically create backport pull requests when merged label Jun 9, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @gmjehovich, I've created a changelog YAML for you.

@elasticsearchmachine
Copy link
Collaborator

Hi @gmjehovich, I've updated the changelog YAML for you.

@gmjehovich gmjehovich marked this pull request as ready for review June 9, 2025 19:01
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged :Data Management/ILM+SLM Index and Snapshot lifecycle management >enhancement Supportability Improve our (devs, SREs, support eng, users) ability to troubleshoot/self-service product better. Team:Data Management Meta label for data/management team v8.17.8 v8.18.3 v8.19.0 v9.0.2 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[API][ILM Explain] Report age in milliseconds
2 participants