Flux universe package (built-in)
The Flux universe
package includes all functions that do not require a package import statement and are usable without any extra setup.
The “built-in” functions in the universe
package provide a foundation for working with data using Flux.
Options
The universe
package provides the following options:
option now = () => system.time()
option location = timezone.utc
now
Function option that, by default, returns the current system time.
The value of now()
is cached at query time, so all instances of now()
in a
script return the same time value.
location
Location used to determine timezone. Default is timezone.utc
.
Flux uses the timezone information (commonly referred to as “tz” or “zoneinfo”) provided by the operating system.
Functions
- aggregateWindow()
- bool()
- bottom()
- buckets()
- bytes()
- chandeMomentumOscillator()
- columns()
- contains()
- count()
- cov()
- covariance()
- cumulativeSum()
- derivative()
- difference()
- display()
- distinct()
- doubleEMA()
- drop()
- duplicate()
- duration()
- elapsed()
- exponentialMovingAverage()
- fill()
- filter()
- findColumn()
- findRecord()
- first()
- float()
- getColumn()
- getRecord()
- group()
- highestAverage()
- highestCurrent()
- highestMax()
- histogram()
- histogramQuantile()
- holtWinters()
- hourSelection()
- increase()
- int()
- integral()
- join()
- kaufmansAMA()
- kaufmansER()
- keep()
- keys()
- keyValues()
- last()
- length()
- limit()
- linearBins()
- logarithmicBins()
- lowestAverage()
- lowestCurrent()
- lowestMin()
- map()
- max()
- mean()
- median()
- min()
- mode()
- movingAverage()
- now()
- pearsonr()
- pivot()
- quantile()
- range()
- reduce()
- relativeStrengthIndex()
- rename()
- sample()
- set()
- skew()
- sleep()
- sort()
- spread()
- stateCount()
- stateDuration()
- stddev()
- string()
- sum()
- tableFind()
- tail()
- time()
- timedMovingAverage()
- timeShift()
- timeWeightedAvg()
- toBool()
- today()
- toDuration()
- toFloat()
- toInt()
- top()
- toString()
- toTime()
- toUInt()
- tripleEMA()
- tripleExponentialDerivative()
- truncateTimeColumn()
- uint()
- union()
- unique()
- window()
- yield()
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
InfluxDB Cloud customers can contact InfluxData Support.