def _check_kwarg_to_data(self, kwargs):
        filtered = {}
        data = {'who': kwargs.get('who'),
                'why': kwargs.get('why'),
                'label': kwargs.get('label'),
                'monitoring_zones_poll': kwargs.get('monitoring_zones', None),
                'target_alias': kwargs.get('target_alias'),
                'target_resolver': kwargs.get('target_resolver'),
                'target_hostname': kwargs.get('target_hostname'),
                'type': kwargs.get('type'),
                'disabled': kwargs.get('disabled', None),
                'details': kwargs.get('details'),
                'metadata': kwargs.get('metadata'),
                }

        if 'period' in kwargs:
            data['period'] = kwargs['period']

        if 'timeout' in kwargs:
            data['timeout'] = kwargs['timeout']

        for k in data.keys():
            if data[k] is not None:
                filtered[k] = data[k]

        return filtered
dataset/ETHPy150Open racker/rackspace-monitoring/rackspace_monitoring/drivers/rackspace.py/RackspaceMonitoringDriver._check_kwarg_to_data/original