As explained in the alert configuration documentation, you can create detection pipelines that form DAGs with execution dependencies. In this example, we use the percentage rule detector, which requires 2 inputs:Documentation Index
Fetch the complete documentation index at: https://docs.startree.ai/llms.txt
Use this file to discover all available pages before exploring further.
baseline and current.
The pipeline looks like this:

DataFetcher nodes:
baselineDataFetcher, which has an output calledbaselineOutputcurrentDataFetcher, which has an output calledcurrentOutput
baselineOutputgoes into thebaselineproperty of the detectorcurrentOutputgoes into thecurrentproperty of the detector
baseline and current properties were not given, the detector would fail.
About the baseline
To ensure the baseline timeframe is correctly computed based on the analysis timeframe,we’ll look at the SQL queries:currentDataFetcheruses the macrowhere __timeFilter(\"${timeColumn}\", '${timeColumnFormat}'): the macro automatically filters on the analysis timeframe.baselineDataFetcheruses the same macro, with an offset:where __timeFilter(\"${timeColumn}\", '${timeColumnFormat}', ${lookback}, ${lookback}), withoffset=P1W.P1Wmeans one week. This means the baseline is one week before the analysis timeframe.

