I think that must be a ship's inclinometer. If the ship lists too far to port or starboard, the bell will ring when the rod contacts one of the side posts. Abusive comment hidden. (Show it anyway.)