metric

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CpuLabel    = "cpu"
	MemoryLabel = "memory"
)

Variables

View Source
var Component = &component.Component{
	Dependencies: component.Components{
		manager.Component,
	},
	Init: component.StepFunc(func(container container.Container) error {
		return container.Provide(NewMetric)
	}),
	PreExecute: component.StepFunc(func(container container.Container) error {
		return container.Invoke(func(m *manager.Manager, metric *Metric) {
			m.OnChangeResource.Subscribe(metric.OnChangeResource)
		})
	}),
}

Functions

This section is empty.

Types

type Metric

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

func NewMetric

func NewMetric(compogoConfig *compogo.Config) *Metric

func (*Metric) OnChangeResource

func (metric *Metric) OnChangeResource(_ context.Context, resource *domain.Resource)

Jump to

Keyboard shortcuts

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