def METHOD_NAME(query):
    query = yaml.safe_load(query)
    for timeKey in ["startTime", "endTime"]:
        if isinstance(query.get(timeKey), str):
            query[timeKey] = int(parse_human_time(query[timeKey]).timestamp())
    if not query.get("endTime"):
        query["endTime"] = int(datetime.datetime.now().timestamp())
    return query