示例#1
0
def delete_threshold(threshold=None):
    """ Delete given threshold
    """
    code, resp = ThresholdController.destroy(threshold)
    return code, resp
示例#2
0
def update_threshold(threshold=None):
    """ Update given threshold
    """
    body = request.get_json()
    code, resp = ThresholdController.update(threshold, body)
    return code, resp
示例#3
0
def get_threshold(threshold=None):
    """ Get given threshold
    """
    code, resp = ThresholdController.show(threshold)
    return code, resp
示例#4
0
def create_threshold():
    """ Post a new threshold
    """
    body = request.get_json()
    code, resp = ThresholdController.create(body)
    return code, resp
示例#5
0
def get_all_threshold():
    """ Get all report's threshold
    """
    code, resp = ThresholdController.get_all()
    return code, resp