mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-24 17:51:14 +02:00
feat: histogram impact metric UI
This commit is contained in:
parent
63b072648a
commit
0d942411ac
@ -48,12 +48,7 @@ export const useChartFormState = ({
|
||||
Record<string, string[]>
|
||||
>(initialConfig?.labelSelectors || {});
|
||||
const [aggregationMode, setAggregationMode] = useState<AggregationMode>(
|
||||
initialConfig?.aggregationMode ||
|
||||
(getMetricType(metricName) === 'counter'
|
||||
? 'count'
|
||||
: getMetricType(metricName) === 'histogram'
|
||||
? 'p50'
|
||||
: 'avg'),
|
||||
initialConfig?.aggregationMode || getDefaultAggregation(metricName),
|
||||
);
|
||||
|
||||
const {
|
||||
|
Loading…
Reference in New Issue
Block a user