MCPcopy Index your code
hub / github.com/cortexproject/cortex / FormatTime

Function FormatTime

integration/e2ecortex/client.go:1299–1301  ·  view source on GitHub ↗

FormatTime converts a time to a string acceptable by the Prometheus API.

(t time.Time)

Source from the content-addressed store, hash-verified

1297
1298// FormatTime converts a time to a string acceptable by the Prometheus API.
1299func FormatTime(t time.Time) string {
1300 return strconv.FormatFloat(float64(t.Unix())+float64(t.Nanosecond())/1e9, 'f', -1, 64)
1301}

Callers 7

QueryRangeRawMethod · 0.85
QueryRawMethod · 0.85
SeriesRawMethod · 0.85
LabelNamesRawMethod · 0.85
LabelValuesRawMethod · 0.85

Calls

no outgoing calls