Impact Sensor (typical)
The "sensing mass" is a large ball bearing (BB). If there's an impact strong enough to knock it loose from the magnet, it rolls forward and shorts across the contacts. Then the contacts immediately spring it back to the magnet. So it resets as fast as it triggers, every time.
See also:
.
.