-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Add percentile ranks metric support #3470
Conversation
1. Rename percentList->valuesList 2. Add configurable boundaries to percent list control
Percentile ranks metric support
Not used after renaming it to values_list
it would appear that the email you've signed the CLA with does not match your github profile. Can you double check that so we can review this pull? Also it appear the tests are failing |
Thanks, Rashid. I saw the test error, for some reason I didn't spot it on my box, maybe I didn't delete old file after renaming. I will fix it. CLA seems to be fine. |
Update unit-test after renaming control
Apparently, not all unit tests are run on my dev box. Maybe because it's Windows setup. |
var min = list[$scope.$index - 1] || 0; | ||
var max = list[$scope.$index + 1] || 100; | ||
|
||
var min = list[$scope.$index - 1] || $scope.valueBoundaries[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.
Would you mind moving the valueBoundaries argument into the attributes of the element where values-list
is specified?
Something like:
<input type="text" value-list="some.property" value-list-min="0" value-list-max="100">
and
link: function ($scope, $el, attrs) {
var min = _.parseInt(attrs.valueListMin);
if (isNaN(min)) throw new TypeError('invalid value-list-min: ' + attrs.valueListMin);
var max = _.parseInt(attrs.valueListMax);
if (isNaN(max)) throw new TypeError('invalid value-list-max: ' + attrs.valueListMax);
}
Left some comments inline, but can you do me a favor and explain how you plan to use the percentile_rank metric? 😅 |
@spalger, I want to have SLA in form - xx% request should complete within yy sec, to see whether my service satisfies SLA I want to use percentile_rank metric. Of course, I could create a lot of percentiles and see how many secs request takes on different %tiles, but I want to have one number to see how far the service from SLA. Does it make sense? |
@drej82 sweet! that totally makes sense. Here is an image of a percentile_rank agg showing that:
|
introduced new fileds in view - values-list-min and values-list-max
Update unit tests after code change
LGTM! Thanks @drej82! 🍻 |
Add percentile ranks metric support
Cool, thanks! |
Added support for percentile rank metric to kibana. issue #3330
I've never used node.js before, so chosen approach might be wrong.