Alarm Configuration return hostname?

In Alarm Configuration notification how would you return hostname and Device name in Custom Subject or Custom message?