def METHOD_NAME():
    params = ("ccs", "test_names", "inputs", "start_date", "split_asn")
    q = {k: (request.query.get(k, "").strip() or None) for k in params}
    assert q["ccs"], "missing ccs query param"
    ccs = [i.strip() for i in q["ccs"].split(",") if i.strip()]
    for cc in ccs:
        assert len(cc) == 2, "CC must be 2 letters"
    test_names = q["test_names"].split(",") or ["web_connectivity",]
    inputs = q["inputs"]
    assert inputs, "Inputs are required"
    inputs = [i.strip() for i in inputs.split(",") if i.strip()]
    split_asn = q["split_asn"] is not None
    start_date = q["start_date"]
    if start_date:
        start_date = datetime.strptime(start_date, "%Y-%m-%d")
    else:
        start_date = datetime.now() - timedelta(days=10)
    log.debug("Serving query %s %s %s %s", ccs, test_names, inputs, start_date)
    charts = plot_series(db_conn, ccs, test_names, inputs, start_date, split_asn)
    form = dict(
        inputs=",".join(inputs),
        test_names=",".join(test_names),
        ccs=",".join(ccs),
        start_date=start_date.strftime("%Y-%m-%d"),
        split_asn=split_asn,
    )
    return dict(charts=charts, title="Detector", form=form)