implemented alarm creation api