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

This commit is contained in:
Søren Louv-Jansen 2021-01-13 21:01:44 +01:00 committed by GitHub
parent 5181d49c05
commit d1b348e621
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)',
}
);
}
}
}