From d23fa17f1c3839a6c1c05e2f40594ce0a347dfd3 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Wed, 12 Aug 2020 13:16:54 -0600 Subject: [PATCH] added int support to range, resolves #1296 --- .../reference/flux/stdlib/experimental/query/fromrange.md | 2 ++ .../reference/flux/stdlib/experimental/query/inbucket.md | 2 ++ .../influxdb/v2.0/reference/flux/stdlib/monitor/from.md | 2 ++ .../influxdb/v2.0/reference/flux/stdlib/monitor/logs.md | 2 ++ content/influxdb/v2.0/reference/release-notes/flux.md | 6 ------ .../v2.0/reference/flux/stdlib/contrib/influxdb/select.md | 7 +++++-- 6 files changed, 13 insertions(+), 8 deletions(-) diff --git a/content/influxdb/v2.0/reference/flux/stdlib/experimental/query/fromrange.md b/content/influxdb/v2.0/reference/flux/stdlib/experimental/query/fromrange.md index 5b335f572..d7fa27629 100644 --- a/content/influxdb/v2.0/reference/flux/stdlib/experimental/query/fromrange.md +++ b/content/influxdb/v2.0/reference/flux/stdlib/experimental/query/fromrange.md @@ -38,6 +38,7 @@ Results **include** points that match the specified start time. Use a relative duration, absolute time, or integer (Unix timestamp in seconds). For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`.. Durations are relative to `now()`. +Integers are nanosecond Unix timestamps. _**Data type:** Duration | Time | Integer_ @@ -47,6 +48,7 @@ Results **exclude** points that match the specified stop time. Use a relative duration, absolute time, or integer (Unix timestamp in seconds). For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`. Durations are relative to `now()`. +Integers are nanosecond Unix timestamps. Defaults to `now()`. _**Data type:** Duration | Time | Integer_ diff --git a/content/influxdb/v2.0/reference/flux/stdlib/experimental/query/inbucket.md b/content/influxdb/v2.0/reference/flux/stdlib/experimental/query/inbucket.md index c498044d0..0b5f1eaa0 100644 --- a/content/influxdb/v2.0/reference/flux/stdlib/experimental/query/inbucket.md +++ b/content/influxdb/v2.0/reference/flux/stdlib/experimental/query/inbucket.md @@ -41,6 +41,7 @@ Results **include** points that match the specified start time. Use a relative duration, absolute time, or integer (Unix timestamp in seconds). For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`. Durations are relative to `now()`. +Integers are nanosecond Unix timestamps. _**Data type:** Duration | Time | Integer_ @@ -50,6 +51,7 @@ Results **exclude** points that match the specified stop time. Use a relative duration, absolute time, or integer (Unix timestamp in seconds). For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`. Durations are relative to `now()`. +Integers are nanosecond Unix timestamps. Defaults to `now()`. _**Data type:** Duration | Time | Integer_ diff --git a/content/influxdb/v2.0/reference/flux/stdlib/monitor/from.md b/content/influxdb/v2.0/reference/flux/stdlib/monitor/from.md index 1be3bd9de..60fdecc22 100644 --- a/content/influxdb/v2.0/reference/flux/stdlib/monitor/from.md +++ b/content/influxdb/v2.0/reference/flux/stdlib/monitor/from.md @@ -35,6 +35,7 @@ The earliest time to include in results. Use a relative duration, absolute time, or integer (Unix timestamp in seconds). For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`. Durations are relative to `now()`. +Integers are nanosecond Unix timestamps. _**Data type:** Duration | Time | Integer_ @@ -43,6 +44,7 @@ The latest time to include in results. Use a relative duration, absolute time, or integer (Unix timestamp in seconds). For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`. Durations are relative to `now()`. +Integers are nanosecond Unix timestamps. Defaults to `now()`. _**Data type:** Duration | Time | Integer_ diff --git a/content/influxdb/v2.0/reference/flux/stdlib/monitor/logs.md b/content/influxdb/v2.0/reference/flux/stdlib/monitor/logs.md index 52670684f..af783b8a8 100644 --- a/content/influxdb/v2.0/reference/flux/stdlib/monitor/logs.md +++ b/content/influxdb/v2.0/reference/flux/stdlib/monitor/logs.md @@ -34,6 +34,7 @@ The earliest time to include in results. Use a relative duration, absolute time, or integer (Unix timestamp in seconds). For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`. Durations are relative to `now()`. +Integers are nanosecond Unix timestamps. _**Data type:** Duration | Time | Integer_ @@ -42,6 +43,7 @@ The latest time to include in results. Use a relative duration, absolute time, or integer (Unix timestamp in seconds). For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`. Durations are relative to `now()`. +Integers are nanosecond Unix timestamps. Defaults to `now()`. _**Data type:** Duration | Time | Integer_ diff --git a/content/influxdb/v2.0/reference/release-notes/flux.md b/content/influxdb/v2.0/reference/release-notes/flux.md index d8fcd2494..8754883fb 100644 --- a/content/influxdb/v2.0/reference/release-notes/flux.md +++ b/content/influxdb/v2.0/reference/release-notes/flux.md @@ -30,12 +30,6 @@ InfluxDB until the next InfluxDB v2.0 release._ ## v0.80.0 [2020-08-12] -{{% warn %}} -#### Breaking change -`range()` and `date` package functions no longer support integer values -(nanosecond Unix timestamps). -{{% /warn %}} - ### Features - Add `nulls` parameter to `gen.tables()`. diff --git a/content/v2.0/reference/flux/stdlib/contrib/influxdb/select.md b/content/v2.0/reference/flux/stdlib/contrib/influxdb/select.md index 46861a530..cac8ebccd 100644 --- a/content/v2.0/reference/flux/stdlib/contrib/influxdb/select.md +++ b/content/v2.0/reference/flux/stdlib/contrib/influxdb/select.md @@ -58,18 +58,21 @@ Results **include** points that match the specified start time. Use a relative duration or absolute time. For example, `-1h` or `2019-08-28T22:00:00Z`. Durations are relative to `now()`. +Integers are nanosecond Unix timestamps. -_**Data type:** Duration | Time_ +_**Data type:** Duration | Time | Integer_ ### stop Latest time to include in results. Results **exclude** points that match the specified stop time. Use a relative duration or absolute time. For example, `-1h` or `2019-08-28T22:00:00Z`. +Integers are nanosecond Unix timestamps. Durations are relative to `now()`. + Defaults to `now()`. -_**Data type:** Duration | Time_ +_**Data type:** Duration | Time | Integer_ ### m Required Name of the measurement to query.