This commit is contained in:
2026-06-11 16:54:48 +04:00
parent f1112e5a11
commit f6acddaa8d
36 changed files with 226 additions and 499 deletions

View File

@@ -12,6 +12,21 @@ type CpuAlignmentProfile struct {
Model string `json:"model"`
}
// Supported CPU model
type SupportedCpuModel struct {
// Vendor
Vendor string `json:"vendor"`
// Model
Model string `json:"model"`
// Count
Count uint64 `json:"count"`
// Percentage
Percentage float64 `json:"percentage"`
}
// CPU alignment profile candidate
type CpuAlignmentProfileCandidate struct {
// Profile name
@@ -27,7 +42,7 @@ type CpuAlignmentProfileCandidate struct {
Count uint64 `json:"count"`
// Percentage
Percentage uint64 `json:"percentage"`
Percentage float64 `json:"percentage"`
// Required count
RequiredCount uint64 `json:"required_count"`
@@ -40,6 +55,9 @@ type TestCPUAlignmentProfileResult struct {
// Candidates
Candidates []CpuAlignmentProfileCandidate `json:"candidates"`
// Supported CPU models
SupportedCpuModels []SupportedCpuModel `json:"supported_cpu_models"`
}
// Item for list_cpu_alignment_profile response