Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostAZ ¶
type HostCapabilities ¶
type HostCapabilities struct {
// Name of the OpenStack compute host.
ComputeHost string `db:"compute_host"`
// Comma-separated list of traits assigned to the compute host.
Traits string `db:"traits"`
// The type of hypervisor running on the compute host.
HypervisorType string `db:"hypervisor_type"`
}
Feature that maps the traits of a compute host in OpenStack.
func (HostCapabilities) Indexes ¶
func (HostCapabilities) Indexes() map[string][]string
Indexes for the feature.
func (HostCapabilities) TableName ¶
func (HostCapabilities) TableName() string
Table under which the feature is stored.
type HostPinnedProjects ¶
type HostPinnedProjects struct {
// The name of the aggregate where the filter is defined
AggregateName *string `db:"aggregate_name"`
// UUID of the aggregate where the filter is defined
AggregateUUID *string `db:"aggregate_uuid"`
// Tenant ID that belongs to the filter
ProjectID *string `db:"project_id"`
// Domain ID of the project
DomainID *string `db:"domain_id"`
// Combination of project name and domain name
Label *string `db:"label"`
// Name of the OpenStack compute host.
ComputeHost *string `db:"compute_host"`
}
HostPinnedProjects represents the mapping between compute hosts and their tenant restrictions. This feature tracks which projects are allowed on specific hosts based on Nova aggregate tenant isolation filters. Hosts without restrictions have a NULL project_id, indicating they accept workloads from any project. See the docs: https://docs.openstack.org/nova/latest/admin/scheduling.html#aggregatemultitenancyisolation
func (HostPinnedProjects) Indexes ¶
func (HostPinnedProjects) Indexes() map[string][]string
Indexes for the feature.
func (HostPinnedProjects) TableName ¶
func (HostPinnedProjects) TableName() string
Table under which the feature is stored.
type HostUtilization ¶
type HostUtilization struct {
// Name of the OpenStack compute host.
ComputeHost string `db:"compute_host" json:"computeHost"`
// VCPU resource usage
VCPUsUsed float64 `db:"vcpus_used" json:"vcpusUsed"`
VCPUsUtilizedPct float64 `db:"vcpus_utilized_pct" json:"vcpusUtilizedPct"`
TotalVCPUsAllocatable float64 `db:"total_vcpus_allocatable" json:"totalVCPUsAllocatable"`
// RAM resource usage
RAMUsedMB float64 `db:"ram_used_mb" json:"ramUsedMB"`
RAMUtilizedPct float64 `db:"ram_utilized_pct" json:"ramUtilizedPct"`
TotalRAMAllocatableMB float64 `db:"total_ram_allocatable_mb" json:"totalRAMAllocatableMB"`
// Disk resource usage
DiskUsedGB float64 `db:"disk_used_gb" json:"diskUsedGB"`
DiskUtilizedPct float64 `db:"disk_utilized_pct" json:"diskUtilizedPct"`
TotalDiskAllocatableGB float64 `db:"total_disk_allocatable_gb" json:"totalDiskAllocatableGB"`
}
Feature that maps how many resources are utilized on a compute host.
func (HostUtilization) Indexes ¶
func (HostUtilization) Indexes() map[string][]string
Indexes for the feature.
func (HostUtilization) TableName ¶
func (HostUtilization) TableName() string
Table under which the feature is stored.
type VMHostResidencyHistogramBucket ¶
type VMHostResidencyHistogramBucket struct {
// Flavor name of the virtual machine.
FlavorName string `db:"flavor_name"`
// The bucket this residency falls into.
Bucket float64 `db:"bucket"`
// The value of the bucket.
Value uint64 `db:"value"`
// The count of vms that fell into this bucket.
Count uint64 `db:"count"`
// The sum of all durations that fell into this bucket.
Sum float64 `db:"sum"`
}
Feature that describes how long a vm was running on a host until it needed to move out, and the reason for the move (i.e., who forced it to move).
func (VMHostResidencyHistogramBucket) Indexes ¶
func (VMHostResidencyHistogramBucket) Indexes() map[string][]string
Indexes for the feature.
func (VMHostResidencyHistogramBucket) TableName ¶
func (VMHostResidencyHistogramBucket) TableName() string
Table under which the feature is stored.
type VMLifeSpanHistogramBucket ¶
type VMLifeSpanHistogramBucket struct {
// Flavor name of the virtual machine.
FlavorName string `db:"flavor_name"`
// The bucket this life span falls into.
Bucket float64 `db:"bucket"`
// The value of the bucket.
Value uint64 `db:"value"`
// The count of vms that fell into this bucket.
Count uint64 `db:"count"`
// The sum of all durations that fell into this bucket.
Sum float64 `db:"sum"`
// Whether the statistic is of VMs that are deleted or still running.
Deleted bool `db:"deleted"`
}
Feature that describes how long a vm existed before it was deleted.
func (VMLifeSpanHistogramBucket) Indexes ¶
func (VMLifeSpanHistogramBucket) Indexes() map[string][]string
Indexes for the feature.
func (VMLifeSpanHistogramBucket) TableName ¶
func (VMLifeSpanHistogramBucket) TableName() string
Table under which the feature is stored.