kibana/x-pack/test
Frank Hassanabad af228f0f20
[Security Solutions] (Phase 1) Adds an application cache called metrics entities and integrates it within Security Solutions behind a feature flag (#96446)
## Summary

Phase 1 of a multi-phase cautious approach for adding an experimental application cache for Kibana solutions called `metric_entities` and integrates it within Security Solutions.

Phase 1 is putting experimental support into the application without breaking existing features. Lots of TODO's, conversations and a possible RFC from phase 1 to phase 2 approach. Some features are missing, but for phase 1 the general idea and code is all there.

To enable this first phase after checking out the branch add this to your `kibana.dev.yml`

```yml
xpack.metricsEntities.enabled: true
xpack.securitySolution.enableExperimental: ['metricsEntitiesEnabled']
```

Then go into Stack Management -> Advanced Settings (Under Security Solutions) and set the enabled to true like so:
<img width="1229" alt="Screen Shot 2021-04-08 at 2 21 02 PM" src="https://user-images.githubusercontent.com/1151048/114091276-b3cbb700-9875-11eb-9083-5c1d91dd20ed.png">

Next go to the security_solutions page and you will see it being activated and you will have these transforms running if you look under stack management:
<img width="1710" alt="Screen Shot 2021-04-29 at 2 00 27 PM" src="https://user-images.githubusercontent.com/1151048/116611174-4a2e4e00-a8f3-11eb-9e15-55cb504dfb2a.png">

On the hosts page, network, page, etc... You can see them being activated when you have no query/filter and you click on request:
<img width="1405" alt="Screen Shot 2021-04-29 at 2 01 28 PM" src="https://user-images.githubusercontent.com/1151048/116611274-6a5e0d00-a8f3-11eb-9998-9f5b3d1c5c63.png">

You will see in the request the index patterns all starting with `estc_xyz*`

### Checklist

Delete any items that are not applicable to this PR.

- [x] 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/master/packages/kbn-i18n/README.md)

We have lots of TODO's but no concrete docs with this just yet.
- [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials

Behind a feature flag and this isn't there yet.
- [ ] [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
2021-04-30 12:36:06 -06:00
..
accessibility [Upgrade Assistant] Support Kibana deprecations (#97159) 2021-04-30 09:03:44 -04:00
alerting_api_integration [actions] adds config allowing per-host networking options (#96630) 2021-04-28 15:26:47 -04:00
api_integration [TSVB] Timeseries Drop last bucket set default to false (#97257) 2021-04-30 11:48:10 +03:00
api_integration_basic
apm_api_integration [APM] add comparison to Instances latency distribution (#97710) 2021-04-21 16:47:03 -04:00
banners_functional
case_api_integration [Connectors][API] Updated connectors with isMissingSecrets flag (#98223) 2021-04-27 14:14:01 -07:00
common
detection_engine_api_integration [Security Solution][Detections] Fix flaky threshold API tests (#97768) 2021-04-21 16:13:15 -04:00
encrypted_saved_objects_api_integration
endpoint_api_integration_no_ingest
examples [Search] enable fun-ctional tests (#97398) 2021-04-19 12:21:50 +03:00
fleet_api_integration Make security rules optional (revert #97191) (#98854) 2021-04-29 19:59:52 -06:00
fleet_functional
functional improve type safety for integration test helpers (#98731) 2021-04-30 05:31:17 -04:00
functional_basic
functional_cors improve type safety for integration test helpers (#98731) 2021-04-30 05:31:17 -04:00
functional_embedded
functional_enterprise_search
functional_vis_wizard
functional_with_es_ssl [ML] Fix alerting rule preview (#98907) 2021-04-30 14:03:05 -04:00
licensing_plugin skip flaky suite (#53575) 2021-04-21 13:38:14 +01:00
lists_api_integration
load
observability_api_integration
plugin_api_integration
plugin_api_perf
plugin_functional
reporting_api_integration [Reporting] Kibana Application Privileges for Reporting (#94966) 2021-04-20 20:44:24 -07:00
reporting_functional [Reporting] Kibana Application Privileges for Reporting (#94966) 2021-04-20 20:44:24 -07:00
saved_object_api_integration
saved_object_tagging
saved_objects_field_count
search_sessions_integration [Discover] Revert default grid back to legacy (#98508) 2021-04-30 10:29:41 +02:00
security_api_integration improve type safety for integration test helpers (#98731) 2021-04-30 05:31:17 -04:00
security_functional Handle 401 Unauthorized errors in a more user-friendly way (#94927) 2021-04-27 19:09:54 +02:00
security_solution_cypress
security_solution_endpoint [Security][Fleet] Install the security_detection_engine package automatically (#97191) 2021-04-20 13:07:11 -04:00
security_solution_endpoint_api_int [Security][Fleet] Install the security_detection_engine package automatically (#97191) 2021-04-20 13:07:11 -04:00
security_solution_ftr/page_objects/detections
spaces_api_integration
stack_functional_integration
ui_capabilities
upgrade
upgrade_assistant_integration
usage_collection
visual_regression
tsconfig.json [Security Solutions] (Phase 1) Adds an application cache called metrics entities and integrates it within Security Solutions behind a feature flag (#96446) 2021-04-30 12:36:06 -06:00