Explorar o código

Merge pull request #1637 from mattray/typos

Minor corrections
Matt Ray %!s(int64=3) %!d(string=hai) anos
pai
achega
99e0f15a0b
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      pkg/costmodel/aggregation.go
  2. 1 1
      pkg/costmodel/router.go

+ 1 - 1
pkg/costmodel/aggregation.go

@@ -2231,7 +2231,7 @@ func (a *Accesses) ComputeAllocationHandler(w http.ResponseWriter, r *http.Reque
 	// resolution.
 	resolution := qp.GetDuration("resolution", env.GetETLResolution())
 
-	// Aggregation is a required comma-separated list of fields by which to
+	// Aggregation is an optional comma-separated list of fields by which to
 	// aggregate results. Some fields allow a sub-field, which is distinguished
 	// with a colon; e.g. "label:app".
 	// Examples: "namespace", "namespace,label:app"

+ 1 - 1
pkg/costmodel/router.go

@@ -462,7 +462,7 @@ func (a *Accesses) ClusterCostsOverTime(w http.ResponseWriter, r *http.Request,
 	offset := r.URL.Query().Get("offset")
 
 	if window == "" {
-		w.Write(WrapData(nil, fmt.Errorf("missing window arguement")))
+		w.Write(WrapData(nil, fmt.Errorf("missing window argument")))
 		return
 	}
 	windowDur, err := timeutil.ParseDuration(window)