1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-04 13:48:56 +02:00

feat: show rps only for counters (#10361)

This commit is contained in:
Mateusz Kwasniewski 2025-07-16 13:43:29 +02:00 committed by GitHub
parent c3f1454df7
commit 8455134688
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -68,15 +68,19 @@ export const ImpactMetricsControls: FC<ImpactMetricsControlsProps> = ({
label='Begin at zero' label='Begin at zero'
/> />
<FormControlLabel {formData.selectedSeries.startsWith('unleash_counter_') ? (
control={ <FormControlLabel
<Checkbox control={
checked={formData.showRate} <Checkbox
onChange={(e) => actions.setShowRate(e.target.checked)} checked={formData.showRate}
/> onChange={(e) =>
} actions.setShowRate(e.target.checked)
label='Show rate per second' }
/> />
}
label='Show rate per second'
/>
) : null}
</Box> </Box>
{availableLabels && ( {availableLabels && (
<LabelsFilter <LabelsFilter