-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[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
Conversation
This change also adds documentation for the CCR Stats API. Relates to elastic#33824
Pinging @elastic/es-core-features |
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.
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()) |
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.
.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]; |
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.
spacing is odd here, maybe tab in the closure a bit more
client/rest-high-level/src/test/java/org/elasticsearch/client/CCRIT.java
Show resolved
Hide resolved
This change also adds documentation for the CCR Stats API. Relates to #33824
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