'Push an event and list of resources to agents, batched per type.
When a list of different resource types is passed to this method,
the push will be sent as separate individual list pushes, one per
resource type.'

@log_helpers.log_method_call
def push(self, context, resource_list, event_type):

    resources_by_type = self._classify_resources_by_type(resource_list)
    for (resource_type, type_resources) in resources_by_type.items():
        self._push(context, resource_type, type_resources, event_type)
