|
@@ -54,14 +54,14 @@ func getKplerDataByApi(params models.KplerSearchEdbReq, serverUrl string) (list
|
|
fromZoneNamesStr := params.FromZoneNames
|
|
fromZoneNamesStr := params.FromZoneNames
|
|
toZoneNamesStr := params.ToZoneNames
|
|
toZoneNamesStr := params.ToZoneNames
|
|
|
|
|
|
- //granularity := GetKplerGranularity(params.Granularity)
|
|
|
|
|
|
+ granularity := GetKplerGranularity(params.Granularity)
|
|
libreq := new(models.KplerFlowDataLibReq)
|
|
libreq := new(models.KplerFlowDataLibReq)
|
|
libreq.Products = productNamesStr
|
|
libreq.Products = productNamesStr
|
|
libreq.FromZones = fromZoneNamesStr
|
|
libreq.FromZones = fromZoneNamesStr
|
|
libreq.ToZones = toZoneNamesStr
|
|
libreq.ToZones = toZoneNamesStr
|
|
libreq.Split = params.Split
|
|
libreq.Split = params.Split
|
|
libreq.FlowDirection = params.FlowDirection
|
|
libreq.FlowDirection = params.FlowDirection
|
|
- libreq.Granularity = params.Granularity
|
|
|
|
|
|
+ libreq.Granularity = granularity
|
|
libreq.Unit = params.Unit
|
|
libreq.Unit = params.Unit
|
|
libreq.WithIntraRegion = "true"
|
|
libreq.WithIntraRegion = "true"
|
|
libreq.WithForecast = "true"
|
|
libreq.WithForecast = "true"
|