示例#1
0
def delete_job(**kwargs):
    ''' Delete custom agent jobs '''
    required = {'job_ids': 'jobIds'}
    optional = {}

    req_args = validate_kwargs(required, optional, **kwargs)

    return post(action='deleteJob', **req_args)
示例#2
0
def delete_job(**kwargs):
    ''' Delete custom agent jobs '''
    required = {'job_ids': 'jobIds'}
    optional = {}

    req_args = validate_kwargs(required, optional, **kwargs)

    return post(action='deleteJob', **req_args)
示例#3
0
def delete_agent(**kwargs):
    ''' Delete a custom agent '''
    required = {'agent_ids': 'agentIds'}
    optional = {'delete_monitors': 'deleteMonitors'}

    req_args = validate_kwargs(required, optional, **kwargs)

    return post(action='deleteAgent', **req_args)
示例#4
0
def edit_agent(**kwargs):
    ''' Edit an existing custom agent '''
    required = {'name': 'name', 'agent_id': 'agentId'}
    optional = {'params': 'params'}

    req_args = validate_kwargs(required, optional, **kwargs)

    return post(action='editAgent', **req_args)
示例#5
0
def add_agent(**kwargs):
    ''' Register a new custom agent in Monitis '''
    required = {'name': 'name'}
    optional = {'params': 'params'}

    req_args = validate_kwargs(required, optional, **kwargs)

    return post(action='addAgent', **req_args)
示例#6
0
def delete_agent(**kwargs):
    ''' Delete a custom agent '''
    required = {'agent_ids': 'agentIds'}
    optional = {'delete_monitors': 'deleteMonitors'}

    req_args = validate_kwargs(required, optional, **kwargs)

    return post(action='deleteAgent', **req_args)
示例#7
0
def edit_agent(**kwargs):
    ''' Edit an existing custom agent '''
    required = {'name': 'name', 'agent_id': 'agentId'}
    optional = {'params': 'params'}

    req_args = validate_kwargs(required, optional, **kwargs)

    return post(action='editAgent', **req_args)
示例#8
0
def add_agent(**kwargs):
    ''' Register a new custom agent in Monitis '''
    required = {'name': 'name'}
    optional = {'params': 'params'}

    req_args = validate_kwargs(required, optional, **kwargs)

    return post(action='addAgent', **req_args)
示例#9
0
def edit_job(**kwargs):
    ''' Edit an existing custom agent job '''
    required = {'job_id': 'jobId'}
    optional = {'name': 'name', 'type': 'type', 'interval': 'interval',
                'params': 'params', 'active_flag': 'activeFlag'}

    req_args = validate_kwargs(required, optional, **kwargs)

    return post(action='editJob', **req_args)
示例#10
0
def add_job(**kwargs):
    ''' Add a job to a custom agent '''
    required = {'agent_id': 'agentId', 'name': 'name', 'type': 'type',
                'interval': 'interval', 'params': 'params'}
    optional = {'monitor_id': 'monitorId'}

    req_args = validate_kwargs(required, optional, **kwargs)

    return post(action='addJob', **req_args)
示例#11
0
def edit_job(**kwargs):
    ''' Edit an existing custom agent job '''
    required = {'job_id': 'jobId'}
    optional = {
        'name': 'name',
        'type': 'type',
        'interval': 'interval',
        'params': 'params',
        'active_flag': 'activeFlag'
    }

    req_args = validate_kwargs(required, optional, **kwargs)

    return post(action='editJob', **req_args)
示例#12
0
def add_job(**kwargs):
    ''' Add a job to a custom agent '''
    required = {
        'agent_id': 'agentId',
        'name': 'name',
        'type': 'type',
        'interval': 'interval',
        'params': 'params'
    }
    optional = {'monitor_id': 'monitorId'}

    req_args = validate_kwargs(required, optional, **kwargs)

    return post(action='addJob', **req_args)