It looks like these are optional, so you'll want to use `alarm.get('metadata')` I think