-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Infrastructure UI] Replace Lens table with EUI table and own api #142871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
f309f35
remove lens, add snapshot api
neptunian 3b99bb5
merge
neptunian fc545f6
add no data
neptunian 26710d6
Add cpu type
jennypavlova 5a212ca
[WIP] Add eui basic table and columns
jennypavlova 4d47a82
[WIP] Add cpu cores and os
jennypavlova 20719b5
[WIP] Mapping data to the eui basic table format
jennypavlova 392e035
Add Memory Total
jennypavlova d1b432d
Refactor host mapping and add types
jennypavlova 72f9d8c
Scale up memory usage percentage
jennypavlova a20a278
Make os optional in the model
jennypavlova 5309f1f
Text cells formatting
jennypavlova b5e6432
Change os.type to os.name
jennypavlova b54de0e
Move snapshot nodes mapping to a hook and test it
jennypavlova 4153f3b
Add translation
jennypavlova 5ae30be
Add fixed range and cleanup
jennypavlova 13f8677
Merge branch 'main' into example-snapshot-table
jennypavlova 9ab9f8a
Fix diskLatency field name
jennypavlova 191a3d0
Merge branch 'main' into example-snapshot-table
jennypavlova 263ee4d
Remove not existing showQueryBar prop from SearchBar and set time ran…
jennypavlova 4ecda79
Merge branch 'main' into example-snapshot-table
jennypavlova f68a313
Use last path
jennypavlova 0d07ca1
Test last path change
jennypavlova e1f58f1
Type imports
jennypavlova 662c7ae
Change the way lastPath.os is set
jennypavlova a4bd9a5
Type import
jennypavlova d493a03
Merge branch 'main' into example-snapshot-table
jennypavlova 36a30da
Merge branch 'main' into example-snapshot-table
jennypavlova 1a29df3
Merge branch 'main' into example-snapshot-table
jennypavlova 3423b70
Merge branch 'main' into example-snapshot-table
jennypavlova File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
x-pack/plugins/infra/common/inventory_models/host/metrics/snapshot/cpu_cores.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License | ||
| * 2.0; you may not use this file except in compliance with the Elastic License | ||
| * 2.0. | ||
| */ | ||
|
|
||
| import { MetricsUIAggregation } from '../../../types'; | ||
|
|
||
| export const cpuCores: MetricsUIAggregation = { | ||
| cpuCores: { | ||
| max: { | ||
| field: 'system.cpu.cores', | ||
| }, | ||
| }, | ||
| }; |
28 changes: 28 additions & 0 deletions
28
x-pack/plugins/infra/common/inventory_models/host/metrics/snapshot/memory_total.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License | ||
| * 2.0; you may not use this file except in compliance with the Elastic License | ||
| * 2.0. | ||
| */ | ||
|
|
||
| import { MetricsUIAggregation } from '../../../types'; | ||
|
|
||
| export const memoryTotal: MetricsUIAggregation = { | ||
| memory_total: { | ||
| avg: { | ||
| field: 'system.memory.total', | ||
| }, | ||
| }, | ||
| memoryTotal: { | ||
| bucket_script: { | ||
| buckets_path: { | ||
| memoryTotal: 'memory_total', | ||
| }, | ||
| script: { | ||
| source: 'params.memoryTotal / 1000000', // Convert to MB | ||
| lang: 'painless', | ||
| }, | ||
| gap_policy: 'skip', | ||
| }, | ||
| }, | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,8 +15,7 @@ | |
| "triggersActionsUi", | ||
| "observability", | ||
| "ruleRegistry", | ||
| "unifiedSearch", | ||
| "lens" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we might want to leave this for now as we are thinking to use Lens Embeddables for other things. or we can remove it and just add it back later. |
||
| "unifiedSearch" | ||
| ], | ||
| "optionalPlugins": ["ml", "home", "embeddable", "osquery"], | ||
| "server": true, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.