batchconfig

package
v4.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ByteSize   int                `json:"byte_size" yaml:"byte_size"`
	Count      int                `json:"count" yaml:"count"`
	Check      string             `json:"check" yaml:"check"`
	Period     string             `json:"period" yaml:"period"`
	Processors []processor.Config `json:"processors" yaml:"processors"`
}

Config contains configuration parameters for a batch policy.

func NewConfig

func NewConfig() Config

NewConfig creates a default PolicyConfig.

func (Config) IsHardLimited

func (p Config) IsHardLimited() bool

IsHardLimited returns true if there's a realistic limit on the batching policy, where checks are not included.

func (Config) IsLimited

func (p Config) IsLimited() bool

IsLimited returns true if there's any limit on the batching policy.

func (Config) IsNoop

func (p Config) IsNoop() bool

IsNoop returns true if this batch policy configuration does nothing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL