Skip to content

Commit

Permalink
[8.x] [ML] Anomaly Detection: Adds popover links menu to anomaly expl…
Browse files Browse the repository at this point in the history
…orer charts. (#186587) (#193383)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ML] Anomaly Detection: Adds popover links menu to anomaly explorer
charts. (#186587)](#186587)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Walter
Rafelsberger","email":"walter.rafelsberger@elastic.co"},"sourceCommit":{"committedDate":"2024-09-19T06:10:38Z","message":"[ML]
Anomaly Detection: Adds popover links menu to anomaly explorer charts.
(#186587)\n\n## Summary\r\n\r\nAdds support for clicking on Anomaly
Explorer charts to trigger the\r\nactions popover menu.\r\n\r\n- [x]
ExplorerChartSingleMetric\r\n- [x] ExplorerChartDistribution\r\n- [x]
Support for embedded charts\r\n\r\nAnomaly
Explorer\r\n\r\n[ml-anomaly-charts-actions-0001.webm](https://github.com/elastic/kibana/assets/230104/9502b234-7df8-4290-9914-163936487af8)\r\n\r\nEmbedding\r\n\r\n[ml-anomaly-charts-actions-embedding-0001.webm](https://github.com/elastic/kibana/assets/230104/ee519b47-e924-4947-b127-4f3ecf62616e)\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] This was
checked for breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"854cb15725f059aa80abea6d7155190ef88622ef","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement",":ml","Feature:Anomaly
Detection","v9.0.0","v8.16.0"],"title":"[ML] Anomaly Detection: Adds
popover links menu to anomaly explorer
charts.","number":186587,"url":"https://github.com/elastic/kibana/pull/186587","mergeCommit":{"message":"[ML]
Anomaly Detection: Adds popover links menu to anomaly explorer charts.
(#186587)\n\n## Summary\r\n\r\nAdds support for clicking on Anomaly
Explorer charts to trigger the\r\nactions popover menu.\r\n\r\n- [x]
ExplorerChartSingleMetric\r\n- [x] ExplorerChartDistribution\r\n- [x]
Support for embedded charts\r\n\r\nAnomaly
Explorer\r\n\r\n[ml-anomaly-charts-actions-0001.webm](https://github.com/elastic/kibana/assets/230104/9502b234-7df8-4290-9914-163936487af8)\r\n\r\nEmbedding\r\n\r\n[ml-anomaly-charts-actions-embedding-0001.webm](https://github.com/elastic/kibana/assets/230104/ee519b47-e924-4947-b127-4f3ecf62616e)\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] This was
checked for breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"854cb15725f059aa80abea6d7155190ef88622ef"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/186587","number":186587,"mergeCommit":{"message":"[ML]
Anomaly Detection: Adds popover links menu to anomaly explorer charts.
(#186587)\n\n## Summary\r\n\r\nAdds support for clicking on Anomaly
Explorer charts to trigger the\r\nactions popover menu.\r\n\r\n- [x]
ExplorerChartSingleMetric\r\n- [x] ExplorerChartDistribution\r\n- [x]
Support for embedded charts\r\n\r\nAnomaly
Explorer\r\n\r\n[ml-anomaly-charts-actions-0001.webm](https://github.com/elastic/kibana/assets/230104/9502b234-7df8-4290-9914-163936487af8)\r\n\r\nEmbedding\r\n\r\n[ml-anomaly-charts-actions-embedding-0001.webm](https://github.com/elastic/kibana/assets/230104/ee519b47-e924-4947-b127-4f3ecf62616e)\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] This was
checked for breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"854cb15725f059aa80abea6d7155190ef88622ef"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Walter Rafelsberger <walter.rafelsberger@elastic.co>
  • Loading branch information
kibanamachine and walterra authored Sep 20, 2024
1 parent a4fb640 commit e0e48cc
Show file tree
Hide file tree
Showing 19 changed files with 1,465 additions and 40 deletions.
2 changes: 1 addition & 1 deletion x-pack/packages/ml/anomaly_utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export interface MlAnomaliesTableRecord {
/**
* Returns true if the job has the model plot enabled
*/
modelPlotEnabled: boolean;
modelPlotEnabled?: boolean;
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ "default": {
{
"default": {
"anomalies": [
{
"time": 1486018800000,
Expand Down Expand Up @@ -44,9 +45,11 @@
"metricDescriptionSort": 82.83851409101328,
"detector": "count by mlcategory",
"isTimeSeriesViewDetector": false,
"influencers": [
"mockInfluencer"
]
"influencers": [
{
"mockInfluencerField": "mockInfluencerValue"
}
]
},
{
"time": 1486018800000,
Expand Down Expand Up @@ -92,12 +95,16 @@
"metricDescriptionSort": 38.82201810127708,
"detector": "count by mlcategory",
"isTimeSeriesViewDetector": false,
"influencers": [
"mockInfluencer"
]
"influencers": [
{
"mockInfluencerField": "mockInfluencerValue"
}
]
}
],
"jobIds": ["it-ops-count-by-mlcategory-one"],
"jobIds": [
"it-ops-count-by-mlcategory-one"
],
"interval": "day",
"examplesByJobId": {
"it-ops-count-by-mlcategory-one": {
Expand Down Expand Up @@ -161,7 +168,9 @@
"detector": "count by mlcategory",
"isTimeSeriesViewDetector": false,
"influencers": [
"mockInfluencer"
{
"mockInfluencerField": "mockInfluencerValue"
}
]
},
{
Expand Down Expand Up @@ -208,7 +217,9 @@
"detector": "count by mlcategory",
"isTimeSeriesViewDetector": false,
"influencers": [
"mockInfluencer"
{
"mockInfluencerField": "mockInfluencerValue"
}
]
}
],
Expand Down Expand Up @@ -496,7 +507,9 @@
"detector": "count by mlcategory",
"isTimeSeriesViewDetector": false,
"influencers": [
"mockInfluencer"
{
"mockInfluencerField": "mockInfluencerValue"
}
]
},
{
Expand Down Expand Up @@ -541,7 +554,9 @@
"detector": "count by mlcategory",
"isTimeSeriesViewDetector": false,
"influencers": [
"mockInfluencer"
{
"mockInfluencerField": "mockInfluencerValue"
}
]
}
],
Expand Down
Loading

0 comments on commit e0e48cc

Please sign in to comment.