mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-28 17:55:15 +02:00
feat: display aggregation mode automatically (#10696)
This commit is contained in:
parent
e0cdf6addd
commit
58c0076f22
@ -25,15 +25,7 @@ const getConfigDescription = (config: DisplayChartConfig): string => {
|
||||
|
||||
parts.push(`last ${config.timeRange}`);
|
||||
|
||||
if (config.aggregationMode === 'rps') {
|
||||
parts.push('rate per second');
|
||||
} else if (config.aggregationMode === 'count') {
|
||||
parts.push('count');
|
||||
} else if (config.aggregationMode === 'avg') {
|
||||
parts.push('average');
|
||||
} else if (config.aggregationMode === 'sum') {
|
||||
parts.push('sum');
|
||||
}
|
||||
parts.push(config.aggregationMode);
|
||||
|
||||
const labelCount = Object.keys(config.labelSelectors).length;
|
||||
if (labelCount > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user