sampledata package

The sampledata package provides functions that return basic sample datasets. Import the sampledata package:

import "sampledata"


sampledata.start = 2021-01-01T00:00:00Z
sampledata.stop = 2021-01-01T00:01:00Z
  • sampledata.start represents the earliest time included in sample datasets.
  • sampledata.stop represents the latest time included in sample datasets.


Was this page helpful?

Thank you for your feedback!

Introducing InfluxDB 3.0

The new core of InfluxDB built with Rust and Apache Arrow. Available today in InfluxDB Cloud Dedicated.

Learn more

State of the InfluxDB Cloud Serverless documentation

The new documentation for InfluxDB Cloud Serverless is a work in progress. We are adding new information and content almost daily. Thank you for your patience!

If there is specific information you’re looking for, please submit a documentation issue.