add sample alarm rest api