Skip to content

Documentation

DataSources

Data source helpers exposed to CYBERQUEST scripts through CQ.DataSources.

Overview

The CQ.DataSources namespace provides data-source helpers for use in customizable CYBERQUEST scripts, including Data Transformation Service (DTS) and alert scripts.

Available members

Access pathExported class
CQ.DataSources.DataSourceStatusDataSourceStatus

DataSourceStatus

This object reads and adjusts the last local-time marker for the current data source. The timestamp methods use different units as indicated below:

MethodParametersReturns
getLastLocalTimeAsUTCAsTimeStampMilliseconds()None.UTC timestamp in milliseconds.
getLastLocalTimeUTCTimeStampSeconds()None.UTC timestamp in seconds.
getLastLocalTimeStamp()None.Last local timestamp in seconds.
addSecondsToLastLocalTime(seconds)seconds (number): offset to add.undefined; updates the runtime marker in place.
getLastLocalTimeFormatted()None.String formatted as YYYY-MM-DD HH:mm:ss.SSS, based on the marker in milliseconds.

getLastLocalTimeAsUTCAsTimeStampMilliseconds() and getLastLocalTimeUTCTimeStampSeconds() represent the same UTC marker in different units. getLastLocalTimeStamp() returns the local marker in seconds; use getLastLocalTimeFormatted() when a formatted local-time string is needed.