sap

package
v0.0.0-...-4d528f1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostDetails

type HostDetails struct {
	// Name of the OpenStack compute host.
	ComputeHost string `db:"compute_host"`
	// Availability zone of the compute host.
	AvailabilityZone string `db:"availability_zone"`
	// CPU Architecture of the compute host.
	// Can be "cascade-lake" or "sapphire-rapids"
	CPUArchitecture string `db:"cpu_architecture"`
	// Hypervisor type of the compute host.
	HypervisorType string `db:"hypervisor_type"`
	// Hypervisor family of the compute host.
	// Can be "kvm" or "vmware"
	HypervisorFamily string `db:"hypervisor_family"`
	// Amount of VMs currently running on the compute host.
	RunningVMs int `db:"running_vms"`
	// Type of workload running on the compute host.
	// Can be "general-purpose" or "hana"
	WorkloadType string `db:"workload_type"`
	// Whether the compute host can be used for workloads.
	Enabled bool `db:"enabled"`
	// Reason why the compute host is disabled, if applicable.
	DisabledReason *string `db:"disabled_reason"`
	// Comma separated list of pinned projects of the ComputeHost.
	PinnedProjects *string `db:"pinned_projects"`
}

func (HostDetails) Indexes

func (HostDetails) Indexes() []db.Index

Indexes for the feature.

func (HostDetails) TableName

func (HostDetails) TableName() string

Table under which the feature is stored.

type HostDetailsExtractor

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

func (*HostDetailsExtractor) Extract

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

Extract the traits of a compute host from the database.

func (*HostDetailsExtractor) GetName

func (*HostDetailsExtractor) GetName() string

Name of this feature extractor that is used in the yaml config, for logging etc.

func (HostDetailsExtractor) Triggers

func (HostDetailsExtractor) Triggers() []string

Get message topics that trigger a re-execution of this extractor.

Jump to

Keyboard shortcuts

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