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[]>
|
Record<string, string[]>
|
||||||
>(initialConfig?.labelSelectors || {});
|
>(initialConfig?.labelSelectors || {});
|
||||||
const [aggregationMode, setAggregationMode] = useState<AggregationMode>(
|
const [aggregationMode, setAggregationMode] = useState<AggregationMode>(
|
||||||
initialConfig?.aggregationMode ||
|
initialConfig?.aggregationMode || getDefaultAggregation(metricName),
|
||||||
(getMetricType(metricName) === 'counter'
|
|
||||||
? 'count'
|
|
||||||
: getMetricType(metricName) === 'histogram'
|
|
||||||
? 'p50'
|
|
||||||
: 'avg'),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
Loading…
Reference in New Issue
Block a user