-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Replace APM error rate table with failed transactions correlatio…
…ns (#108441) (#109000) * [ML] Refactor with new table * [ML] Fix types, rename var * [ML] Remove duplicate action columns * [ML] Finish renaming for consistency * [ML] Add failure correlations help popover * [ML] Add failure correlations help popover * [ML] Extend correlation help * Update message * [ML] Delete old legacy correlations pages * [ML] Address comments, rename * [ML] Revert deletion of latency_correlations.tsx * [ML] Add unit test for getFailedTransactionsCorrelationImpactLabel * [ML] Rename & fix types * [ML] Fix logic to note include 0.02 threshold * [ML] Refactor to use state handler * [ML] Fix hardcoded index, columns, popover * [ML] Replace failed transaction tab * [ML] Fix unused translations * [ML] Delete empty files * [ML] Move beta badge to be inside tab content Co-authored-by: lcawl <[email protected]> Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Quynh Nguyen <[email protected]> Co-authored-by: lcawl <[email protected]>
- Loading branch information
1 parent
62cad9b
commit b6d14af
Showing
22 changed files
with
1,274 additions
and
506 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
x-pack/plugins/apm/common/search_strategies/failure_correlations/constants.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,32 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
import { i18n } from '@kbn/i18n'; | ||
|
||
export const FAILED_TRANSACTIONS_CORRELATION_SEARCH_STRATEGY = | ||
'apmFailedTransactionsCorrelationsSearchStrategy'; | ||
|
||
export const FAILED_TRANSACTIONS_IMPACT_THRESHOLD = { | ||
HIGH: i18n.translate( | ||
'xpack.apm.correlations.failedTransactions.highImpactText', | ||
{ | ||
defaultMessage: 'High', | ||
} | ||
), | ||
MEDIUM: i18n.translate( | ||
'xpack.apm.correlations.failedTransactions.mediumImpactText', | ||
{ | ||
defaultMessage: 'Medium', | ||
} | ||
), | ||
LOW: i18n.translate( | ||
'xpack.apm.correlations.failedTransactions.lowImpactText', | ||
{ | ||
defaultMessage: 'Low', | ||
} | ||
), | ||
} as const; |
25 changes: 25 additions & 0 deletions
25
x-pack/plugins/apm/common/search_strategies/failure_correlations/types.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. | ||
*/ | ||
|
||
import { FAILED_TRANSACTIONS_IMPACT_THRESHOLD } from './constants'; | ||
|
||
export interface FailedTransactionsCorrelationValue { | ||
key: string; | ||
doc_count: number; | ||
bg_count: number; | ||
score: number; | ||
pValue: number | null; | ||
fieldName: string; | ||
fieldValue: string; | ||
} | ||
|
||
export type FailureCorrelationImpactThreshold = typeof FAILED_TRANSACTIONS_IMPACT_THRESHOLD[keyof typeof FAILED_TRANSACTIONS_IMPACT_THRESHOLD]; | ||
|
||
export interface CorrelationsTerm { | ||
fieldName: string; | ||
fieldValue: string; | ||
} |
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
Oops, something went wrong.