Fix entity retrieval in CloudMonitorAlarm

Closes #510