mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Fix max_alerts field handling (#86651)
Fix max_alerts field parsing
This commit is contained in:
parent
7dc6540ead
commit
1b930c341d
@ -320,7 +320,11 @@ export const cloudNotifierTypes: Array<NotifierDTO<CloudNotifierType>> = [
|
|||||||
'max_alerts',
|
'max_alerts',
|
||||||
'Max alerts',
|
'Max alerts',
|
||||||
'The maximum number of alerts to include in a single webhook message. Alerts above this threshold are truncated. When leaving this at its default value of 0, all alerts are included.',
|
'The maximum number of alerts to include in a single webhook message. Alerts above this threshold are truncated. When leaving this at its default value of 0, all alerts are included.',
|
||||||
{ placeholder: '0', validationRule: '(^\\d+$|^$)' }
|
{
|
||||||
|
placeholder: '0',
|
||||||
|
validationRule: '(^\\d+$|^$)',
|
||||||
|
setValueAs: (value) => (typeof value === 'string' ? parseInt(value, 10) : 0),
|
||||||
|
}
|
||||||
),
|
),
|
||||||
httpConfigOption,
|
httpConfigOption,
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user