Documentation
¶
Overview ¶
Package recommend provides cost optimization recommendations based on estimated resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatTable ¶
FormatTable returns a human-readable table of recommendations.
Types ¶
type Recommendation ¶
type Recommendation struct {
ResourceName string `json:"resourceName"`
ResourceType string `json:"resourceType"`
Category string `json:"category"`
Title string `json:"title"`
Description string `json:"description"`
CurrentCost *decimal.Decimal `json:"currentMonthlyCost"`
SuggestedCost *decimal.Decimal `json:"suggestedMonthlyCost,omitempty"`
MonthlySavings *decimal.Decimal `json:"monthlySavings,omitempty"`
SavingsPercent *decimal.Decimal `json:"savingsPercent,omitempty"`
}
Recommendation represents a single cost optimization suggestion.
type Result ¶
type Result struct {
Recommendations []Recommendation `json:"recommendations"`
TotalMonthlyCost *decimal.Decimal `json:"totalMonthlyCost"`
PotentialSavings *decimal.Decimal `json:"potentialMonthlySavings"`
SavingsPercent *decimal.Decimal `json:"savingsPercent"`
}
Result holds all recommendations for a set of projects.
Click to show internal directories.
Click to hide internal directories.