-
Notifications
You must be signed in to change notification settings - Fork 7
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
Create health_stats API for query insights #122
Conversation
The build will fail until we rebase #120 |
ec73491
to
1d8e313
Compare
@deshsidd just rebased and this PR should be ready. |
@@ -114,13 +114,13 @@ public void testGetExecutorBuilders() { | |||
|
|||
public void testGetRestHandlers() { | |||
List<RestHandler> components = queryInsightsPlugin.getRestHandlers(Settings.EMPTY, null, null, null, null, null, null); | |||
assertEquals(1, components.size()); | |||
assertEquals(2, components.size()); | |||
assertTrue(components.get(0) instanceof RestTopQueriesAction); |
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.
For the sake of completeness can verify that components.get(1)
is as expected.
assertTrue(components.get(0) instanceof RestTopQueriesAction); | ||
} | ||
|
||
public void testGetActions() { | ||
List<ActionPlugin.ActionHandler<? extends ActionRequest, ? extends ActionResponse>> components = queryInsightsPlugin.getActions(); | ||
assertEquals(1, components.size()); | ||
assertEquals(2, components.size()); | ||
assertTrue(components.get(0).getAction() instanceof TopQueriesAction); |
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.
Same as above
Signed-off-by: Chenyang Ji <[email protected]>
1d8e313
to
79379d9
Compare
LGTM |
Signed-off-by: Chenyang Ji <[email protected]> (cherry picked from commit e4c6b8f) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Chenyang Ji <[email protected]>
Signed-off-by: Chenyang Ji <[email protected]>
Description
Create healthstats API for query insights, using the data model from #120
Issues Resolved
Related to #9
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.