add Alarm API Sample Code