Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
249ff06
[ML] Adding new job wizards services (#40718)
jgowdyelastic Jul 10, 2019
35a4dc5
[ML] New job wizards UI (#40748)
jgowdyelastic Jul 12, 2019
b214c0a
Merge branch 'master' into feature-new-ml-job-wizards-new
jgowdyelastic Jul 12, 2019
23d41d9
[ML] Adding created_by to job (#41015)
jgowdyelastic Jul 12, 2019
b194525
[ML] Adding json preview (#41078)
jgowdyelastic Jul 15, 2019
bbd1a09
[ML] Fixing view results button (#41077)
jgowdyelastic Jul 15, 2019
1672593
[ML] Adding generic custom settings functions to job creator (#41046)
jgowdyelastic Jul 15, 2019
27660b0
Merge branch 'master' into feature-new-ml-job-wizards-new
jgowdyelastic Jul 15, 2019
fbb667b
Merge branch 'feature-new-ml-job-wizards-new' of github.com:elastic/k…
jgowdyelastic Jul 15, 2019
645cd3b
Merge branch 'master' into feature-new-ml-job-wizards-new
jgowdyelastic Jul 17, 2019
3b7c9e4
[ML] Adding advanced section to job details step (#41157)
jgowdyelastic Jul 17, 2019
fce3b7d
Merge branch 'master' into feature-new-ml-job-wizards-new
jgowdyelastic Jul 17, 2019
511a71f
Merge branch 'master' into feature-new-ml-job-wizards-new
jgowdyelastic Jul 17, 2019
cda8a70
[ML] Adding additional settings section to job details step (#41339)
jgowdyelastic Jul 17, 2019
6a668c7
Merge branch 'master' into feature-new-ml-job-wizards-new
jgowdyelastic Jul 18, 2019
847c10e
Merge branch 'feature-new-ml-job-wizards-new' of github.com:elastic/k…
jgowdyelastic Jul 18, 2019
00962d6
Merge branch 'master' into feature-new-ml-job-wizards-new
jgowdyelastic Jul 19, 2019
8538437
[ML] Adding basic job validation (#41459)
jgowdyelastic Jul 19, 2019
e413358
Merge branch 'master' into feature-new-ml-job-wizards-new
jgowdyelastic Jul 20, 2019
9cc7110
[ML] Adding advanced job validation (#41634)
jgowdyelastic Jul 22, 2019
9d751f6
Merge branch 'master' into feature-new-ml-job-wizards-new
jgowdyelastic Jul 23, 2019
fc77077
[ML] Changing wizard layout (#41802)
jgowdyelastic Jul 25, 2019
4aa65ed
resolving conflicts
jgowdyelastic Jul 25, 2019
91eb6f2
Merge branch 'master' into feature-new-ml-job-wizards-new
jgowdyelastic Jul 26, 2019
b9797d6
[ML] Adding date picker to time range step (#41978)
jgowdyelastic Jul 26, 2019
c1d162c
Merge branch 'master' into feature-new-ml-job-wizards-new
jgowdyelastic Jul 29, 2019
74ecc33
[ML] Displaying job creation errors (#42165)
jgowdyelastic Jul 30, 2019
357c8c7
Merge branch 'master' into feature-new-ml-job-wizards-new
jgowdyelastic Jul 30, 2019
69b43b9
Merge branch 'master' into feature-new-ml-job-wizards-new
jgowdyelastic Jul 30, 2019
67dfe56
Merge branch 'master' into feature-new-ml-job-wizards-new
jgowdyelastic Jul 31, 2019
ebf38fc
[ML] Updating index pattern type (#42269)
jgowdyelastic Jul 31, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions x-pack/legacy/plugins/ml/common/constants/aggregation_types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* 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 ML_JOB_AGGREGATION {
COUNT = 'count',
HIGH_COUNT = 'high_count',
LOW_COUNT = 'low_count',
MEAN = 'mean',
HIGH_MEAN = 'high_mean',
LOW_MEAN = 'low_mean',
SUM = 'sum',
HIGH_SUM = 'high_sum',
LOW_SUM = 'low_sum',
MEDIAN = 'median',
HIGH_MEDIAN = 'high_median',
LOW_MEDIAN = 'low_median',
MIN = 'min',
MAX = 'max',
DISTINCT_COUNT = 'distinct_count',
}

export enum KIBANA_AGGREGATION {
COUNT = 'count',
AVG = 'avg',
MAX = 'max',
MIN = 'min',
SUM = 'sum',
MEDIAN = 'median',
CARDINALITY = 'cardinality',
}

export enum ES_AGGREGATION {
COUNT = 'count',
AVG = 'avg',
MAX = 'max',
MIN = 'min',
SUM = 'sum',
PERCENTILES = 'percentiles',
CARDINALITY = 'cardinality',
}
22 changes: 22 additions & 0 deletions x-pack/legacy/plugins/ml/common/constants/anomalies.ts
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,
}
32 changes: 0 additions & 32 deletions x-pack/legacy/plugins/ml/common/constants/states.js

This file was deleted.

29 changes: 29 additions & 0 deletions x-pack/legacy/plugins/ml/common/constants/states.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* 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 DATAFEED_STATE {
STARTED = 'started',
STARTING = 'starting',
STOPPED = 'stopped',
STOPPING = 'stopping',
DELETED = 'deleted',
}

export enum FORECAST_REQUEST_STATE {
FAILED = 'failed',
FINISHED = 'finished',
SCHEDULED = 'scheduled',
STARTED = 'started',
}

export enum JOB_STATE {
CLOSED = 'closed',
CLOSING = 'closing',
FAILED = 'failed',
OPENED = 'opened',
OPENING = 'opening',
DELETED = 'deleted',
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@
* you may not use this file except in compliance with the Elastic License.
*/




export const VALIDATION_STATUS = {
ERROR: 'error',
INFO: 'info',
SUCCESS: 'success',
WARNING: 'warning'
};
export enum VALIDATION_STATUS {
ERROR = 'error',
INFO = 'info',
SUCCESS = 'success',
WARNING = 'warning',
}

export const SKIP_BUCKET_SPAN_ESTIMATION = true;

Expand Down
61 changes: 61 additions & 0 deletions x-pack/legacy/plugins/ml/common/types/fields.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/*
* 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 { ES_FIELD_TYPES } from '../../common/constants/field_types';
import { ML_JOB_AGGREGATION } from '../../common/constants/aggregation_types';

export const EVENT_RATE_FIELD_ID = '__ml_event_rate_count__';

export type FieldId = string;
export type AggId = ML_JOB_AGGREGATION;
export type SplitField = Field | null;
export type DslName = string;

export interface Field {
id: FieldId;
name: string;
type: ES_FIELD_TYPES;
aggregatable: boolean;
aggIds?: AggId[];
aggs?: Aggregation[];
}

export interface Aggregation {
id: AggId;
title: string;
kibanaName: string;
dslName: DslName;
type: string;
mlModelPlotAgg: {
min: string;
max: string;
};
fieldIds?: FieldId[];
fields?: Field[];
}

export interface NewJobCaps {
fields: Field[];
aggs: Aggregation[];
}

export interface AggFieldPair {
agg: Aggregation;
field: Field;
by?: {
field: SplitField;
value: string | null;
};
}

export interface AggFieldNamePair {
agg: string;
field: string;
by?: {
field: string | null;
value: string | null;
};
}
9 changes: 9 additions & 0 deletions x-pack/legacy/plugins/ml/common/types/kibana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,13 @@
* you may not use this file except in compliance with the Elastic License.
*/

// custom edits or fixes for default kibana types which are incomplete

export type IndexPatternTitle = string;

export type callWithRequestType = (action: string, params?: any) => Promise<any>;

export interface Route {
id: string;
k7Breadcrumbs: () => any;
}
11 changes: 11 additions & 0 deletions x-pack/legacy/plugins/ml/common/util/anomaly_utils.d.ts
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;
Loading