def METHOD_NAME(request):
    """
    :param request:
    :return:
    """
    latest_id = int(request.query_params.get("latest", 0))
    page_size = int(request.query_params.get("pageSize", 20))
    if page_size > 100:
        page_size = 100
    rule_id = request.data.get("name", _("Temporary search"))
    rule_msg = request.data.get("msg")
    rule_level = request.data.get("level")
    rule_sources = request.data.get("sources")
    rule_sinks = request.data.get("sinks")
    rule_propagators = request.data.get("propagators")
    sink_set = set(rule_sinks) if rule_sinks else set()
    source_set = set(rule_sources) if rule_sources else set()
    propagator_set = set(rule_propagators) if rule_propagators else set()
    return (
        latest_id,
        page_size,
        rule_id,
        rule_msg,
        rule_level,
        source_set,
        sink_set,
        propagator_set,
    )