cpu

package
v0.0.0-...-8dae9f9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const CheckName = "cpu"

Variables

This section is empty.

Functions

func Factory

func Factory() optional.Option[func() check.Check]

Factory creates a new check factory

func GetContextSwitches

func GetContextSwitches() (ctxSwitches int64, err error)

GetContextSwitches retrieves the number of context switches for the current process. It returns an integer representing the count and an error if the retrieval fails.

Types

type Check

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

Check doesn't need additional fields

func (*Check) Configure

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

Configure configures the network checks

func (*Check) Run

func (c *Check) Run() error

Run executes the check

Jump to

Keyboard shortcuts

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