Backports the following commits to 6.7:
- [Infra UI] Adapt settings ui to saved object version type change (#30082) (#29622)
Caused by backport of #29906 to `6.x`.
* [7.0] Updates EUI to include date picker types (#31937)
* Fixed a simple argument bug and removed infra date picker EUI types
* Fixes for EUI date picker types
* Updates EUI to 6.10.4 to bring in date picker types, adds react-datepicker types as a necessary peer dep
* Updates moment imports to import from moment-timezone to avoid type collisions
* Syncs version for react-datepicker types between x-pack and kibana root
* Fixes query bar type issue with eui super date picker
* Revert "[Infra UI] Clean up Docker and Kubernetes fields for ECS (#31175)"
This reverts commit cb3dad1317.
* Revert "[Infra UI] Fixing group by labels by fixing the field names (post ECS migration) (#30416) (#31012)"
This reverts commit 6bd74e0abd.
* Revert "[Infra UI] ECS Migration (#28205) (#29965)"
This reverts commit fe9748583e.
* Fixing tests
* Fixing tests
* Adding test data for docker and some basic sanity checks to ensure ids and names work correctly with real data
* updating fields
* Migrate to ESC event.dataset
* Migragte fields to ECS fields
* renaming variable
* Reverting back to host.name
* Changing from Top Hits to Terms Agg for getting node name; change host.name back to host.hostname for name.
* Changing back to host.name
* Moving from using the document source to an aggregation for node name
* Updating tests with new data format and data.
* removing unused fields
* adding test data for docker 6.6.0
* Adding docker tests for 6.6.0
* Fixing jest tests
* Fixing tests
* Adding the most critical line of code in the entire project
* Fix ECS-compatible apache rules and restore old ones
* Fix ECS-compatible nginx rules and restore old ones
* Add tests for apache2 in ECS and pre-ECS format
* Add tests for nginx in ECS and pre-ECS format
* removing console.log
* Fixing tests
This adds a configuration UI to change various properties of an infrastructure data source. The properties that can be currently changed are:
* name
* index pattern for metrics
* index pattern for logs
* fields like the timestamp, container/host/pod identification
It is meant as a basis for providing configurability for other source properties like outgoing links and formatting rules in the future.
* Use metric_time prefix for metric_time actions
* Add refetch capabilities to with_metrics
* Pass through refetch to index
* Add no data message and refetch button to metrics/index
Next stage: Extract into shared component between metrics and waffle map
* Remove "refetching" and just use "loading"
No need for the explictness, just reuse the loading state, as there's no value to differentiating refetching vs loading here
* Add no_data component
* Amend for Prettier
* Use no_data component
* Change naming to better reflect current components
* Introduce notion of two empty states: no indices and no data
Also changes nodes_overview and logs to use moved component
* Add no_data functionality
* Remove metrics specific no data component, use the new shared component
* Change import order
* Use no_data component in nodes_overview
* Refactor logs to use shared no data component
* Import intl
* Revert testing value
* Pass handler correctly to avoid circular references
* Satisfy type check
* Remove one last unused component
* Addding initial table implimentation
* Moving waffle map to seperate component; adding contextual menu to nodes; adding filter to groups; adding pagination; adding sorting
* Fixing EUI types for EuiInMemoryTable to work for EVERYONE
* Adding server plugin for tslint for VIM; Fixing tests
* Adding the view switcher
* removing dependency
* updating yarn.lock
* Change padding to use EUI rules
* Rename waffle/index to nodes_overview; move table to nodes_overview
* Adding missed files in last commit
* Adding textOnly to the columns that need special truncation because they are buttons
* Fixed an error in the merge
* Fixing merge issues
* Adding flyout to log viewer
* Adding filtering
* Fixing typescript errors
* Adding a test for graphql; fixing test data for 7.0.0
* Adding terminate_after:1 to logItem request
* fixing test data
* Switching back to old data
* Fixing data for tests
* Adding i18n translations
* changing label from add to set
* Make flyout call more robust; fixing typings
* Adding loading screen to flyout
* Fixing linting errors
* Update x-pack/plugins/infra/public/components/logging/log_flyout.tsx
Co-Authored-By: simianhacker <chris@chriscowan.us>
* Fixing visible mis-spelling
* Fixing types
* Change withLogFlyout to be conditional; Add icon instead of onClick for flyout
* Adding dark mode support
* Adding user-select:none to icon div
* Removing remnants of a failed experiment
* Adding aria-label to view details button
* Fixing padding on date element
* Removing unused variable that somehow got past the linters
* Fixing empty_kibana
* Fixing data for infra
* Fixing merge weirdness
* [Infra UI] Add Support for Grouping By Custom Field
* fixiing typescript errors
* Serializing custom options to url so they persist accross reloads
* Fixing more errors
* removing label; moving custom field to top of menu
* fixing typescript error
* Adding intl formatMessage to strings