[7.x] [APM] Fix incorrect table column header (95th instead of avg) (#88188) (#88288)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Søren Louv-Jansen 2021-01-14 13:42:41 +01:00 committed by GitHub
parent 30fcf88372
commit 52710be7ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,30 +55,29 @@ const DEFAULT_SORT = {
function getLatencyAggregationTypeLabel(latencyAggregationType?: string) {
switch (latencyAggregationType) {
case 'avg': {
i18n.translate(
case 'avg':
return i18n.translate(
'xpack.apm.serviceOverview.transactionsTableColumnLatency.avg',
{
defaultMessage: 'Latency (avg.)',
}
);
}
case 'p95': {
case 'p95':
return i18n.translate(
'xpack.apm.serviceOverview.transactionsTableColumnLatency.p95',
{
defaultMessage: 'Latency (95th)',
}
);
}
case 'p99': {
case 'p99':
return i18n.translate(
'xpack.apm.serviceOverview.transactionsTableColumnLatency.p99',
{
defaultMessage: 'Latency (99th)',
}
);
}
}
}