updated integer usage on range
parent
435e52742a
commit
eb4b37da1d
|
@ -31,21 +31,21 @@ range(start: -15m, stop: now())
|
||||||
### start
|
### start
|
||||||
The earliest time to include in results.
|
The earliest time to include in results.
|
||||||
Results **include** points that match the specified start time.
|
Results **include** points that match the specified start time.
|
||||||
Use a relative duration or absolute time.
|
Use a relative duration, absolute time, or integer (Unix timestamp in seconds).
|
||||||
For example, `-1h` or `2019-08-28T22:00:00Z`.
|
For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`.
|
||||||
Durations are relative to `now()`.
|
Durations are relative to `now()`.
|
||||||
|
|
||||||
_**Data type:** Duration | Time_
|
_**Data type:** Duration | Time | Integer_
|
||||||
|
|
||||||
### stop
|
### stop
|
||||||
The latest time to include in results.
|
The latest time to include in results.
|
||||||
Results **exclude** points that match the specified stop time.
|
Results **exclude** points that match the specified stop time.
|
||||||
Use a relative duration or absolute time.
|
Use a relative duration, absolute time, or integer (Unix timestamp in seconds).
|
||||||
For example, `-1h` or `2019-08-28T22:00:00Z`.
|
For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`.
|
||||||
Durations are relative to `now()`.
|
Durations are relative to `now()`.
|
||||||
Defaults to `now()`.
|
Defaults to `now()`.
|
||||||
|
|
||||||
_**Data type:** Duration | Time_
|
_**Data type:** Duration | Time | Integer_
|
||||||
|
|
||||||
{{% note %}}
|
{{% note %}}
|
||||||
Time values in Flux must be in [RFC3339 format](/v2.0/reference/flux/language/types#timestamp-format).
|
Time values in Flux must be in [RFC3339 format](/v2.0/reference/flux/language/types#timestamp-format).
|
||||||
|
@ -56,20 +56,27 @@ Time values in Flux must be in [RFC3339 format](/v2.0/reference/flux/language/ty
|
||||||
###### Time range relative to now
|
###### Time range relative to now
|
||||||
```js
|
```js
|
||||||
from(bucket:"example-bucket")
|
from(bucket:"example-bucket")
|
||||||
|> range(start:-12h)
|
|> range(start: -12h)
|
||||||
// ...
|
// ...
|
||||||
```
|
```
|
||||||
|
|
||||||
###### Relative time range
|
###### Relative time range
|
||||||
```js
|
```js
|
||||||
from(bucket:"example-bucket")
|
from(bucket:"example-bucket")
|
||||||
|> range(start:-12h, stop: -15m)
|
|> range(start: -12h, stop: -15m)
|
||||||
// ...
|
// ...
|
||||||
```
|
```
|
||||||
|
|
||||||
###### Absolute time range
|
###### Absolute time range
|
||||||
```js
|
```js
|
||||||
from(bucket:"example-bucket")
|
from(bucket:"example-bucket")
|
||||||
|> range(start:2018-05-22T23:30:00Z, stop: 2018-05-23T00:00:00Z)
|
|> range(start: 2018-05-22T23:30:00Z, stop: 2018-05-23T00:00:00Z)
|
||||||
|
// ...
|
||||||
|
```
|
||||||
|
|
||||||
|
###### Absolute time range with Unix timestamps
|
||||||
|
```js
|
||||||
|
from(bucket:"example-bucket")
|
||||||
|
|> range(start: 1527031800, stop: 1527033600)
|
||||||
// ...
|
// ...
|
||||||
```
|
```
|
||||||
|
|
|
@ -35,20 +35,18 @@ _**Data type:** String_
|
||||||
### start
|
### start
|
||||||
The earliest time to include in results.
|
The earliest time to include in results.
|
||||||
Results **include** points that match the specified start time.
|
Results **include** points that match the specified start time.
|
||||||
Use a relative duration or absolute time.
|
Use a relative duration, absolute time, or integer (Unix timestamp in seconds).
|
||||||
For example, `-1h` or `2019-08-28T22:00:00Z`.
|
For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`..
|
||||||
Durations are relative to `now()`.
|
Durations are relative to `now()`.
|
||||||
Integers are nanosecond Unix timestamps.
|
|
||||||
|
|
||||||
_**Data type:** Duration | Time | Integer_
|
_**Data type:** Duration | Time | Integer_
|
||||||
|
|
||||||
### stop
|
### stop
|
||||||
The latest time to include in results.
|
The latest time to include in results.
|
||||||
Results **exclude** points that match the specified stop time.
|
Results **exclude** points that match the specified stop time.
|
||||||
Use a relative duration or absolute time.
|
Use a relative duration, absolute time, or integer (Unix timestamp in seconds).
|
||||||
For example, `-1h` or `2019-08-28T22:00:00Z`.
|
For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`.
|
||||||
Durations are relative to `now()`.
|
Durations are relative to `now()`.
|
||||||
Integers are nanosecond Unix timestamps.
|
|
||||||
Defaults to `now()`.
|
Defaults to `now()`.
|
||||||
|
|
||||||
_**Data type:** Duration | Time | Integer_
|
_**Data type:** Duration | Time | Integer_
|
||||||
|
|
|
@ -38,20 +38,18 @@ _**Data type:** String_
|
||||||
### start
|
### start
|
||||||
The earliest time to include in results.
|
The earliest time to include in results.
|
||||||
Results **include** points that match the specified start time.
|
Results **include** points that match the specified start time.
|
||||||
Use a relative duration or absolute time.
|
Use a relative duration, absolute time, or integer (Unix timestamp in seconds).
|
||||||
For example, `-1h` or `2019-08-28T22:00:00Z`.
|
For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`.
|
||||||
Durations are relative to `now()`.
|
Durations are relative to `now()`.
|
||||||
Integers are nanosecond Unix timestamps.
|
|
||||||
|
|
||||||
_**Data type:** Duration | Time | Integer_
|
_**Data type:** Duration | Time | Integer_
|
||||||
|
|
||||||
### stop
|
### stop
|
||||||
The latest time to include in results.
|
The latest time to include in results.
|
||||||
Results **exclude** points that match the specified stop time.
|
Results **exclude** points that match the specified stop time.
|
||||||
Use a relative duration or absolute time.
|
Use a relative duration, absolute time, or integer (Unix timestamp in seconds).
|
||||||
For example, `-1h` or `2019-08-28T22:00:00Z`.
|
For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`.
|
||||||
Durations are relative to `now()`.
|
Durations are relative to `now()`.
|
||||||
Integers are nanosecond Unix timestamps.
|
|
||||||
Defaults to `now()`.
|
Defaults to `now()`.
|
||||||
|
|
||||||
_**Data type:** Duration | Time | Integer_
|
_**Data type:** Duration | Time | Integer_
|
||||||
|
|
|
@ -32,19 +32,17 @@ monitor.from(
|
||||||
|
|
||||||
### start
|
### start
|
||||||
The earliest time to include in results.
|
The earliest time to include in results.
|
||||||
Use a relative duration or absolute time.
|
Use a relative duration, absolute time, or integer (Unix timestamp in seconds).
|
||||||
For example, `-1h` or `2019-08-28T22:00:00Z`.
|
For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`.
|
||||||
Durations are relative to `now()`.
|
Durations are relative to `now()`.
|
||||||
Integers are nanosecond Unix timestamps.
|
|
||||||
|
|
||||||
_**Data type:** Duration | Time | Integer_
|
_**Data type:** Duration | Time | Integer_
|
||||||
|
|
||||||
### stop
|
### stop
|
||||||
The latest time to include in results.
|
The latest time to include in results.
|
||||||
Use a relative duration or absolute time.
|
Use a relative duration, absolute time, or integer (Unix timestamp in seconds).
|
||||||
For example, `-1h` or `2019-08-28T22:00:00Z`.
|
For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`.
|
||||||
Durations are relative to `now()`.
|
Durations are relative to `now()`.
|
||||||
Integers are nanosecond Unix timestamps.
|
|
||||||
Defaults to `now()`.
|
Defaults to `now()`.
|
||||||
|
|
||||||
_**Data type:** Duration | Time | Integer_
|
_**Data type:** Duration | Time | Integer_
|
||||||
|
|
|
@ -31,19 +31,17 @@ monitor.logs(
|
||||||
|
|
||||||
### start
|
### start
|
||||||
The earliest time to include in results.
|
The earliest time to include in results.
|
||||||
Use a relative duration or absolute time.
|
Use a relative duration, absolute time, or integer (Unix timestamp in seconds).
|
||||||
For example, `-1h` or `2019-08-28T22:00:00Z`.
|
For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`.
|
||||||
Durations are relative to `now()`.
|
Durations are relative to `now()`.
|
||||||
Integers are nanosecond Unix timestamps.
|
|
||||||
|
|
||||||
_**Data type:** Duration | Time | Integer_
|
_**Data type:** Duration | Time | Integer_
|
||||||
|
|
||||||
### stop
|
### stop
|
||||||
The latest time to include in results.
|
The latest time to include in results.
|
||||||
Use a relative duration or absolute time.
|
Use a relative duration, absolute time, or integer (Unix timestamp in seconds).
|
||||||
For example, `-1h` or `2019-08-28T22:00:00Z`.
|
For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`.
|
||||||
Durations are relative to `now()`.
|
Durations are relative to `now()`.
|
||||||
Integers are nanosecond Unix timestamps.
|
|
||||||
Defaults to `now()`.
|
Defaults to `now()`.
|
||||||
|
|
||||||
_**Data type:** Duration | Time | Integer_
|
_**Data type:** Duration | Time | Integer_
|
||||||
|
|
|
@ -55,19 +55,17 @@ _**Data type:** String_
|
||||||
### start
|
### start
|
||||||
<span class="req">Required</span> Earliest time to include in results.
|
<span class="req">Required</span> Earliest time to include in results.
|
||||||
Results **include** points that match the specified start time.
|
Results **include** points that match the specified start time.
|
||||||
Use a relative duration or absolute time.
|
Use a relative duration, absolute time, or integer (Unix timestamp in seconds).
|
||||||
For example, `-1h` or `2019-08-28T22:00:00Z`.
|
For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`.
|
||||||
Durations are relative to `now()`.
|
Durations are relative to `now()`.
|
||||||
Integers are nanosecond Unix timestamps.
|
|
||||||
|
|
||||||
_**Data type:** Duration | Time | Integer_
|
_**Data type:** Duration | Time | Integer_
|
||||||
|
|
||||||
### stop
|
### stop
|
||||||
Latest time to include in results.
|
Latest time to include in results.
|
||||||
Results **exclude** points that match the specified stop time.
|
Results **exclude** points that match the specified stop time.
|
||||||
Use a relative duration or absolute time.
|
Use a relative duration, absolute time, or integer (Unix timestamp in seconds).
|
||||||
For example, `-1h` or `2019-08-28T22:00:00Z`.
|
For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`.
|
||||||
Integers are nanosecond Unix timestamps.
|
|
||||||
Durations are relative to `now()`.
|
Durations are relative to `now()`.
|
||||||
|
|
||||||
Defaults to `now()`.
|
Defaults to `now()`.
|
||||||
|
|
Loading…
Reference in New Issue