shared/api: Add AllocatedTime CPU field

Signed-off-by: Benjamin Somers <benjamin.somers@imt-atlantique.fr>
This commit is contained in:
Benjamin Somers 2025-03-18 14:28:34 +00:00 committed by Stéphane Graber
parent c4e4354427
commit 08ee9e729d
No known key found for this signature in database
GPG Key ID: C638974D64792D67

View File

@ -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.