diff --git a/src/autoscaler/api/publicapiserver/public_api_handler.go b/src/autoscaler/api/publicapiserver/public_api_handler.go index 452a4f77a8..99a7656ea6 100644 --- a/src/autoscaler/api/publicapiserver/public_api_handler.go +++ b/src/autoscaler/api/publicapiserver/public_api_handler.go @@ -282,7 +282,7 @@ func (h *PublicApiHandler) GetAggregatedMetricsHistories(w http.ResponseWriter, } route := router.Get(routes.GetAggregatedMetricHistoriesRouteName) - path, err := route.URLPath("appId", appId, "metrictype", metricType) + path, err := route.URLPath("appid", appId, "metrictype", metricType) fmt.Println("BANANA path", path) if err != nil { logger.Error("Failed to create path", err) diff --git a/src/autoscaler/routes/routes.go b/src/autoscaler/routes/routes.go index 72b78b329a..d193a3c50f 100644 --- a/src/autoscaler/routes/routes.go +++ b/src/autoscaler/routes/routes.go @@ -10,7 +10,7 @@ const ( MetricHistoriesPath = "/v1/apps/{appid}/metric_histories/{metrictype}" GetMetricHistoriesRouteName = "GetMetricHistories" - AggregatedMetricHistoriesPath = "/v1/apps/{appId}/aggregated_metric_histories/{metrictype}" + AggregatedMetricHistoriesPath = "/v1/apps/{appid}/aggregated_metric_histories/{metrictype}" GetAggregatedMetricHistoriesRouteName = "GetAggregatedMetricHistories" ScalePath = "/v1/apps/{appid}/scale"