Parcourir la source

Add DisableAggregatedStores query option

Niko Kovacevic il y a 4 ans
Parent
commit
441dfb5ca5
1 fichiers modifiés avec 20 ajouts et 19 suppressions
  1. 20 19
      pkg/kubecost/query.go

+ 20 - 19
pkg/kubecost/query.go

@@ -34,25 +34,26 @@ type CloudUsageQuerier interface {
 
 // AllocationQueryOptions defines optional parameters for querying an Allocation Store
 type AllocationQueryOptions struct {
-	Accumulate        bool
-	AccumulateBy      time.Duration
-	AggregateBy       []string
-	Compute           bool
-	FilterFuncs       []AllocationMatchFunc
-	IdleByNode        bool
-	IncludeExternal   bool
-	IncludeIdle       bool
-	LabelConfig       *LabelConfig
-	MergeUnallocated  bool
-	Reconcile         bool
-	ReconcileNetwork  bool
-	ShareFuncs        []AllocationMatchFunc
-	SharedHourlyCosts map[string]float64
-	ShareIdle         string
-	ShareSplit        string
-	ShareTenancyCosts bool
-	SplitIdle         bool
-	Step              time.Duration
+	Accumulate              bool
+	AccumulateBy            time.Duration
+	AggregateBy             []string
+	Compute                 bool
+	DisableAggregatedStores bool
+	FilterFuncs             []AllocationMatchFunc
+	IdleByNode              bool
+	IncludeExternal         bool
+	IncludeIdle             bool
+	LabelConfig             *LabelConfig
+	MergeUnallocated        bool
+	Reconcile               bool
+	ReconcileNetwork        bool
+	ShareFuncs              []AllocationMatchFunc
+	SharedHourlyCosts       map[string]float64
+	ShareIdle               string
+	ShareSplit              string
+	ShareTenancyCosts       bool
+	SplitIdle               bool
+	Step                    time.Duration
 }
 
 // AssetQueryOptions defines optional parameters for querying an Asset Store