Kapacitor snapshot example for anomaly detection

Hi,
can somebody share code for anomaly detection example with snapshot/restore functions implemented. I tried understanding Moving average.py example, I was not able to get it

Thanks

Please Ignore this post. I was able to do it… Thanks