Skip to main content
Fetches data from a datasource.

Inputs

None.

Outputs

One output. No naming constraint for outputKey and outputName.

Parameters

Example

Macros

Macros are special functions that are translated by ThirdEye to SQL before the query is sent to the database. Macros have access to detection runtime information, like the start and the end time of the detection, the timezone.

AUTO keyword

If the timeColumn value is AUTO, the macro resolves to the primary time column of the table.
timeFormat is obtained internally and can be left blank.
For example:
  • __timeFilter(AUTO,'')
  • __timeGroup(AUTO,'','P1D')

timeFormat strings

Available timeformat strings are:

period strings

Period strings uses the ISO-8601 format. Examples:
  • 'P7D': 7 days
  • 'PT1H': 1 hour