Fix the query to get all the AlarmStateHistory objects

It was using Alarm Definition Ids as Alarm Ids

Also, changed it to query Alarmed Metrics to match the given
dimensions instead of the Metric Definitions from the Alarm
Definition Expression. That allows you to get the alarms for a
specific host

Change-Id: I583b8ee017cad032a790de8861fffda07fdcc297