Email Record: Optimal Observation for Cyber-physical Systems