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

Function timeString

pkg/operator/operator/workload_logging.go:51–53  ·  view source on GitHub ↗
(t time.Time)

Source from the content-addressed store, hash-verified

49)
50
51func timeString(t time.Time) string {
52 return fmt.Sprintf("%sT%02d*3a%02d*3a%02d", t.Format("2006-01-02"), t.Hour(), t.Minute(), t.Second())
53}
54
55var _apiLogURLTemplate *template.Template = template.Must(template.New("api_log_url_template").Parse(strings.TrimSpace(`
56https://console.{{.Partition}}.com/cloudwatch/home?region={{.Region}}#logsV2:logs-insights$3FqueryDetail$3D$257E$2528end$257E0$257Estart$257E-3600$257EtimeType$257E$2527RELATIVE$257Eunit$257E$2527seconds$257EeditorString$257E$2527fields*20*40timestamp*2c*20message*0a*7c*20filter*20cortex.labels.apiName*3d*22{{.APIName}}*22*0a*7c*20sort*20*40timestamp*20asc*0a$257Esource$257E$2528$257E$2527{{.LogGroup}}$2529$2529

Callers 2

BatchJobLogURLFunction · 0.85
TaskJobLogURLFunction · 0.85

Calls 1

FormatMethod · 0.45

Tested by

no test coverage detected