Functions
Categories
Functions are categorized into below groups.
Transform: converts the timeseries datapoints from its datapoint values.
Array to Scalar: converts the array data to scalar timeseries data with some method.
Filter Series: picks up some series that meet certain condition.
Sort: sorts the list of timeseries.
Options: adds option parameters.
Transform Functions
scale
- scale(factor)
Multiplies datapoint by factor at each point.
Examples:
scale(10)
scale(-0.5)
offset
- offset(delta)
Adds delta to each datapoint.
Examples:
offset(50)
offset(-0.5)
delta
- delta()
Calculates difference between datapoint and its before point at each point.
fluctuation
- fluctuation()
Subtracts first datapoint value from each datapoint.
movingAverage
- movingAverage(windowSize)
Calculates the moving average of datapoints over a fixed number of past points, specified by windowSize param.
Examples:
movingAverage(10)
movingAverage(50)
Array to Scalar Functions
toScalarByAvg
- toScalarByAvg()
Converts the array data to the scalar data with the average value.
toScalarByMax
- toScalarByMax()
Converts the array data to the scalar data with the maximum value.
toScalarByMin
- toScalarByMin()
Converts the array data to the scalar data with the minimum value.
toScalarBySum
- toScalarBySum()
Converts the array data to the scalar data with the total value.
toScalarByMed
- toScalarByMed()
Converts the array data to the scalar data with the median value.
toScalarByStd
- toScalarByStd()
Converts the array data to the scalar data with the standard deviation value.
Filter Series Functions
top
- top(number, value)
Returns top N series sorted by value. Available value is as following: avg, min, max, absoluteMin, absoluteMax, and sum.
Examples:
top(5, max)
top(10, avg)
bottom
- bottom(number, value)
Returns bottom N series sorted by value. Available value is as following: avg, min, max, absoluteMin, absoluteMax, and sum.
Examples:
bottom(5, avg)
bottom(10, min)
exclude
- exclude(pattern)
Exclude PV data that match the regular expression.
Examples:
exclude(PV[0-9])
Sort Functions
sortByAvg
- sortByAvg(order)
Sort the list of timeseries by the average value across the time period specified.
Examples:
sortByAvg(desc)
sortByAvg(asc)
sortByMax
- sortByMax(order)
Sort the list of timeseries by the maximum value across the time period specified.
Examples:
sortByMax(desc)
sortByMax(asc)
sortByMin
- sortByMin(order)
Sort the list of timeseries by the minimum value across the time period specified.
Examples:
sortByMin(desc)
sortByMin(asc)
sortBySum
- sortBySum(order)
Sort the list of timeseries by the total value across the time period specified.
Examples:
sortBySum(desc)
sortBySum(asc)
sortByAbsMax
- sortByAbsMax(order)
Sort the list of timeseries by the absolute maximum value across the time period specified.
Examples:
sortByAbsMax(desc)
sortByAbsMax(asc)
sortByAbsMin
- sortByAbsMin(order)
Sort the list of timeseries by the absolute minimum value across the time period specified.
Examples:
sortByAbsMin(desc)
sortByAbsMin(asc)
Options Functions
maxNumPVs
- maxNumPVs(number)
Set maximum number of PVs you can select for a target.
Examples:
maxNumPVs(500)
binInterval
- binInterval(interval)
Set binning interval for processing of data. For example, if binInterval is set 100 and operator in query is set mean then returned values are average values in 100 seconds wide bins.
Examples:
binInterval(100)
disableAutoRaw
- disableAutoRaw(boolean)
Disable auto raw feature.
Examples:
disableAutoRaw(true)
disableAutoRaw(false)
disableExtrapol
- disableExtrapol(boolean)
Disable extrapolation for raw data.
Examples:
disableExtrapol(true)
disableExtrapol(false)