MCPcopy Index your code
hub / github.com/cortexlabs/cortex / getDashboardURL

Function getDashboardURL

pkg/operator/resources/realtimeapi/api.go:421–433  ·  view source on GitHub ↗
(apiName string)

Source from the content-addressed store, hash-verified

419}
420
421func getDashboardURL(apiName string) string {
422 loadBalancerURL, err := operator.LoadBalancerURL()
423 if err != nil {
424 return ""
425 }
426
427 dashboardURL := fmt.Sprintf(
428 "%s/dashboard/d/%s/realtimeapi?orgId=1&refresh=30s&var-api_name=%s",
429 loadBalancerURL, _realtimeDashboardUID, apiName,
430 )
431
432 return dashboardURL
433}

Callers 2

GetAPIByNameFunction · 0.70
DescribeAPIByNameFunction · 0.70

Calls 1

LoadBalancerURLFunction · 0.92

Tested by

no test coverage detected