shared

package
v0.0.0-...-09e306e Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostAZExtractor

type HostAZExtractor struct {
	// Common base for all extractors that provides standard functionality.
	plugins.BaseExtractor[
		struct{},
		shared.HostAZ,
	]
}

func (*HostAZExtractor) Extract

func (e *HostAZExtractor) Extract() ([]plugins.Feature, error)

Extract the traits of a compute host from the database.

type HostCapabilitiesExtractor

type HostCapabilitiesExtractor struct {
	// Common base for all extractors that provides standard functionality.
	plugins.BaseExtractor[
		struct{},
		shared.HostCapabilities,
	]
}

Extractor that extracts the traits of a compute host.

func (*HostCapabilitiesExtractor) Extract

func (e *HostCapabilitiesExtractor) Extract() ([]plugins.Feature, error)

Extract the traits of a compute host from the database.

type HostPinnedProjectsExtractor

type HostPinnedProjectsExtractor struct {
	// Common base for all extractors that provides standard functionality.
	plugins.BaseExtractor[
		struct{},
		shared.HostPinnedProjects,
	]
}

Extractor that extracts the pinned projects of a compute host.

func (*HostPinnedProjectsExtractor) Extract

Extract the pinned projects of a compute host.

type HostUtilizationExtractor

type HostUtilizationExtractor struct {
	// Common base for all extractors that provides standard functionality.
	plugins.BaseExtractor[
		struct{},
		shared.HostUtilization,
	]
}

Extractor that extracts the utilization on a compute host.

func (*HostUtilizationExtractor) Extract

func (e *HostUtilizationExtractor) Extract() ([]plugins.Feature, error)

Extract the utilization on a compute host. Depends on the OpenStack hypervisors to be synced.

type VMHostResidencyExtractor

type VMHostResidencyExtractor struct {
	// Common base for all extractors that provides standard functionality.
	plugins.BaseExtractor[
		struct{},
		shared.VMHostResidencyHistogramBucket,
	]
}

Extractor that extracts the time elapsed until the first migration of a virtual machine.

func (*VMHostResidencyExtractor) Extract

func (e *VMHostResidencyExtractor) Extract() ([]plugins.Feature, error)

Extract the time elapsed until the first migration of a virtual machine. Depends on the OpenStack servers and migrations to be synced.

type VMHostResidencyRaw

type VMHostResidencyRaw struct {
	// Time the vm stayed on the host in seconds.
	Duration int `db:"duration"`
	// Flavor name of the virtual machine.
	FlavorName string `db:"flavor_name"`
}

type VMLifeSpanHistogramExtractor

type VMLifeSpanHistogramExtractor struct {
	// Common base for all extractors that provides standard functionality.
	plugins.BaseExtractor[
		struct{},
		shared.VMLifeSpanHistogramBucket,
	]
}

Extractor that extracts the time elapsed until the vm was deleted.

func (*VMLifeSpanHistogramExtractor) Extract

Extract the time elapsed until the first migration of a virtual machine. Depends on the OpenStack servers and migrations to be synced.

type VMLifeSpanRaw

type VMLifeSpanRaw struct {
	// Time the vm stayed on the host in seconds.
	Duration int `db:"duration"`
	// Flavor name of the virtual machine.
	FlavorName string `db:"flavor_name"`
	// Whether the statistic is from a VM that is deleted or still running.
	Deleted bool `db:"deleted"`
}

Jump to

Keyboard shortcuts

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