Integrations/Elasticsearch_v2/Elasticsearch_v2.py
def fetch_params_check():
    """If is_fetch is ticked, this function checks that all the necessary parameters for the fetch are entered."""
    str_error = []  # type:List
    if TIME_FIELD == '' or TIME_FIELD is None:
        str_error.append("Index time field is not configured.")

    if FETCH_INDEX == '' or FETCH_INDEX is None:
        str_error.append("Index is not configured.")

    if FETCH_QUERY == '' or FETCH_QUERY is None:
        str_error.append("Query by which to fetch incidents is not configured.")

    if len(str_error) > 0:
        return_error("Got the following errors in test:\nFetches incidents is enabled.\n" + '\n'.join(str_error))
If is_fetch is ticked, this function checks that all the necessary parameters for the fetch are entered.
If is_fetch is ticked, this function checks that all the necessary parameters for the fetch are entered.
If is_fetch is ticked this function checks that all the necessary parameters for the fetch are entered .
def fetch_params_check():
    str_error = []  
    if TIME_FIELD == '' or TIME_FIELD is None:
        str_error.append("Index time field is not configured.")
    if FETCH_INDEX == '' or FETCH_INDEX is None:
        str_error.append("Index is not configured.")
    if FETCH_QUERY == '' or FETCH_QUERY is None:
        str_error.append("Query by which to fetch incidents is not configured.")
    if len(str_error) > 0:
        return_error("Got the following errors in test:\nFetches incidents is enabled.\n" + '\n'.join(str_error))
def fetch_params_check ( ) : str_error = [ ] if TIME_FIELD == '' or TIME_FIELD is None : str_error . append ( "Index time field is not configured." ) if FETCH_INDEX == '' or FETCH_INDEX is None : str_error . append ( "Index is not configured." ) if FETCH_QUERY == '' or FETCH_QUERY is None : str_error . append ( "Query by which to fetch incidents is not configured." ) if len ( str_error ) > 0 : return_error ( "Got the following errors in test:\nFetches incidents is enabled.\n" + '\n' . join ( str_error ) )
If is_fetch is ticked, this function checks that all the necessary parameters for the fetch are entered.
If is_fetch is ticked this function checks that all the necessary parameters for the fetch are entered .
"""If is_fetch is ticked, this function checks that all the necessary parameters for the fetch are entered.""" # type:List