Define observed cost values and aggregation
This commit is contained in:
17
internal/domain/cost.go
Normal file
17
internal/domain/cost.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package domain
|
||||
|
||||
type CostSource string
|
||||
|
||||
const (
|
||||
CostSourceNone CostSource = ""
|
||||
CostSourceProvider CostSource = "provider"
|
||||
CostSourceConfiguredZero CostSource = "configured_zero"
|
||||
CostSourceMixed CostSource = "mixed"
|
||||
)
|
||||
|
||||
type ObservedCost struct {
|
||||
Value float64
|
||||
Known bool
|
||||
Complete bool
|
||||
Source CostSource
|
||||
}
|
||||
Reference in New Issue
Block a user