Documentation

sampledata.int() function

Flux 0.128.0+

sampledata.int returns a sample data set with integer values.

import "sampledata"

sampledata.int(
  includeNull: false
)

Parameters

includeNull

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

Examples

Return sample data with integer values

Function
import "sampledata"

sampledata.int()
Output tables
_timetag_value
2021-01-01T00:00:00Zt1-2
2021-01-01T00:00:10Zt110
2021-01-01T00:00:20Zt17
2021-01-01T00:00:30Zt117
2021-01-01T00:00:40Zt115
2021-01-01T00:00:50Zt14
_timetag_value
2021-01-01T00:00:00Zt219
2021-01-01T00:00:10Zt24
2021-01-01T00:00:20Zt2-3
2021-01-01T00:00:30Zt219
2021-01-01T00:00:40Zt213
2021-01-01T00:00:50Zt21

Return integer sample data with null values

Function
import "sampledata"

sampledata.int(includeNull: true)
Output tables
_timetag_value
2021-01-01T00:00:00Zt1-2
2021-01-01T00:00:10Zt1
2021-01-01T00:00:20Zt17
2021-01-01T00:00:30Zt1
2021-01-01T00:00:40Zt1
2021-01-01T00:00:50Zt14
_timetag_value
2021-01-01T00:00:00Zt2
2021-01-01T00:00:10Zt24
2021-01-01T00:00:20Zt2-3
2021-01-01T00:00:30Zt219
2021-01-01T00:00:40Zt2
2021-01-01T00:00:50Zt21

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.