-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Latency percentile labels and instances table support (#91758)
* Add "(avg.)" to dependencies table column label. (This one is always average.) * Add latency aggregation type support to the instances table. * Make the memory usage column a bit wider (it was cut off.)
- Loading branch information
Showing
11 changed files
with
94 additions
and
52 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
x-pack/plugins/apm/public/components/app/service_overview/get_latency_column_label.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,38 @@ | ||
/* | ||
* 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'; | ||
import { LatencyAggregationType } from '../../../../common/latency_aggregation_types'; | ||
|
||
export function getLatencyColumnLabel( | ||
latencyAggregationType?: LatencyAggregationType | ||
) { | ||
switch (latencyAggregationType) { | ||
case LatencyAggregationType.avg: | ||
return i18n.translate('xpack.apm.serviceOverview.latencyColumnAvgLabel', { | ||
defaultMessage: 'Latency (avg.)', | ||
}); | ||
|
||
case LatencyAggregationType.p95: | ||
return i18n.translate('xpack.apm.serviceOverview.latencyColumnP95Label', { | ||
defaultMessage: 'Latency (95th)', | ||
}); | ||
|
||
case LatencyAggregationType.p99: | ||
return i18n.translate('xpack.apm.serviceOverview.latencyColumnP99Label', { | ||
defaultMessage: 'Latency (99th)', | ||
}); | ||
|
||
default: | ||
return i18n.translate( | ||
'xpack.apm.serviceOverview.latencyColumnDefaultLabel', | ||
{ | ||
defaultMessage: 'Latency', | ||
} | ||
); | ||
} | ||
} |
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
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
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
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
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
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
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
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
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
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