config

package
v0.0.0-...-4bb38d3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultDecoderQueueCount     = 1
	DefaultDecoderQueueSize      = 10000
	DefaultPerfDecoderQueueCount = 1
	DefaultPerfDecoderQueueSize  = 100000
	DefaultEventTTL              = 720 // hour
	DefaultPerfEventTTL          = 168 // hour
	DefaultAlarmEventTTL         = 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"`
	AlarmEventTTL         int                   `yaml:"alarm-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