Solved

AIR: Inverting a monitoring task


Userlevel 1

Hi! 

I would like to check if a time series stays within a region for more than a certain amount of time. Is this possible? This would be the equivalent of inverting the “Upper lower threshold” function. Also I would need a time limit for that. 

Perhaps it would be a simple yet powerful addition to the existing functionality: To be able to invert the monitoring task? Some of the monitoring tasks have a time aspect, and some do not.. perhaps all should have it? 

 

Regards

 

 

icon

Best answer by Arun Arunachalam 12 July 2022, 10:40

View original

7 replies

Userlevel 4

Great idea for a feature but this would just be a matter of creating a new model to reflect this. One of the key principles of AIR is to enable flexible models based on the use case. In this case you could have an input be a time frame and then you could check for the value being in a certain time frame and then creating alerts based on that.

Userlevel 1

Great idea for a feature but this would just be a matter of creating a new model to reflect this. One of the key principles of AIR is to enable flexible models based on the use case. In this case you could have an input be a time frame and then you could check for the value being in a certain time frame and then creating alerts based on that.

Thanks for replying!  Not sure if I understand, do you think I can solve this use case with the current functionality in AIR?

Userlevel 4

Hei hei yes that would be possible. You would need to write a model that checks for a given time series value and creates alerts based on if this value remains below a threshold for a given time frame.

Userlevel 1

Hi! 

I need to check if the time series stays within a certain range for some amount of time, so a lower and an upper threshold. I can’t find that functionality in AIR. 

 

The current functionality in AIR let’s me check if the values goes outside of the range, but not if it goes inside of that range… 

“Write a model” do you mean write a model like this in python? 

Userlevel 4

Yup i would create another model in AIR using python to do this with alerts being generated if the values go in a given range. Myself or a data scientist at Cognite can help with this!

Userlevel 3

This is a fantastic use case for AIR but how would we do this if you decouple python modelling from AIR.

Userlevel 4

 

This is a fantastic use case for AIR but how would we do this if you decouple python modelling from AIR.

Thanks again for the great question @ibrahim.alsyed . The way i would recommend working with this use case is to write a function in cognite functions that writes a KPI and then you could select the thresholds to be applied on the KPI based on your use case. One of goals in the future is to make this process much easier to do and reduce the time from KPI generation using user generated code to value.

Reply