Skip to content

Commit

Permalink
fix: add disk wastage request
Browse files Browse the repository at this point in the history
  • Loading branch information
artaasadi committed Jun 23, 2024
1 parent 46f1174 commit 8407774
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions plugin/kaytu/compute_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ type GcpComputeInstance struct {
MachineType string `json:"machineType"`
}

type GcpComputeDisk struct {
HashedDiskId string `json:"hashedDiskId"`
Zone string `json:"zone"`
Region string `json:"region"`
DiskType string `json:"diskType"`
DiskSize *int32 `json:"diskSize"`
}

type RightsizingGcpComputeInstance struct {
Zone string `json:"zone"`
Region string `json:"region"`
Expand All @@ -30,14 +38,16 @@ type GcpComputeInstanceRightsizingRecommendation struct {
}

type GcpComputeInstanceWastageRequest struct {
RequestId *string `json:"requestId"`
CliVersion *string `json:"cliVersion"`
Identification map[string]string `json:"identification"`
Instance GcpComputeInstance `json:"instance"`
Metrics map[string][]Datapoint `json:"metrics"`
Region string `json:"region"`
Preferences map[string]*string `json:"preferences"`
Loading bool `json:"loading"`
RequestId *string `json:"requestId"`
CliVersion *string `json:"cliVersion"`
Identification map[string]string `json:"identification"`
Instance GcpComputeInstance `json:"instance"`
Disks []GcpComputeDisk `json:"disks"`
Metrics map[string][]Datapoint `json:"metrics"`
DiskMetrics map[string]map[string][]Datapoint `json:"diskMetrics"`
Region string `json:"region"`
Preferences map[string]*string `json:"preferences"`
Loading bool `json:"loading"`
}

type RightsizingGcpComputeDisk struct {
Expand Down

0 comments on commit 8407774

Please sign in to comment.