kibana/x-pack/packages/ml/anomaly_utils
Melissa Alvarez ee34012cd9
[ML] Anomaly Detection: Add single metric viewer embeddable for dashboards (#175857)
## Summary

Related issue to [add ability to insert "Single Metric Viewer" into a
dashboard](https://github.com/elastic/kibana/issues/173555)

This PR adds the single metric viewer as an embeddable that can be added
to dashboards.

### NOTE FOR TESTING:

This PR relies on the SMV fix for 'metric' jobs
https://github.com/elastic/kibana/pull/176354
If that fix has not been merged, you will need to find
`getAnomalyRecordsSchema` definition and add `functionDescription:
schema.maybe(schema.nullable(schema.string())),` to it for local
testing.

### Screenshots of feature

<img width="698" alt="image"
src="425e701a-3c9d-4a82-bf2e-1db5b3689165">

<img width="1193" alt="image"
src="e941ec1c-14f6-4723-b80c-71124f617dc9">

<img width="1209" alt="image"
src="dddd1dde-844c-47ae-ba94-61de5301746f">

<img width="1214" alt="image"
src="39439b4f-d296-4f3d-bdc9-4922553af6fa">


### Checklist

Delete any items that are not applicable to this PR.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2024-02-08 12:32:25 -07:00
..
aggregation_types.ts
anomaly_severity.ts
anomaly_severity_types.ts
anomaly_threshold.ts
anomaly_utils.test.ts
anomaly_utils.ts [ML] Anomaly Detection: Add single metric viewer embeddable for dashboards (#175857) 2024-02-08 12:32:25 -07:00
constants.ts
custom_urls.ts [ML] Data Frame Analytics: Allow interval time range selection in custom URLs (#159874) 2023-06-21 09:55:01 -06:00
detector_rule.ts
es_client.ts
field_types.ts [ML] Fix Data visualizer/ML field stats and Data Frame Analytics should exclude _tier field (#172223) 2023-12-04 10:46:31 -06:00
fields.ts
get_formatted_severity_score.ts
get_severity.test.ts
get_severity.ts
get_severity_color.test.ts
get_severity_color.ts
get_severity_type.ts
index.ts
jest.config.js
kibana.jsonc
package.json flag more packages without side effects (#173602) 2023-12-20 13:17:18 +01:00
README.md
severity_colors.ts
tsconfig.json
types.ts

@kbn/ml-anomaly-utils

Utility functions, constants and types for Machine Learning's Anomaly Detection.