Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector gathers the capacity data sent in node heartbeats.
func (*Collector) CollectCapacity ¶
func (c *Collector) CollectCapacity(ctx context.Context) NodeCapacity
CollectCapacity builds the resource values consumed by heartbeat reporting.
type NodeCapacity ¶
type NodeCapacity struct {
CPUFreeMillis domaintypes.CPUmilli
CPUTotalMillis domaintypes.CPUmilli
MemFreeBytes domaintypes.Bytes
MemTotalBytes domaintypes.Bytes
DiskFreeBytes domaintypes.Bytes
DiskTotalBytes domaintypes.Bytes
}
NodeCapacity represents available node resources for scheduling.
Click to show internal directories.
Click to hide internal directories.