Skip to content

[7.x] [Logs UI] Add ML job status callouts to results page (#4…#48309

Merged
weltenwort merged 2 commits intoelastic:7.xfrom
weltenwort:backport/7.x/pr-47642
Oct 16, 2019
Merged

[7.x] [Logs UI] Add ML job status callouts to results page (#4…#48309
weltenwort merged 2 commits intoelastic:7.xfrom
weltenwort:backport/7.x/pr-47642

Conversation

@weltenwort
Copy link
Copy Markdown
Member

Backports the following commits to 7.x:

* Amend outer page / panel structure

* Remove unused imports

* Add anomalies section and overall chart

* Add legend

* Rename dataSet to partition

* Add max bucket anomaly score

* Move job and setup status types to common

* Move initial job status fetching into page content

* Poll for job status on results page

* Add table / expanded row charts

* Add bucket span text

* Add stat section to expanded rows

* Amend annotations on overall graph

* Add rule to account for EuiFlexItem edge case

* Move functions that handle derivations of data to a new file

* Tweak data points fetched

* Style bars in grey for anomalies charts

* Add severity scoring to annotations

* Fix default

* Remove decimal places from anomaly score representations

* Show all partitions and overall anomaly score in annotation tooltip for overall chart

* Handle 'unknown' to workaround lack of '' suuport in tables

* Add stats section to overall anomalies section

* Base x-domain off the series so that certain buckets aren't omitted

* Tweak colours and DRY up annotation rendering

* Add sorting to table

* Add "number of logs" to API results and render in UI stats

* Track and render out-of-sync job configurations

* Adjust translation labels

* Add stopped state callout

* Add more callout icons

* Fix api integration tests

* Use "pretty" numbers for "Number of logs" stats

* Improve status message wording

* Change recreate job button color back to default

* Add toolbar text

* Format all y axis values to 3 digits

* Remove "Overall anomaly score" and change all wording / calculations to "Max anomaly scores"

* Sort anomaly maximum scores for the overall chart tooltip

* Remove unused translations

* Use white text with badge in toolbar

* Factor out a job recreation callout

* Replace `filter()[0]` with `find()` call

* Amend key

* Use Math.round and introduce a formatAnomalyScore helper function

* Update x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/anomalies/index.tsx

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/log_rate/index.tsx

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Format y-axis of log entry rate chart the same as anomalies charts

* Update x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/anomalies/expanded_row.tsx

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Remove grow prop

* Update x-pack/legacy/plugins/infra/common/http_api/log_analysis/results/log_entry_rate.ts

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/legacy/plugins/infra/common/http_api/log_analysis/results/log_entry_rate.ts

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/legacy/plugins/infra/server/routes/log_analysis/results/log_entry_rate.ts

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/legacy/plugins/infra/public/pages/logs/analysis/page_results_content.tsx

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/anomalies/expanded_row.tsx

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/anomalies/expanded_row.tsx

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/legacy/plugins/infra/server/routes/log_analysis/results/log_entry_rate.ts

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/helpers/data_formatters.tsx

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/anomalies/expanded_row.tsx

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/anomalies/expanded_row.tsx

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/anomalies/expanded_row.tsx

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/anomalies/index.tsx

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/anomalies/index.tsx

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/helpers/data_formatters.tsx

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/helpers/data_formatters.tsx

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/helpers/data_formatters.tsx

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/legacy/plugins/infra/public/pages/logs/analysis/sections/helpers/data_formatters.tsx

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/legacy/plugins/infra/server/lib/log_analysis/log_analysis.ts

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/legacy/plugins/infra/server/lib/log_analysis/log_analysis.ts

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/legacy/plugins/infra/server/routes/log_analysis/results/log_entry_rate.ts

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/legacy/plugins/infra/server/routes/log_analysis/results/log_entry_rate.ts

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Change path

* Amend property name

* Use proper default value argument

* Use Kibana dateFormat setting for toolbar formatting

* Change logic for calculating severity score categories

* Add missing translations

* Add interface to top of file

* Add no-wrap to tooltip

* Use more idomatic code

* Use static value for series styles

* Move the callouts into the right location

* Fix linter warning

* Add non-functional ML link button

* Fix merge mistake
@weltenwort weltenwort added the backport This PR is a backport of another PR label Oct 15, 2019
@weltenwort weltenwort self-assigned this Oct 15, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@weltenwort
Copy link
Copy Markdown
Member Author

@elasticmachine update branch

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@weltenwort weltenwort changed the title [7.x] [Logs UI] Add ML job status callouts to results page (#47642) [7.x] [Logs UI] Add ML job status callouts to results page (#4… Oct 16, 2019
@weltenwort weltenwort merged commit 4cd02c2 into elastic:7.x Oct 16, 2019
@weltenwort weltenwort deleted the backport/7.x/pr-47642 branch October 16, 2019 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants