Documentation

sampledata.bool() function

Flux 0.128.0+

sampledata.bool returns a sample data set with boolean values.

import "sampledata"

sampledata.bool(
  includeNull: false
)

Parameters

includeNull

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

Examples

Return sample data with boolean values

Function
import "sampledata"

sampledata.bool()
Output tables
_timetag_value
2021-01-01T00:00:00Zt1true
2021-01-01T00:00:10Zt1true
2021-01-01T00:00:20Zt1false
2021-01-01T00:00:30Zt1true
2021-01-01T00:00:40Zt1false
2021-01-01T00:00:50Zt1false
_timetag_value
2021-01-01T00:00:00Zt2false
2021-01-01T00:00:10Zt2true
2021-01-01T00:00:20Zt2false
2021-01-01T00:00:30Zt2true
2021-01-01T00:00:40Zt2true
2021-01-01T00:00:50Zt2false

Return boolean sample data with null values

Function
import "sampledata"

sampledata.bool(includeNull: true)
Output tables
_timetag_value
2021-01-01T00:00:00Zt1true
2021-01-01T00:00:10Zt1
2021-01-01T00:00:20Zt1false
2021-01-01T00:00:30Zt1
2021-01-01T00:00:40Zt1
2021-01-01T00:00:50Zt1false
_timetag_value
2021-01-01T00:00:00Zt2
2021-01-01T00:00:10Zt2true
2021-01-01T00:00:20Zt2false
2021-01-01T00:00:30Zt2true
2021-01-01T00:00:40Zt2
2021-01-01T00:00:50Zt2false

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.