- Notifications
You must be signed in to change notification settings - Fork 25.6k
[DSL] Introduce new endpoint to expose data stream lifecycle stats #101845
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
Conversation
@elasticmachine update branch |
}); | ||
} | ||
| ||
private static List<String> getBackingIndices(String dataStreamName) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just moved this helper function in the bottom to be after all the test cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this note, this is really helpful when reviewing ❤️
@elasticmachine update branch |
Pinging @elastic/es-data-management (Team:Data Management) |
Hi @gmarouli, I've created a changelog YAML for you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this Mary, this is really nice ! 🚀
LGTM
@@ -0,0 +1,93 @@ | |||
[[data-streams-get-lifecycle-stats]] | |||
=== Get data stream lifecycle stats |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice ! ❤️
}); | ||
} | ||
| ||
private static List<String> getBackingIndices(String dataStreamName) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this note, this is really helpful when reviewing ❤️
} | ||
} | ||
| ||
public static class Response extends ActionResponse implements ChunkedToXContentObject { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chunked response ❤️
@elasticmachine update branch |
We introduce the endpoint
GET _lifecycle/stats
that exposes stats from the data stream lifecycle run and the data streams and backing indices managed by DSL. For example: