From 66b8208566f2838baae6ceefcd90ca1ffd0404bb Mon Sep 17 00:00:00 2001 From: priyaggopa Date: Tue, 14 Jan 2025 08:47:52 +0530 Subject: [PATCH] Update loki-http-api.md An integer with ten or fewer digits is interpreted as a Unix timestamp in seconds. This point needs to be updated as loki will consider all the epoch values in nanoseconds. FYI: https://raintank-corp.slack.com/archives/C9T1FLN9K/p1736320730034239 Signed-off-by: priyaggopa --- docs/sources/reference/loki-http-api.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/sources/reference/loki-http-api.md b/docs/sources/reference/loki-http-api.md index 2cb50dce7709d..3e12c2936610f 100644 --- a/docs/sources/reference/loki-http-api.md +++ b/docs/sources/reference/loki-http-api.md @@ -149,8 +149,7 @@ being returned. The API accepts several formats for timestamps: -- An integer with ten or fewer digits is interpreted as a Unix timestamp in seconds. -- More than ten digits are interpreted as a Unix timestamp in nanoseconds. +- All epoch values will be interpreted as a Unix timestamp in nanoseconds. - A floating point number is a Unix timestamp with fractions of a second. - A string in `RFC3339` and `RFC3339Nano` format, as supported by Go's [time](https://pkg.go.dev/time) package.