Expand description
time() and the date functions over evaluated series, following Prometheus funcTime and
dateWrapper.
Structsยง
- Civil ๐
Enumsยง
- Date
Function - A PromQL date function:
minute(v),year()and so on. - Query
Context Function start(),end(),range()andstep(): constants of a query, which Prometheus folds into number literals before evaluating it.
Constantsยง
- ABSOLUTE_
YEARS ๐ - MARCH_
THRU_ ๐DECEMBER - SECONDS_
PER_ ๐DAY - UNIX_
TO_ ๐ABSOLUTE - Goโs
unixToInternal + internalToAbsolute.
Functionsยง
- civil ๐
- Goโs
absDays.split,dateandyearYday: days since March 1 of year-ABSOLUTE_YEARS. - date_
of_ eval_ time - A date function without argument, which reads the evaluation time: one unlabelled series over the whole grid.
- duration_
seconds ๐ - Goโs
time.Duration.Secondsofmsmilliseconds: whole seconds plus the remainder over 1e9, two roundings rather than one division. The nanosecond count saturates astime.Time.Subdoes. - eval_
time_ ๐series - go_
int64 ๐ - Goโs
int64(f)on amd64: NaN and values out of range becomei64::MIN. - time
time(): the evaluation time in seconds at every point of the schemaโs grid, unlabelled.