#check logic
        status = 'OK'
        nb_docs_message = "{l} docs indexed in {t}s ".format(
            l=nb_docs_diff,
            t=measurement_time
        )
        if nb_docs_diff <= s_warning:
            status = 'Warning'
        if nb_docs_diff <= s_critical:
            status = 'Critical'


        #Format perf data string
        con_perf_data_string = OutputFormatHelpers.perf_data_string(
            label="{t}s_indexed_doc".format(t=measurement_time),
            value=nb_docs_diff,
            warn=s_warning,
            crit=s_critical
        )

        #format OUtput
        output = OutputFormatHelpers.check_output_string(
            status,
            nb_docs_message,
            [con_perf_data_string]
        )

        print(output)

    except Exception as e:
        if debug:
            print(e)
        if disk_io_op >= s_critical:
            status = 'Critical'
            comment='too hgih'

        #format output
        disk_io_op_comment=disk_io_op_comment_tempalte.format(
            c=comment,
            v=disk_io_op
        )


        #Format perf data string
        con_perf_data_string = OutputFormatHelpers.perf_data_string(
            label='disk_io_op',
            value=disk_io_op,
            warn=s_warning,
            crit=s_critical,
            UOM='IOps'
        )


        #format OUtput
        output = OutputFormatHelpers.check_output_string(
            status,
            disk_io_op_comment,
            [con_perf_data_string]
        )

        print(output)

    except Exception as e:
            status = 'Critical'
            comment='too hgih'

        #format output
        heap_usage_comment=heap_used_comment_tempalte.format(
            c=comment,
            v=percentage_heap_used
        )


        #Format perf data string
        con_perf_data_string = OutputFormatHelpers.perf_data_string(
            label='heap_used',
            value=percentage_heap_used,
            warn=s_warning,
            crit=s_critical,
            min=0,
            max=100,
            UOM='%'
        )


        #format OUtput
        output = OutputFormatHelpers.check_output_string(
            status,
            heap_usage_comment,
            [con_perf_data_string]
        )

        print(output)