:param response_json: the json obj returned from query
        :return:

def _update_state_from_response(self, response_json):
        """
        :param response_json: the json obj returned from query
        :return:
        """
        if 'data' in response_json and response_json['data']['object_type'] == "cloud_clock":
            cloud_clock = response_json.get('data')
            if cloud_clock is None:
                return False

            alarms = cloud_clock.get('alarms')
            for alarm in alarms:
                if alarm.get('object_id') == self.object_id():
                    self.json_state = alarm
                    return True
            return False
        if 'data' in response_json:
            alarm = response_json.get('data')
            self.json_state = alarm
            return True
        self.json_state = response_json
        return True