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'
/>
<FormControlLabel
control={
<Checkbox
checked={formData.showRate}
onChange={(e) => actions.setShowRate(e.target.checked)}
/>
}
label='Show rate per second'
/>
{formData.selectedSeries.startsWith('unleash_counter_') ? (
<FormControlLabel
control={
<Checkbox
checked={formData.showRate}
onChange={(e) =>
actions.setShowRate(e.target.checked)
}
/>
}
label='Show rate per second'
/>
) : null}
</Box>
{availableLabels && (
<LabelsFilter