containerlifecycle

package
v0.0.0-...-a6860d5 Latest Latest
Warning

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

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

Documentation

Overview

Package containerlifecycle implements the container lifecycle check.

Index

Constants

View Source
const (
	// CheckName is the name of the check
	CheckName = "container_lifecycle"
)

Variables

This section is empty.

Functions

func Factory

func Factory(store workloadmeta.Component) optional.Option[func() check.Check]

Factory returns a new check factory

Types

type Check

type Check struct {
	core.CheckBase
	// contains filtered or unexported fields
}

Check reports container lifecycle events

func (*Check) Cancel

func (c *Check) Cancel()

Cancel stops the container_lifecycle check

func (*Check) Configure

func (c *Check) Configure(senderManager sender.SenderManager, _ uint64, config, initConfig integration.Data, source string) error

Configure parses the check configuration and initializes the container_lifecycle check

func (*Check) Interval

func (c *Check) Interval() time.Duration

Interval returns 0, it makes container_lifecycle a long-running check

func (*Check) Run

func (c *Check) Run() error

Run starts the container_lifecycle check

type Config

type Config struct {
	ChunkSize    int `yaml:"chunk_size"`
	PollInterval int `yaml:"poll_interval_seconds"`
}

Config holds the container_lifecycle check configuration

func (*Config) Parse

func (c *Config) Parse(data []byte) error

Parse parses the container_lifecycle check config and set default values

Jump to

Keyboard shortcuts

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