|
|
@@ -2113,7 +2113,7 @@ func (a *Accesses) AggregateCostModelHandler(w http.ResponseWriter, r *http.Requ
|
|
|
// ParseAggregationProperties attempts to parse and return aggregation properties
|
|
|
// encoded under the given key. If none exist, or if parsing fails, an error
|
|
|
// is returned with empty AllocationProperties.
|
|
|
-func ParseAggregationProperties(qp util.QueryParams, key string) ([]string, error) {
|
|
|
+func ParseAggregationProperties(qp httputil.QueryParams, key string) ([]string, error) {
|
|
|
aggregateBy := []string{}
|
|
|
for _, agg := range qp.GetList(key, ",") {
|
|
|
aggregate := strings.TrimSpace(agg)
|
|
|
@@ -2134,7 +2134,7 @@ func ParseAggregationProperties(qp util.QueryParams, key string) ([]string, erro
|
|
|
func (a *Accesses) ComputeAllocationHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
|
|
|
w.Header().Set("Content-Type", "application/json")
|
|
|
|
|
|
- qp := util.NewQueryParams(r.URL.Query())
|
|
|
+ qp := httputil.NewQueryParams(r.URL.Query())
|
|
|
|
|
|
// Window is a required field describing the window of time over which to
|
|
|
// compute allocation data.
|