Skip to content

Conversation

@peteharverson
Copy link
Contributor

@peteharverson peteharverson commented May 11, 2020

Summary

Fixes #65080, hiding the charts in the Anomaly Explorer, and the link to the Single Metric Viewer, for rare by mlcategory detectors where model plot is enabled. Charting for this combination of detector and model plot is not supported.

image

Also adds an extra check into the Single Metric Viewer, to use the underlying metric data for rare detectors (when not split by mlcategory) even when model plot is enabled for the job, since model plot results are not generated by the back-end for rare detectors.

Note there is existing issue with the entity dropdown(s) in the Single Metric Viewer, which are currently not populated for rare detectors when model plot is enabled. This will be fixed in a follow-up.

Checklist

Fixes #65080

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

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

'info_content',
'high_info_content',
'low_info_content',
].includes(functionName) === true);
Copy link
Member

Choose a reason for hiding this comment

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

this could be converted to use the constants from kibana/x-pack/plugins/ml/common/constants/aggregation_types.ts

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed, although will save this for a follow-up as I wanted to keep the code churn in this fix to a minimum. I suspect there are a lot of places in the code where we use hard-coded function names which could be switched to the constants from kibana/x-pack/plugins/ml/common/constants/aggregation_types.ts.

Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ML] Hide anomaly charts for rare by mlcategory detector with model plot enabled

5 participants