Refactor redundant code

Use decorators.

Change-Id: I9c0367256dcac4c63a96120d5cd1abb6a41d863e
Add alarm show resource

Change-Id: Id7bbb211a8ce3699e7a3e88a9aad5d7b6bb7b0cc
Merge commit '830e0bea85124e40bb43c6541c1cb59c46d96e78'