Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Sep 28, 2023
1 parent 6406c62 commit 0fef89e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
* 2.0.
*/

export const significantTerms = [
import type { SignificantTerm } from '@kbn/ml-agg-utils';

export const significantTerms: SignificantTerm[] = [
{
fieldName: 'user',
fieldValue: 'Peter',
Expand All @@ -16,6 +18,7 @@ export const significantTerms = [
score: 47.38899434932384,
pValue: 2.62555579103777e-21,
normalizedScore: 0.8328439168064725,
type: 'keyword',
},
{
fieldName: 'response_code',
Expand All @@ -27,6 +30,7 @@ export const significantTerms = [
score: 26.347710713220195,
pValue: 3.6085657805889595e-12,
normalizedScore: 0.7809229492301661,
type: 'keyword',
},
{
fieldName: 'url',
Expand All @@ -38,6 +42,7 @@ export const significantTerms = [
score: 4.631197208465419,
pValue: 0.00974308761016614,
normalizedScore: 0.12006631193078789,
type: 'keyword',
},
{
fieldName: 'url',
Expand All @@ -49,5 +54,6 @@ export const significantTerms = [
score: 4.359614926663956,
pValue: 0.012783309213417932,
normalizedScore: 0.07472703283204607,
type: 'keyword',
},
];
1 change: 1 addition & 0 deletions x-pack/plugins/aiops/common/api/stream_reducer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ describe('streamReducer', () => {
score: 0.1,
pValue: 0.01,
normalizedScore: 0.123,
type: 'keyword',
},
])
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const selectedSignificantTermMock: SignificantTerm = {
score: 708.3964185322641,
total_bg_count: 179657,
total_doc_count: 114011,
type: 'keyword',
};

const selectedGroupMock: GroupTableItem = {
Expand Down

0 comments on commit 0fef89e

Please sign in to comment.