Read all data from the baseline whose specified column (or batch start/end time) falls within the specified dates. Compare with filterBaselineTable, which filters batches by intervals relative to the most recent batch.
The fourth argument is optional: if specified, it is the name of the column to use to perform the filtering. If it is missing, then we return all the data from the batches whose start/end time intersect with the boundaries.
Note: this operator is not a generic operator that works on any type of data, it uses specific data (table) that is generated by the baseline playbook.
Note: BatchStartTime is automatically calculated based on the time-frame in the playbook or the stream time-frame. Also, the off-set is in milliseconds so simply add 3 zero's to the second number to get milliseconds.
LQL Command
filterBaselineTableByTime(baselineTable, "BatchStartTime", "BatchEndTime") filterBaselineTableByTime(baselineTable, "1521078000000", "1521078300000") filterBaselineTableByTime(baselineTable, "BatchStartTime-100000", "BatchEndTime") filterBaselineTableByTime(baselineTable, "BatchStartTime-100000", "BatchEndTime", "lhub_ts") -- Note: BatchStartTime and BatchEndTime refers to the start/end time of the current "query" (or stream batch if you are running the playbook to compute a stream batch, hence the name). In another simple words, it means the current start and end time of the playbook. |