@classmethod
def dump(cls, level, action, **kwargs):
    """Dump the provided event into message queue.

        :param level: An integer as defined by python logging module.
        :param action: An action object for the current operation.
        :param dict kwargs: Other keyword arguments for the operation.
        """
    ctx = action.context
    entity = action.entity
    etype = cls._check_entity(entity)
    if etype == 'CLUSTER':
        cls._notify_cluster_action(ctx, level, entity, action, **kwargs)
    else:
        cls._notify_node_action(ctx, level, entity, action, **kwargs)
