Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GroupBy ¶
func GroupBy(c []AccountCost) (map[string][]AccountCost, []string)
func SortedKey ¶
func SortedKey(group map[string][]AccountCost) []string
Types ¶
type AccountCost ¶
type AccountCost struct { AccountID string `json:"account_id"` Description string `json:"description"` Date string `json:"date,omitempty"` Service string `json:"service,omitempty"` RecordType string `json:"record_type,omitempty"` UnblendedCost Cost `json:"unblended_cost"` // volume discount for a single account BlendedCost Cost `json:"blended_cost"` // volume discount across linked account AmortizedCost Cost `json:"amortized_cost"` // unblended + ReservedInstances/12 NetAmortizedCost Cost `json:"net_amortized_cost"` // before discount NetUnblendedCost Cost `json:"net_unblended_cost"` // before discount }
func Deserialize ¶
func Deserialize(dir string, date []calendar.Date) ([]AccountCost, error)
func (AccountCost) JSON ¶
func (a AccountCost) JSON() string
func (AccountCost) Pretty ¶
func (a AccountCost) Pretty() string
func (AccountCost) String ¶
func (a AccountCost) String() string
Click to show internal directories.
Click to hide internal directories.