A rotor and a rotary electric machine containing the rotor are provided. The voltage sensor detects a boosted voltage, and outputs the detected voltage to a first drive controller. A mechanism for automatically emitting an alarm signal when the automatic fire-retardant agent discharging mechanism is activated may further be included.