-
Notifications
You must be signed in to change notification settings - Fork 8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
386 additions
and
277 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...pps/aiops/log_rate_analysis/test_data/__mocks__/analysis_groups_table_notextfield_gaps.ts
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,19 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export const analysisGroupsTableNotextfieldGaps = [ | ||
{ group: 'response_code: 500url: home.phpuser: Maryversion: v1.0.0', docCount: '47' }, | ||
{ group: 'response_code: 500url: home.phpuser: Paulversion: v1.0.0', docCount: '59' }, | ||
{ group: 'response_code: 500url: login.phpuser: Maryversion: v1.0.0', docCount: '35' }, | ||
{ group: 'response_code: 500url: login.phpuser: Paulversion: v1.0.0', docCount: '39' }, | ||
{ group: 'user: Peterurl: home.phpresponse_code: 200version: v1.0.0', docCount: '30' }, | ||
{ group: 'user: Peterurl: home.phpresponse_code: 404version: v1.0.0', docCount: '30' }, | ||
{ group: 'user: Peterurl: login.phpresponse_code: 200version: v1.0.0', docCount: '30' }, | ||
{ group: 'user: Peterurl: login.phpresponse_code: 404version: v1.0.0', docCount: '30' }, | ||
{ group: 'user: Peterurl: user.phpresponse_code: 200version: v1.0.0', docCount: '30' }, | ||
{ group: 'user: Peterurl: user.phpresponse_code: 404version: v1.0.0', docCount: '30' }, | ||
]; |
25 changes: 25 additions & 0 deletions
25
...s/aiops/log_rate_analysis/test_data/__mocks__/analysis_groups_table_notextfield_nogaps.ts
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,25 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export const analysisGroupsTableNotextfieldNogaps = [ | ||
{ | ||
group: 'response_code: 500url: home.php', | ||
docCount: '792', | ||
}, | ||
{ | ||
group: 'url: login.phpresponse_code: 500', | ||
docCount: '790', | ||
}, | ||
{ | ||
docCount: '636', | ||
group: 'user: Peterurl: home.php', | ||
}, | ||
{ | ||
docCount: '632', | ||
group: 'user: Peterurl: login.php', | ||
}, | ||
]; |
59 changes: 59 additions & 0 deletions
59
.../apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_groups_table_textfield_gaps.ts
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,59 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export const analysisGroupsTableTextfieldGaps = [ | ||
{ | ||
group: | ||
'message: an unexpected error occuredurl: home.phpuser: Maryresponse_code: 500version: v1.0.0', | ||
docCount: '29', | ||
}, | ||
{ | ||
group: | ||
'message: an unexpected error occuredurl: home.phpuser: Paulresponse_code: 500version: v1.0.0', | ||
docCount: '29', | ||
}, | ||
{ | ||
group: | ||
'message: an unexpected error occuredurl: login.phpuser: Paulresponse_code: 500version: v1.0.0', | ||
docCount: '29', | ||
}, | ||
{ | ||
group: | ||
'url: home.phpuser: Paulresponse_code: 500message: Paul [11/19/2022, 9:00:34 AM] "GET /home.php HTTP/1.1" 200version: v1.0.0', | ||
docCount: '30', | ||
}, | ||
{ | ||
group: | ||
'user: Peterresponse_code: 200url: home.phpmessage: Paul [11/19/2022, 9:00:34 AM] "GET /home.php HTTP/1.1" 200version: v1.0.0', | ||
docCount: '30', | ||
}, | ||
{ | ||
group: | ||
'user: Peterresponse_code: 200url: login.phpmessage: Paul [11/19/2022, 9:00:34 AM] "GET /home.php HTTP/1.1" 200version: v1.0.0', | ||
docCount: '30', | ||
}, | ||
{ | ||
group: | ||
'user: Peterresponse_code: 404url: home.phpmessage: Paul [11/19/2022, 9:00:34 AM] "GET /home.php HTTP/1.1" 200version: v1.0.0', | ||
docCount: '30', | ||
}, | ||
{ | ||
group: | ||
'user: Peterresponse_code: 404url: login.phpmessage: Paul [11/19/2022, 9:00:34 AM] "GET /home.php HTTP/1.1" 200version: v1.0.0', | ||
docCount: '30', | ||
}, | ||
{ | ||
group: | ||
'user: Peterurl: user.phpresponse_code: 200message: Paul [11/19/2022, 9:00:34 AM] "GET /home.php HTTP/1.1" 200version: v1.0.0', | ||
docCount: '30', | ||
}, | ||
{ | ||
group: | ||
'user: Peterurl: user.phpresponse_code: 404message: Paul [11/19/2022, 9:00:34 AM] "GET /home.php HTTP/1.1" 200version: v1.0.0', | ||
docCount: '30', | ||
}, | ||
]; |
25 changes: 25 additions & 0 deletions
25
...pps/aiops/log_rate_analysis/test_data/__mocks__/analysis_groups_table_textfield_nogaps.ts
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,25 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export const analysisGroupsTableTextfieldNogaps = [ | ||
{ | ||
group: 'message: an unexpected error occuredurl: home.phpresponse_code: 500', | ||
docCount: '634', | ||
}, | ||
{ | ||
group: 'message: an unexpected error occuredurl: login.phpresponse_code: 500', | ||
docCount: '632', | ||
}, | ||
{ | ||
docCount: '636', | ||
group: 'user: Peterurl: home.php', | ||
}, | ||
{ | ||
docCount: '632', | ||
group: 'user: Peterurl: login.php', | ||
}, | ||
]; |
37 changes: 37 additions & 0 deletions
37
...ional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_table_notextfield_gaps.ts
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,37 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export const analysisTableNotextfieldGaps = [ | ||
{ | ||
fieldName: 'response_code', | ||
fieldValue: '500', | ||
logRate: 'Chart type:bar chart', | ||
pValue: '1.00', | ||
impact: '', | ||
}, | ||
{ | ||
fieldName: 'url', | ||
fieldValue: 'home.php', | ||
logRate: 'Chart type:bar chart', | ||
pValue: '1.00', | ||
impact: '', | ||
}, | ||
{ | ||
fieldName: 'user', | ||
fieldValue: 'Paul', | ||
logRate: 'Chart type:bar chart', | ||
pValue: '1.00', | ||
impact: '', | ||
}, | ||
{ | ||
fieldName: 'version', | ||
fieldValue: 'v1.0.0', | ||
logRate: 'Chart type:bar chart', | ||
pValue: '1.00', | ||
impact: '', | ||
}, | ||
]; |
23 changes: 23 additions & 0 deletions
23
...nal/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_table_notextfield_nogaps.ts
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,23 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export const analysisTableNotextfieldNogaps = [ | ||
{ | ||
fieldName: 'url', | ||
fieldValue: 'home.php', | ||
impact: 'Low', | ||
logRate: 'Chart type:bar chart', | ||
pValue: '0.00974', | ||
}, | ||
{ | ||
fieldName: 'user', | ||
fieldValue: 'Peter', | ||
impact: 'High', | ||
logRate: 'Chart type:bar chart', | ||
pValue: '2.63e-21', | ||
}, | ||
]; |
44 changes: 44 additions & 0 deletions
44
...ctional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_table_textfield_gaps.ts
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,44 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export const analysisTableTextfieldGaps = [ | ||
{ | ||
fieldName: 'message', | ||
fieldValue: 'Paul [11/19/2022, 9:00:34 AM] "GET /home.php HTTP/1.1" 200', | ||
logRate: 'Chart type:bar chart', | ||
pValue: '1.00', | ||
impact: '', | ||
}, | ||
{ | ||
fieldName: 'response_code', | ||
fieldValue: '500', | ||
logRate: 'Chart type:bar chart', | ||
pValue: '1.00', | ||
impact: '', | ||
}, | ||
{ | ||
fieldName: 'url', | ||
fieldValue: 'home.php', | ||
logRate: 'Chart type:bar chart', | ||
pValue: '1.00', | ||
impact: '', | ||
}, | ||
{ | ||
fieldName: 'user', | ||
fieldValue: 'Paul', | ||
logRate: 'Chart type:bar chart', | ||
pValue: '1.00', | ||
impact: '', | ||
}, | ||
{ | ||
fieldName: 'version', | ||
fieldValue: 'v1.0.0', | ||
logRate: 'Chart type:bar chart', | ||
pValue: '1.00', | ||
impact: '', | ||
}, | ||
]; |
30 changes: 30 additions & 0 deletions
30
...ional/apps/aiops/log_rate_analysis/test_data/__mocks__/analysis_table_textfield_nogaps.ts
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,30 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export const analysisTableTextfieldNogaps = [ | ||
{ | ||
fieldName: 'message', | ||
fieldValue: 'an unexpected error occured', | ||
logRate: 'Chart type:bar chart', | ||
pValue: '0.00000100', | ||
impact: 'Medium', | ||
}, | ||
{ | ||
fieldName: 'response_code', | ||
fieldValue: '500', | ||
logRate: 'Chart type:bar chart', | ||
pValue: '3.61e-12', | ||
impact: 'High', | ||
}, | ||
{ | ||
fieldName: 'url', | ||
fieldValue: 'home.php', | ||
impact: 'Low', | ||
logRate: 'Chart type:bar chart', | ||
pValue: '0.00974', | ||
}, | ||
]; |
18 changes: 18 additions & 0 deletions
18
.../log_rate_analysis/test_data/__mocks__/filtered_analysis_groups_table_notextfield_gaps.ts
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,18 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export const filteredAnalysisGroupsTableNotextfieldGaps = [ | ||
{ group: 'url: home.phpresponse_code: 200version: v1.0.0', docCount: '46' }, | ||
{ group: 'url: home.phpresponse_code: 404version: v1.0.0', docCount: '63' }, | ||
{ group: 'url: home.phpresponse_code: 500version: v1.0.0', docCount: '106' }, | ||
{ group: 'url: login.phpresponse_code: 200version: v1.0.0', docCount: '35' }, | ||
{ group: 'url: login.phpresponse_code: 404version: v1.0.0', docCount: '40' }, | ||
{ group: 'url: login.phpresponse_code: 500version: v1.0.0', docCount: '74' }, | ||
{ group: 'url: user.phpresponse_code: 200version: v1.0.0', docCount: '40' }, | ||
{ group: 'url: user.phpresponse_code: 404version: v1.0.0', docCount: '51' }, | ||
{ group: 'url: user.phpresponse_code: 500version: v1.0.0', docCount: '41' }, | ||
]; |
11 changes: 11 additions & 0 deletions
11
...og_rate_analysis/test_data/__mocks__/filtered_analysis_groups_table_notextfield_nogaps.ts
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,11 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export const filteredAnalysisGroupsTableNotextfieldNogaps = [ | ||
{ group: '* url: home.phpresponse_code: 500', docCount: '792' }, | ||
{ group: '* url: login.phpresponse_code: 500', docCount: '790' }, | ||
]; |
57 changes: 57 additions & 0 deletions
57
...ps/log_rate_analysis/test_data/__mocks__/filtered_analysis_groups_table_textfield_gaps.ts
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,57 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export const filteredAnalysisGroupsTableTextfieldGaps = [ | ||
{ | ||
group: 'message: an unexpected error occuredurl: home.phpresponse_code: 500version: v1.0.0', | ||
docCount: '58', | ||
}, | ||
{ | ||
group: 'message: an unexpected error occuredurl: login.phpresponse_code: 500version: v1.0.0', | ||
docCount: '58', | ||
}, | ||
{ | ||
group: | ||
'response_code: 200url: home.phpmessage: Paul [11/19/2022, 9:00:34 AM] "GET /home.php HTTP/1.1" 200version: v1.0.0', | ||
docCount: '46', | ||
}, | ||
{ | ||
group: | ||
'response_code: 200url: login.phpmessage: Paul [11/19/2022, 9:00:34 AM] "GET /home.php HTTP/1.1" 200version: v1.0.0', | ||
docCount: '35', | ||
}, | ||
{ | ||
group: | ||
'response_code: 404url: home.phpmessage: Paul [11/19/2022, 9:00:34 AM] "GET /home.php HTTP/1.1" 200version: v1.0.0', | ||
docCount: '63', | ||
}, | ||
{ | ||
group: | ||
'response_code: 404url: login.phpmessage: Paul [11/19/2022, 9:00:34 AM] "GET /home.php HTTP/1.1" 200version: v1.0.0', | ||
docCount: '40', | ||
}, | ||
{ | ||
group: | ||
'url: home.phpresponse_code: 500message: Paul [11/19/2022, 9:00:34 AM] "GET /home.php HTTP/1.1" 200version: v1.0.0', | ||
docCount: '48', | ||
}, | ||
{ | ||
group: | ||
'url: user.phpresponse_code: 200message: Paul [11/19/2022, 9:00:34 AM] "GET /home.php HTTP/1.1" 200version: v1.0.0', | ||
docCount: '40', | ||
}, | ||
{ | ||
group: | ||
'url: user.phpresponse_code: 404message: Paul [11/19/2022, 9:00:34 AM] "GET /home.php HTTP/1.1" 200version: v1.0.0', | ||
docCount: '51', | ||
}, | ||
{ | ||
group: | ||
'url: user.phpresponse_code: 500message: Paul [11/19/2022, 9:00:34 AM] "GET /home.php HTTP/1.1" 200version: v1.0.0', | ||
docCount: '41', | ||
}, | ||
]; |
17 changes: 17 additions & 0 deletions
17
.../log_rate_analysis/test_data/__mocks__/filtered_analysis_groups_table_textfield_nogaps.ts
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,17 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export const filteredAnalysisGroupsTableTextfieldNogaps = [ | ||
{ | ||
group: '* url: home.phpmessage: an unexpected error occuredresponse_code: 500', | ||
docCount: '634', | ||
}, | ||
{ | ||
group: '* url: login.phpmessage: an unexpected error occuredresponse_code: 500', | ||
docCount: '632', | ||
}, | ||
]; |
Oops, something went wrong.