Local testing with AIR SDK
Make sure that:
cognite-air-sdkis version 3.0.0 or higher and
cognite-air-workflowis version 2.0.16 or higher
Let's assume the following config.yaml is given:
name: 'Time series'
description: 'A time series that is going to be monitored'
name: 'Lower Threshold'
description: 'When the selected time series crosses down on this threshold an alert will be created.'
name: 'Minimum Length in Minutes'
description: 'Please define how long the threshold needs to crossed before it is registered as an alert. (Note: a smaller amount might lead to more notifications but you can edit this value later on.)'
Then, the following call to the function is needed to run a local test:
It is important to note that all fields from the config.yaml need to be specified in the dictionary of the
data argument. Otherwise the function will fail.
For testing backfilling locally, make sure backfilling is enabled in the config.yaml next to passing in the following additional key value pair in the