|
|
@@ -81,13 +81,13 @@ type CloudCostItem struct {
|
|
|
}
|
|
|
|
|
|
// NewCloudCostItem instantiates a new CloudCostItem asset
|
|
|
-func NewCloudCostItem(start, end time.Time, cciProperties CloudCostItemProperties, isKubernetes bool, cost, credit float64) CloudCostItem {
|
|
|
- return CloudCostItem{
|
|
|
+func NewCloudCostItem(start, end time.Time, cciProperties CloudCostItemProperties, isKubernetes bool, cost, netcost float64) *CloudCostItem {
|
|
|
+ return &CloudCostItem{
|
|
|
Properties: cciProperties,
|
|
|
IsKubernetes: isKubernetes,
|
|
|
Window: NewWindow(&start, &end),
|
|
|
Cost: cost,
|
|
|
- Credit: credit,
|
|
|
+ NetCost: netcost,
|
|
|
}
|
|
|
}
|
|
|
|