Skip to content

[HLRC] Added support for CCR Stats API#36213

Merged
martijnvg merged 6 commits intoelastic:masterfrom
martijnvg:hlrc_ccr_get_ccr_stats
Dec 5, 2018
Merged

[HLRC] Added support for CCR Stats API#36213
martijnvg merged 6 commits intoelastic:masterfrom
martijnvg:hlrc_ccr_get_ccr_stats

Conversation

@martijnvg
Copy link
Copy Markdown
Member

This change also adds documentation for the CCR Stats API.

This is PR is big, but that is mainly because indices follow and auto follow stats response classes and associated tests. These classes just have a lot of fields.

Relates to #33824

This change also adds documentation for the CCR Stats API.

Relates to elastic#33824
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features

Copy link
Copy Markdown
Contributor

@hub-cap hub-cap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nits, id like to know the answer to a Q but i wont block.


static Request getCcrStats(CcrStatsRequest ccrStatsRequest) {
String endpoint = new RequestConverters.EndpointBuilder()
.addPathPartAsIs(ccrStatsRequest.getFollowerIndex())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.addPathPart() since it has user input


private static final ConstructingObjectParser<Tuple<String, List<ShardFollowStats>>, Void> ENTRY_PARSER =
new ConstructingObjectParser<>("entry", args -> {
String index = (String) args[0];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spacing is odd here, maybe tab in the closure a bit more

@martijnvg martijnvg merged commit 786697a into elastic:master Dec 5, 2018
martijnvg added a commit that referenced this pull request Dec 5, 2018
This change also adds documentation for the CCR Stats API.

Relates to #33824
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants