config

package
v1.6.65 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDecoderQueueCount     = 1
	DefaultDecoderQueueSize      = 4096
	DefaultPerfDecoderQueueCount = 2
	DefaultPerfDecoderQueueSize  = 4096
	DefaultEventTTL              = 720 // hour
	DefaultPerfEventTTL          = 168 // hour
	DefaultAlertEventTTL         = 720 // hour
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Base                  *config.Config
	CKWriterConfig        config.CKWriterConfig `yaml:"event-ck-writer"`
	DecoderQueueCount     int                   `yaml:"event-decoder-queue-count"`
	DecoderQueueSize      int                   `yaml:"event-decoder-queue-size"`
	EventTTL              int                   `yaml:"event-ttl"`
	PerfCKWriterConfig    config.CKWriterConfig `yaml:"perf-event-ck-writer"`
	PerfDecoderQueueCount int                   `yaml:"perf-event-decoder-queue-count"`
	PerfDecoderQueueSize  int                   `yaml:"perf-event-decoder-queue-size"`
	PerfEventTTL          int                   `yaml:"perf-event-ttl"`
	AlertEventTTL         int                   `yaml:"alert-event-ttl"`
	K8sCKWriterConfig     config.CKWriterConfig `yaml:"k8s-event-ck-writer"`
	K8sDecoderQueueCount  int                   `yaml:"k8s-event-decoder-queue-count"`
	K8sDecoderQueueSize   int                   `yaml:"k8s-event-decoder-queue-size"`
}

func Load

func Load(base *config.Config, path string) *Config

func (*Config) Validate

func (c *Config) Validate() error

type EventConfig

type EventConfig struct {
	Event Config `yaml:"ingester"`
}

Jump to

Keyboard shortcuts

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