예제 #1
0
def delete_cpu_monitors(**kwargs):
    ''' Delete the specified CPU monitors '''
    required = ['testIds']
    optional = []

    req_args = validate_kwargs(required, optional, **kwargs)
    req_args['type'] = 7  # 7 is the type ID for CPU monitors
    return delete_internal_monitors(**req_args)
예제 #2
0
def delete_process_monitors(**kwargs):
    ''' Delete the specified process monitors '''
    req_args = {'type': 1}  # 1 is the type ID for process monitors
    req_args.update(kwargs)
    return internal.delete_internal_monitors(**req_args)
예제 #3
0
def delete_internal_ping_monitors(**kwargs):
    ''' Delete the specified Ping monitors '''
    req_args = {'type': 5}  # 5 is the type ID for Ping monitors
    req_args.update(kwargs)
    return internal.delete_internal_monitors(**req_args)
예제 #4
0
def delete_process_monitors(**kwargs):
    ''' Delete the specified process monitors '''
    req_args = {'type': 1}  # 1 is the type ID for process monitors
    req_args.update(kwargs)
    return internal.delete_internal_monitors(**req_args)
예제 #5
0
def delete_load_average_monitors(**kwargs):
    """ Delete the specified load monitors """
    req_args = {"type": 6}  # 6 is the type ID for load monitors
    req_args.update(kwargs)
    return internal.delete_internal_monitors(**req_args)
예제 #6
0
def delete_drive_monitors(**kwargs):
    ''' Delete the specified drive monitors '''
    req_args = {'type': 2}  # 2 is the type ID for drive monitors
    req_args.update(kwargs)
    return internal.delete_internal_monitors(**req_args)
예제 #7
0
def delete_load_average_monitors(**kwargs):
    ''' Delete the specified load monitors '''
    req_args = {'type': 6}  # 6 is the type ID for load monitors
    req_args.update(kwargs)
    return internal.delete_internal_monitors(**req_args)
예제 #8
0
def delete_memory_monitors(**kwargs):
    ''' Delete the specified memory monitors '''
    req_args = {'type': 3}  # 3 is the type ID for memory monitors
    req_args.update(kwargs)
    return internal.delete_internal_monitors(**req_args)
예제 #9
0
파일: memory.py 프로젝트: SeanYa/Python-SDK
def delete_memory_monitors(**kwargs):
    """ Delete the specified memory monitors """
    req_args = {"type": 3}  # 3 is the type ID for memory monitors
    req_args.update(kwargs)
    return internal.delete_internal_monitors(**req_args)