SRContext / historyManager in 8.0 from a gateway scoped script

I try to convert SRContext.get() from 7.9 to 8.0
In my case I need to access the historyManager in a gateway scoped script …

from com.inductiveautomation.ignition.gateway import SRContext
context = SRContext.get()
connection = "histo"
qi = [(Long(qdi.id)) for qdi in context.historyManager.getQuarantinedDataInfo(connection)]
1 Like

SRContext was renamed to IgnitionGateway. Be aware that using these classes is absolutely unsupported by IA.

3 Likes