MCPcopy
hub / github.com/cortexlabs/cortex / getDashboardURL

Function getDashboardURL

pkg/operator/resources/job/batchapi/api.go:269–281  ·  view source on GitHub ↗
(apiName string)

Source from the content-addressed store, hash-verified

267}
268
269func getDashboardURL(apiName string) string {
270 loadBalancerURL, err := operator.LoadBalancerURL()
271 if err != nil {
272 return ""
273 }
274
275 dashboardURL := fmt.Sprintf(
276 "%s/dashboard/d/%s/batchapi?orgId=1&refresh=30s&var-api_name=%s",
277 loadBalancerURL, _batchDashboardUID, apiName,
278 )
279
280 return dashboardURL
281}

Callers 1

GetAPIByNameFunction · 0.70

Calls 1

LoadBalancerURLFunction · 0.92

Tested by

no test coverage detected