mirror of
https://github.com/lxc/incus.git
synced 2026-02-05 09:46:19 +01:00
shared/api: Add AllocatedTime CPU field
Signed-off-by: Benjamin Somers <benjamin.somers@imt-atlantique.fr>
This commit is contained in:
committed by
Stéphane Graber
parent
c4e4354427
commit
08ee9e729d
@@ -98,6 +98,12 @@ type InstanceStateCPU struct {
|
||||
// CPU usage in nanoseconds
|
||||
// Example: 3637691016
|
||||
Usage int64 `json:"usage" yaml:"usage"`
|
||||
|
||||
// CPU time available per second, in nanoseconds
|
||||
// Example: 4000000000
|
||||
//
|
||||
// API extension: instance_state_cpu_time
|
||||
AllocatedTime int64 `json:"allocated_time" yaml:"allocated_time"`
|
||||
}
|
||||
|
||||
// InstanceStateMemory represents the memory information section of an instance's state.
|
||||
|
||||
Reference in New Issue
Block a user