mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-28 07:52:02 +08:00

* refactor(alertmanager): complete e2e testing and simplify * fix(alertmanager): fix typo * fix(alertmanager): set to true for prometheus
17 lines
298 B
Go
17 lines
298 B
Go
package alertmanagerbatcher
|
|
|
|
type Config struct {
|
|
// Capacity is the maximum number of alerts that can be buffered in the batcher.
|
|
Capacity int
|
|
|
|
// Size is the number of alerts to send in each batch.
|
|
Size int
|
|
}
|
|
|
|
func NewConfig() Config {
|
|
return Config{
|
|
Capacity: 10000,
|
|
Size: 64,
|
|
}
|
|
}
|