Skip to content
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

[ML] Fix issues with end time of explorer swimlane selection #18995

Merged
merged 1 commit into from
May 15, 2018

Conversation

peteharverson
Copy link
Contributor

Fixes a couple of issues around selection in the Anomaly Explorer swimlane caused by incorrect setting of the end time used in the drilldown queries:

  1. The selection end time included the start of the next bucket e.g. for a swimlane cell with a 4 hour interval, a cell representing a time range from 04:00 to 07:59:59.999, the end time was being set to 08:00:00.000. This caused anomalies in the next bucket to be incorrectly shown in drilldowns and affected swimlane lane order. The end time is now being correctly set to e.g 07:59:59.999.

  2. With swimlane multi-selection enabled (see [ML] Enable cell range selection. #18920), the end time of the selection was being set to the START time of the last cell in the selection, rather than the END time of the selection.

Also fixes an inconsistency between the influencer_score criteria between the Top Influencers List and the swimlanes. The swimlane has been using a filter of influencer_score > 0 whereas the Top Influencers List has been showing influencer_score >= 0, which can often result in a difference between the number of influencers shown in the Top Influencers List (which was including influencers with a score of 0) and the number of lanes in the swimlane. The query for the Top Influencers List has been edited to make it consistent with the swimlane query i.e. only show influencers with a score greater than zero.

Example screenshot before fix (view by swimlane has 8 eight lanes, two of which have a score of zero as they include the start of the next bucket):
cloudwatch_range_before

Example screenshot after fix (view by swimlane and Top Influencers both now show 6 lanes)
cloudwatch_range_after

Note the swimlane selection mask was temporarily removed for the screenshots above to emphasize the swimlane cell severities around the time of the selection.

Fixes #18575

@peteharverson peteharverson added bug Fixes for quality problems that affect the customer experience review v7.0.0 v6.4.0 :ml Feature:ml-results legacy - do not use labels May 11, 2018
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui

Copy link
Contributor

@walterra walterra left a comment

Choose a reason for hiding this comment

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

LGTM

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Member

@jgowdyelastic jgowdyelastic left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Anomaly Detection ML anomaly detection Feature:ml-results legacy - do not use :ml review v6.4.0 v7.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML] Anomaly explorer queries closed above
5 participants