-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Adds an About panel to the file data visualizer landing page (#2…
…4260) * [ML] Adds an About panel to the file data visualizer landing page * [ML] Remove unnecessary style from file data visualizer scss
- Loading branch information
1 parent
4b3ac1d
commit 890608d
Showing
7 changed files
with
144 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
@import 'results_view/index'; | ||
@import 'summary/index'; | ||
@import 'fields_stats/index'; | ||
@import 'about_panel/index'; |
6 changes: 6 additions & 0 deletions
6
x-pack/plugins/ml/public/file_datavisualizer/components/about_panel/_about_panel.scss
This file contains 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,6 @@ | ||
.file-datavisualizer-about-panel__icon { | ||
width: $euiSizeXL * 3; | ||
height: $euiSizeXL * 3; | ||
margin-left: $euiSizeXL; | ||
margin-right: $euiSizeL; | ||
} |
1 change: 1 addition & 0 deletions
1
x-pack/plugins/ml/public/file_datavisualizer/components/about_panel/_index.scss
This file contains 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 @@ | ||
@import 'about_panel' |
118 changes: 118 additions & 0 deletions
118
x-pack/plugins/ml/public/file_datavisualizer/components/about_panel/about_panel.js
This file contains 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,118 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
|
||
import React from 'react'; | ||
|
||
import { | ||
EuiFlexGroup, | ||
EuiFlexItem, | ||
EuiIcon, | ||
EuiLink, | ||
EuiSpacer, | ||
EuiPanel, | ||
EuiText, | ||
EuiTitle, | ||
} from '@elastic/eui'; | ||
|
||
export function AboutPanel() { | ||
|
||
return ( | ||
<EuiPanel paddingSize="l"> | ||
<EuiFlexGroup gutterSize="xl" alignItems="center"> | ||
<EuiFlexItem grow={false}> | ||
<EuiIcon size="xxl" type="addDataApp" className="file-datavisualizer-about-panel__icon" /> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiTitle size="m"> | ||
<h3> | ||
Visualize data from a log file | ||
</h3> | ||
</EuiTitle> | ||
<EuiSpacer size="s" /> | ||
<EuiText> | ||
<p> | ||
The Machine Learning Data Visualizer helps you understand the fields and metrics | ||
in a log file as preparation for further analysis. After analyzing the data in the | ||
file you can then choose to import the data into an elasticsearch index. | ||
</p> | ||
</EuiText> | ||
<EuiSpacer size="s" /> | ||
<EuiText> | ||
<p> | ||
Select the file to visualize using the button at the top of the page, | ||
and we will then attempt to analyze its structure. | ||
</p> | ||
</EuiText> | ||
<EuiSpacer size="s" /> | ||
<EuiText> | ||
<p> | ||
The log file formats we currently support are: | ||
</p> | ||
</EuiText> | ||
<EuiSpacer size="m" /> | ||
<EuiFlexGroup gutterSize="l"> | ||
<EuiFlexItem grow={false}> | ||
<EuiIcon size="l" type="document" /> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiText> | ||
<p> | ||
JSON | ||
</p> | ||
</EuiText> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
<EuiSpacer size="s" /> | ||
<EuiFlexGroup gutterSize="l"> | ||
<EuiFlexItem grow={false}> | ||
<EuiIcon size="l" type="document" /> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiText> | ||
<p> | ||
Delimited text files such as CSV and TSV | ||
</p> | ||
</EuiText> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
<EuiSpacer size="s" /> | ||
<EuiFlexGroup gutterSize="l"> | ||
<EuiFlexItem grow={false}> | ||
<EuiIcon size="l" type="document" /> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiText> | ||
<p> | ||
Log files consisting of semi-structured text with the timestamp in each message having a common format | ||
</p> | ||
</EuiText> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
<EuiSpacer size="m" /> | ||
<EuiText> | ||
<p> | ||
Files up to 100MB in size can be uploaded. | ||
</p> | ||
</EuiText> | ||
<EuiSpacer size="s" /> | ||
<EuiText> | ||
<p> | ||
This is an experimental feature. For any feedback please create an issue in | ||
<EuiLink | ||
href="https://github.com/elastic/kibana/issues/new" | ||
target="_blank" | ||
> | ||
GitHub | ||
</EuiLink>. | ||
</p> | ||
</EuiText> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
|
||
</EuiPanel> | ||
); | ||
} |
8 changes: 8 additions & 0 deletions
8
x-pack/plugins/ml/public/file_datavisualizer/components/about_panel/index.js
This file contains 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,8 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
|
||
export { AboutPanel } from './about_panel'; |
This file contains 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