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"`
}
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.
Click to show internal directories.
Click to hide internal directories.