Due to the location at the pumping element (rollers) it is an electric shut down switch IMHO that monitors fuel pressure.
It may well be tied into engine temp and oil pressure as a safety shut down in case of an issue.,
Gen sets commonly have such safety shut down systems.