Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batcher ¶
type Batcher struct {
// contains filtered or unexported fields
}
Batcher holds a buffer of agent stats and periodically flushes them to its configured store. It also updates the workspace's last used time.
type Option ¶
type Option func(b *Batcher)
Option is a functional option for configuring a Batcher.
func WithBatchSize ¶
WithBatchSize sets the number of stats to store in a batch.
func WithInterval ¶
WithInterval sets the interval for flushes.
func WithLogger ¶
WithLogger sets the logger to use for logging.
Click to show internal directories.
Click to hide internal directories.