This commit is contained in:
2026-06-05 17:30:36 +03:00
parent 3e2edf53a5
commit f1112e5a11
1246 changed files with 6117 additions and 1589 deletions

View File

@@ -1,5 +1,65 @@
package zone
// CPU alignment profile
type CpuAlignmentProfile struct {
// Profile name
Name string `json:"name"`
// Vendor
Vendor string `json:"vendor"`
// Model
Model string `json:"model"`
}
// CPU alignment profile candidate
type CpuAlignmentProfileCandidate struct {
// Profile name
Name string `json:"name"`
// Vendor
Vendor string `json:"vendor"`
// Model
Model string `json:"model"`
// Count
Count uint64 `json:"count"`
// Percentage
Percentage uint64 `json:"percentage"`
// Required count
RequiredCount uint64 `json:"required_count"`
}
// Response for test_cpu_alignment_profile
type TestCPUAlignmentProfileResult struct {
// Profiles
Profiles []CpuAlignmentProfile `json:"profiles"`
// Candidates
Candidates []CpuAlignmentProfileCandidate `json:"candidates"`
}
// Item for list_cpu_alignment_profile response
type ItemCPUAlignmentProfile struct {
// Zone ID
ZoneID uint64 `json:"zoneId"`
// CPU alignment profiles
CpuAlignmentProfiles []CpuAlignmentProfile `json:"cpu_alignment_profiles"`
}
// Response for list_cpu_alignment_profile
type ListCPUAlignmentProfiles struct {
// Entry count
EntryCount uint64 `json:"entryCount"`
// Data
Data []ItemCPUAlignmentProfile `json:"data"`
}
type ListZones struct {
// Entry count
EntryCount uint64 `json:"entryCount"`
@@ -96,6 +156,9 @@ type RecordZone struct {
// Domain
Domain string `json:"domain"`
// CPU alignment profiles
CpuAlignmentProfiles []CpuAlignmentProfile `json:"cpu_alignment_profiles"`
}
// A zone item from a list
@@ -165,4 +228,7 @@ type ItemZone struct {
// Domain
Domain string `json:"domain"`
// CPU alignment profiles
CpuAlignmentProfiles []CpuAlignmentProfile `json:"cpu_alignment_profiles"`
}