Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StoragePoolCPUUsage ¶
type StoragePoolCPUUsage struct {
// Name of the OpenStack storage pool.
StoragePoolName string `db:"storage_pool_name"`
// Avg CPU usage in pct.
AvgCPUUsagePct float64 `db:"avg_cpu_usage_pct"`
// Max CPU usage in pct.
MaxCPUUsagePct float64 `db:"max_cpu_usage_pct"`
}
Feature that maps the cpu usage of a storage pool.
func (StoragePoolCPUUsage) Indexes ¶
func (StoragePoolCPUUsage) Indexes() []db.Index
Indexes for the feature.
func (StoragePoolCPUUsage) TableName ¶
func (StoragePoolCPUUsage) TableName() string
Table under which the feature is stored.
type StoragePoolCPUUsageExtractor ¶
type StoragePoolCPUUsageExtractor struct {
// Common base for all extractors that provides standard functionality.
plugins.BaseExtractor[
struct{},
StoragePoolCPUUsage,
]
}
Extractor that extracts the CPU usage of a storage pool.
func (*StoragePoolCPUUsageExtractor) Extract ¶
func (e *StoragePoolCPUUsageExtractor) Extract() ([]plugins.Feature, error)
Extract the CPU usage of a storage pool.
func (*StoragePoolCPUUsageExtractor) GetName ¶
func (*StoragePoolCPUUsageExtractor) GetName() string
Name of this feature extractor that is used in the yaml config, for logging etc.
func (StoragePoolCPUUsageExtractor) Triggers ¶
func (StoragePoolCPUUsageExtractor) Triggers() []string
Get message topics that trigger a re-execution of this extractor.
Click to show internal directories.
Click to hide internal directories.