def build_device_url(domain, device_id): """Builds the link on the report when you click on the device to get a filtered view of the metadata.""" return build_url_util("/reports/%s/custom/metadata?filter_deviceid=%s" %\ (domain.id, device_id))