Skip to content

Commit

Permalink
[ML] Display typical values for lat_long anomalies (#18715) (#18716)
Browse files Browse the repository at this point in the history
  • Loading branch information
peteharverson committed May 2, 2018
1 parent ede1d86 commit c651831
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/ml/public/util/__tests__/anomaly_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ describe('ML - anomaly utils', () => {
it('returns true for expected function descriptions', () => {
expect(showTypicalForFunction('count')).to.be(true);
expect(showTypicalForFunction('distinct_count')).to.be(true);
expect(showTypicalForFunction('lat_long')).to.be(true);
expect(showTypicalForFunction('mean')).to.be(true);
expect(showTypicalForFunction('max')).to.be(true);
expect(showTypicalForFunction('min')).to.be(true);
Expand All @@ -276,7 +277,6 @@ describe('ML - anomaly utils', () => {
});

it('returns false for expected function descriptions', () => {
expect(showTypicalForFunction('lat_long')).to.be(false);
expect(showTypicalForFunction('rare')).to.be(false);
});

Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/ml/public/util/anomaly_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const DISPLAY_ACTUAL_FUNCTIONS = ['count', 'distinct_count', 'lat_long', 'mean',
'median', 'varp', 'info_content', 'time'];

// List of function descriptions for which typical values from record level results should be displayed.
const DISPLAY_TYPICAL_FUNCTIONS = ['count', 'distinct_count', 'mean', 'max', 'min', 'sum',
const DISPLAY_TYPICAL_FUNCTIONS = ['count', 'distinct_count', 'lat_long', 'mean', 'max', 'min', 'sum',
'median', 'varp', 'info_content', 'time'];

// Returns a severity label (one of critical, major, minor, warning or unknown)
Expand Down

0 comments on commit c651831

Please sign in to comment.