collector

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

Collector is responsible for collecting system and hardware data.

func NewCollector

func NewCollector(logger *zap.SugaredLogger) Collector

NewCollector creates a new Collector instance with the provided logger.

func (*Collector) CollectData

func (c *Collector) CollectData(cfg config.Config) model.Root

CollectData collects system and hardware data and returns the model.Root struct.

func (*Collector) CollectDataShort

func (c *Collector) CollectDataShort(cfg config.Config) model.Root

CollectDataShort collects only Identity, UptimeSeconds and Kubernetes data.

Jump to

Keyboard shortcuts

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