mirror of https://github.com/grafana/grafana.git
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',
|
||||
'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,
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in New Issue