def METHOD_NAME(rule):
    return {
        "alert": rule.name,
        "expr": rulemacro(rule),
        "for": rule.duration,
        "labels": rule.labels,
        "annotations": rule.annotations,
    }