Documentation

sampledata.uint() function

Flux 0.128.0+

sampledata.uint returns a sample data set with unsigned integer values.

import "sampledata"

sampledata.uint(
  includeNull: false
)

Parameters

includeNull

Include null values in the returned dataset. Default is false.

Examples

Return sample data with unsigned integer values

Function
import "sampledata"

sampledata.uint()
Output tables
_time tag _value
2021-01-01T00:00:00Z t1 18446744073709551614
2021-01-01T00:00:10Z t1 10
2021-01-01T00:00:20Z t1 7
2021-01-01T00:00:30Z t1 17
2021-01-01T00:00:40Z t1 15
2021-01-01T00:00:50Z t1 4
_time tag _value
2021-01-01T00:00:00Z t2 19
2021-01-01T00:00:10Z t2 4
2021-01-01T00:00:20Z t2 18446744073709551613
2021-01-01T00:00:30Z t2 19
2021-01-01T00:00:40Z t2 13
2021-01-01T00:00:50Z t2 1

Return unsigned integer sample data with null values

Function
import "sampledata"

sampledata.uint(includeNull: true)
Output tables
_time tag _value
2021-01-01T00:00:00Z t1 18446744073709551614
2021-01-01T00:00:10Z t1
2021-01-01T00:00:20Z t1 7
2021-01-01T00:00:30Z t1
2021-01-01T00:00:40Z t1
2021-01-01T00:00:50Z t1 4
_time tag _value
2021-01-01T00:00:00Z t2
2021-01-01T00:00:10Z t2 4
2021-01-01T00:00:20Z t2 18446744073709551613
2021-01-01T00:00:30Z t2 19
2021-01-01T00:00:40Z t2
2021-01-01T00:00:50Z t2 1

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.