metrics

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LabelIPPoolName  = "ippool"
	LabelSubnet      = "subnet"
	LabelNetworkName = "network"
	LabelVMName      = "vm"
	LabelMacAddress  = "mac"
	LabelIPAddress   = "ip"
	LabelStatus      = "status"
)

Functions

This section is empty.

Types

type MetricsAllocator

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

func New

func New() *MetricsAllocator

func NewMetricsAllocator

func NewMetricsAllocator() *MetricsAllocator

func (*MetricsAllocator) DeleteIPPool

func (m *MetricsAllocator) DeleteIPPool(ippoolName string, subnet string, networkName string)

func (*MetricsAllocator) DeleteVmNetCfgStatus

func (m *MetricsAllocator) DeleteVmNetCfgStatus(vmName string)

func (*MetricsAllocator) Run

func (m *MetricsAllocator) Run()

func (*MetricsAllocator) Stop added in v0.4.0

func (m *MetricsAllocator) Stop()

func (*MetricsAllocator) UpdateIPPoolAvailable

func (m *MetricsAllocator) UpdateIPPoolAvailable(ippoolName string, subnet string, networkName string, available int)

func (*MetricsAllocator) UpdateIPPoolUsed

func (m *MetricsAllocator) UpdateIPPoolUsed(ippoolName string, subnet string, networkName string, used int)

func (*MetricsAllocator) UpdateVmNetCfgStatus

func (m *MetricsAllocator) UpdateVmNetCfgStatus(vmName string, networkName string, macAddr string, ipAddr string, status string)

Jump to

Keyboard shortcuts

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