-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[ML] New job wizards UI #40748
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
jgowdyelastic
merged 15 commits into
elastic:feature-new-ml-job-wizards-new
from
jgowdyelastic:new-job-wizards-ui
Jul 12, 2019
Merged
[ML] New job wizards UI #40748
Changes from 10 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
dc9775b
[ML] New job wizards UI
jgowdyelastic 16b1c02
small refactor
jgowdyelastic 3e9edbb
fixing type problems
jgowdyelastic 8b82370
updating snapshots
jgowdyelastic 7aa7173
updating translations ids for temporary new job links
jgowdyelastic d1f77c2
updating translation ids
jgowdyelastic 9ee2442
fixing population by field selection
jgowdyelastic 693b5b1
small refactor to by field select
jgowdyelastic fbde12b
moving component descriptions to separate files
jgowdyelastic 6dd0ce6
moving chart grid component into own file
jgowdyelastic 6ab2970
fixing event rate count detector
jgowdyelastic c084e88
fixing decimal place rounding
jgowdyelastic c11cbef
changes based on review
jgowdyelastic 9f91250
more changes based on review
jgowdyelastic f78e4b7
fixing test
jgowdyelastic 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| /* | ||
| * 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 enum ANOMALY_SEVERITY { | ||
| CRITICAL = 'critical', | ||
| MAJOR = 'major', | ||
| MINOR = 'minor', | ||
| WARNING = 'warning', | ||
| LOW = 'low', | ||
| UNKNOWN = 'unknown', | ||
| } | ||
|
|
||
| export enum ANOMALY_THRESHOLD { | ||
| CRITICAL = 75, | ||
| MAJOR = 50, | ||
| MINOR = 25, | ||
| WARNING = 3, | ||
| LOW = 0, | ||
| } |
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 |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| /* | ||
| * 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 { ANOMALY_SEVERITY } from '../constants/anomalies'; | ||
|
|
||
| export function getSeverity(normalizedScore: number): string; | ||
| export function getSeverityType(normalizedScore: number): ANOMALY_SEVERITY; | ||
| export function getSeverityColor(normalizedScore: number): string; |
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 |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| /* | ||
| * 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 function tabColor(name: string): string; |
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,13 @@ | ||
| /* | ||
| * 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 function calculateDatafeedFrequencyDefaultSeconds(bucketSpanSeconds: number): number; | ||
|
|
||
| export function isTimeSeriesViewJob(job: any): boolean; | ||
|
|
||
| export const ML_MEDIAN_PERCENTS: number; | ||
|
|
||
| export const ML_DATA_PREVIEW_COUNT: number; |
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,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 function renderTemplate(str: string, data: string): string; | ||
| export function stringHash(str: string): string; |
File renamed without changes.
File renamed without changes.
35 changes: 35 additions & 0 deletions
35
...legacy/plugins/ml/public/components/full_time_range_selector/full_time_range_selector.tsx
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,35 @@ | ||
| /* | ||
| * 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, { FC } from 'react'; | ||
|
|
||
| import { FormattedMessage } from '@kbn/i18n/react'; | ||
| import { Query } from 'src/legacy/core_plugins/data/public'; | ||
| import { IndexPattern } from 'ui/index_patterns'; | ||
| import { EuiButton } from '@elastic/eui'; | ||
| import { setFullTimeRange } from './full_time_range_selector_service'; | ||
|
|
||
| interface Props { | ||
| indexPattern: IndexPattern; | ||
| query: Query; | ||
| disabled: boolean; | ||
| } | ||
|
|
||
| // Component for rendering a button which automatically sets the range of the time filter | ||
| // to the time range of data in the index(es) mapped to the supplied Kibana index pattern or query. | ||
| export const FullTimeRangeSelector: FC<Props> = ({ indexPattern, query, disabled }) => { | ||
| return ( | ||
| <EuiButton fill isDisabled={disabled} onClick={() => setFullTimeRange(indexPattern, query)}> | ||
| <FormattedMessage | ||
| id="xpack.ml.fullTimeRangeSelector.useFullDataButtonLabel" | ||
| defaultMessage="Use full {indexPatternTitle} data" | ||
| values={{ | ||
| indexPatternTitle: indexPattern.title, | ||
| }} | ||
| /> | ||
| </EuiButton> | ||
| ); | ||
| }; |
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
17 changes: 17 additions & 0 deletions
17
x-pack/legacy/plugins/ml/public/jobs/new_job/utils/new_job_utils.d.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,17 @@ | ||
| /* | ||
| * 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 { SavedSearch } from 'src/legacy/core_plugins/kibana/public/discover/types'; | ||
| import { IndexPatternWithType, IndexPatternTitle } from '../../../../common/types/kibana'; | ||
|
|
||
| export interface SearchItems { | ||
| indexPattern: IndexPatternWithType; | ||
| savedSearch: SavedSearch; | ||
| query: any; | ||
| combinedQuery: any; | ||
| } | ||
|
|
||
| export function SearchItemsProvider($route: Record<string, any>, config: any): () => SearchItems; |
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.