Esempio n. 1
0
def set(name, timeout):
    '''
    allocation/explain
    '''
    valid_name = name_validator(name[0])
    valid_time = timeout_validator(timeout)
    allocation_enable(valid_name, valid_time)
Esempio n. 2
0
def nodes(local, timeout, format):
    '''
    _cat/nodes
    '''
    valid_time = timeout_validator(timeout)
    valid_format = format_validator(format)
    nodes_api(local, valid_time, valid_format)
Esempio n. 3
0
def master(local, timeout, format):
    '''
    _cat/master
    '''
    valid_time = timeout_validator(timeout)
    valid_format = format_validator(format)
    master_api(local, valid_time, format)
Esempio n. 4
0
def get(name, local, timeout, format):
    '''
    _cat/shards
    '''
    valid_format = format_validator(format)
    valid_time = timeout_validator(timeout)
    get_shards(name, local, valid_time, valid_format)
Esempio n. 5
0
def get(name, local, timeout, status, format):
    '''
    _cat/indices
    '''
    valid_format = format_validator(format)
    valid_time = timeout_validator(timeout)
    valid_status = status_validator(status)
    get_indices(name, local, valid_time, valid_status, valid_format)
Esempio n. 6
0
def health(local, timeout, index):
    '''
    _cluster/health
    '''
    valid_time = timeout_validator(timeout)
    cluster_api(local, valid_time, index)
Esempio n. 7
0
def create(name, timeout):
    '''
    indices/create
    '''
    valid_time = timeout_validator(timeout)
    create_indices(name, valid_time)
Esempio n. 8
0
def delete(name, timeout):
    '''
    indices/delete
    '''
    valid_time = timeout_validator(timeout)
    delete_indices(name, valid_time)
Esempio n. 9
0
def close(name, timeout):
    '''
    indices/_open
    '''
    valid_time = timeout_validator(timeout)
    close_indices(name, valid_time)
Esempio n. 10
0
def open(name, timeout):
    '''
    indices/_open
    '''
    valid_time = timeout_validator(timeout)
    open_indices(name, valid_time)
Esempio n. 11
0
def delete(name, timeout):
    '''
    _template/delete
    '''
    valid_time = timeout_validator(timeout)
    delete_templates(name, valid_time)
Esempio n. 12
0
def get(timeout, flat):
    '''
    _cluster/settings
    '''
    valid_time = timeout_validator(timeout)
    get_settings(valid_time, flat)