Skip to content

[HLRC] Added support for CCR Stats API #36213

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

Merged
merged 6 commits into from
Dec 5, 2018

Conversation

martijnvg
Copy link
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
Collaborator

Pinging @elastic/es-core-features

Copy link
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.

@@ -100,4 +101,12 @@ static Request getAutoFollowPattern(GetAutoFollowPatternRequest getAutoFollowPat
return new Request(HttpGet.METHOD_NAME, endpoint);
}

static Request getCcrStats(CcrStatsRequest ccrStatsRequest) {
String endpoint = new RequestConverters.EndpointBuilder()
.addPathPartAsIs(ccrStatsRequest.getFollowerIndex())
Copy link
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
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