def dump(self, o_name=None, details=False, raw=False):
        """Dump an host (all hosts) from the arbiter.

        The arbiter will get the host (all hosts) information from all its schedulers.

        This gets the main host information from the scheduler. If details is set, then some
        more information are provided. This will not get all the host known attributes but only
        a reduced set that will inform about the host and its services status

        If raw is set the information are provided in two string lists formated as CSV strings.
        The first list element contains the hosts information and the second one contains the
        services information.

        If an host name is provided, this function will get only this host information, else
        all the scheduler hosts are returned.

        As an example (in raw format):
        {
            scheduler-master-3: [
                [
                    "type;host;name;last_check;state_id;state;state_type;is_problem;
                    is_impact;output",
                    "localhost;host;localhost;1532451740;0;UP;HARD;False;False;
                    Host assumed to be UP",
                    "host_2;host;host_2;1532451988;1;DOWN;HARD;True;False;I am always Down"
                ],
                [
                    "type;host;name",
                    "host_2;service;dummy_no_output;1532451981;0;OK;HARD;False;True;
                    Service internal check result: 0",
                    "host_2;service;dummy_warning;1532451960;4;UNREACHABLE;HARD;False;True;
                    host_2-dummy_warning-1",
                    "host_2;service;dummy_unreachable;1532451987;4;UNREACHABLE;HARD;False;True;
                    host_2-dummy_unreachable-4",
                    "host_2;service;dummy_random;1532451949;4;UNREACHABLE;HARD;False;True;
                    Service internal check result: 2",
                    "host_2;service;dummy_ok;1532452002;0;OK;HARD;False;True;host_2",
                    "host_2;service;dummy_critical;1532451953;4;UNREACHABLE;HARD;False;True;
                    host_2-dummy_critical-2",
                    "host_2;service;dummy_unknown;1532451945;4;UNREACHABLE;HARD;False;True;
                    host_2-dummy_unknown-3",
                    "host_2;service;dummy_echo;1532451973;4;UNREACHABLE;HARD;False;True;"
                ]
            ],
            scheduler-master-2: [
            [
                "type;host;name;last_check;state_id;state;state_type;is_problem;is_impact;output",
                "host_0;host;host_0;1532451993;0;UP;HARD;False;False;I am always Up",
                "BR_host;host;BR_host;1532451991;0;UP;HARD;False;False;Host assumed to be UP"
            ],
            [
                "type;host;name;last_check;state_id;state;state_type;is_problem;is_impact;output",
                "host_0;service;dummy_no_output;1532451970;0;OK;HARD;False;False;
                Service internal check result: 0",
                "host_0;service;dummy_unknown;1532451964;3;UNKNOWN;HARD;True;False;
                host_0-dummy_unknown-3",
                "host_0;service;dummy_random;1532451991;1;WARNING;HARD;True;False;
                Service internal check result: 1",
                "host_0;service;dummy_warning;1532451945;1;WARNING;HARD;True;False;
                host_0-dummy_warning-1",
                "host_0;service;dummy_unreachable;1532451986;4;UNREACHABLE;HARD;True;False;
                host_0-dummy_unreachable-4",
                "host_0;service;dummy_ok;1532452012;0;OK;HARD;False;False;host_0",
                "host_0;service;dummy_critical;1532451987;2;CRITICAL;HARD;True;False;
                host_0-dummy_critical-2",
                "host_0;service;dummy_echo;1532451963;0;OK;HARD;False;False;",
                "BR_host;service;dummy_critical;1532451970;2;CRITICAL;HARD;True;False;
                BR_host-dummy_critical-2",
                "BR_host;service;BR_Simple_And;1532451895;1;WARNING;HARD;True;True;",
                "BR_host;service;dummy_unreachable;1532451981;4;UNREACHABLE;HARD;True;False;
                BR_host-dummy_unreachable-4",
                "BR_host;service;dummy_no_output;1532451975;0;OK;HARD;False;False;
                Service internal check result: 0",
                "BR_host;service;dummy_unknown;1532451955;3;UNKNOWN;HARD;True;False;
                BR_host-dummy_unknown-3",
                "BR_host;service;dummy_echo;1532451981;0;OK;HARD;False;False;",
                "BR_host;service;dummy_warning;1532451972;1;WARNING;HARD;True;False;
                BR_host-dummy_warning-1",
                "BR_host;service;dummy_random;1532451976;4;UNREACHABLE;HARD;True;False;
                Service internal check result: 4",
                "BR_host;service;dummy_ok;1532451972;0;OK;HARD;False;False;BR_host"
            ]
        ],
        ...

        More information are available in the scheduler correponding API endpoint.

        :param o_type: searched object type
        :type o_type: str
        :param o_name: searched object name (or uuid)
        :type o_name: str
        :return: serialized object information
        :rtype: str
        """
        if details is not False:
            details = bool(details)
        if raw is not False:
            raw = bool(raw)

        res = {}
        for scheduler_link in self.app.conf.schedulers:
            sched_res = scheduler_link.con.get('dump', {'o_name': o_name,
                                                        'details': '1' if details else '',
                                                        'raw': '1' if raw else ''},
                                               wait=True)
            if isinstance(sched_res, dict) and \
                    '_status' in sched_res and sched_res['_status'] == 'ERR':
                continue
            res[scheduler_link.name] = sched_res
        return res
def dump ( self , o_name = None , details = False , raw = False ) : if details is not False : details = bool ( details ) if raw is not False : raw = bool ( raw ) res = { } for scheduler_link in self . app . conf . schedulers : sched_res = scheduler_link . con . get ( 'dump' , { 'o_name' : o_name , 'details' : '1' if details else '' , 'raw' : '1' if raw else '' } , wait = True ) if isinstance ( sched_res , dict ) and '_status' in sched_res and sched_res [ '_status' ] == 'ERR' : continue res [ scheduler_link . name ] = sched_res return res
Dump an host (all hosts) from the arbiter.

        The arbiter will get the host (all hosts) information from all its schedulers.

        This gets the main host information from the scheduler. If details is set, then some
        more information are provided. This will not get all the host known attributes but only
        a reduced set that will inform about the host and its services status

        If raw is set the information are provided in two string lists formated as CSV strings.
        The first list element contains the hosts information and the second one contains the
        services information.

        If an host name is provided, this function will get only this host information, else
        all the scheduler hosts are returned.

        As an example (in raw format):
        {
            scheduler-master-3: [
                [
                    "type;host;name;last_check;state_id;state;state_type;is_problem;
                    is_impact;output",
                    "localhost;host;localhost;1532451740;0;UP;HARD;False;False;
                    Host assumed to be UP",
                    "host_2;host;host_2;1532451988;1;DOWN;HARD;True;False;I am always Down"
                ],
                [
                    "type;host;name",
                    "host_2;service;dummy_no_output;1532451981;0;OK;HARD;False;True;
                    Service internal check result: 0",
                    "host_2;service;dummy_warning;1532451960;4;UNREACHABLE;HARD;False;True;
                    host_2-dummy_warning-1",
                    "host_2;service;dummy_unreachable;1532451987;4;UNREACHABLE;HARD;False;True;
                    host_2-dummy_unreachable-4",
                    "host_2;service;dummy_random;1532451949;4;UNREACHABLE;HARD;False;True;
                    Service internal check result: 2",
                    "host_2;service;dummy_ok;1532452002;0;OK;HARD;False;True;host_2",
                    "host_2;service;dummy_critical;1532451953;4;UNREACHABLE;HARD;False;True;
                    host_2-dummy_critical-2",
                    "host_2;service;dummy_unknown;1532451945;4;UNREACHABLE;HARD;False;True;
                    host_2-dummy_unknown-3",
                    "host_2;service;dummy_echo;1532451973;4;UNREACHABLE;HARD;False;True;"
                ]
            ],
            scheduler-master-2: [
            [
                "type;host;name;last_check;state_id;state;state_type;is_problem;is_impact;output",
                "host_0;host;host_0;1532451993;0;UP;HARD;False;False;I am always Up",
                "BR_host;host;BR_host;1532451991;0;UP;HARD;False;False;Host assumed to be UP"
            ],
            [
                "type;host;name;last_check;state_id;state;state_type;is_problem;is_impact;output",
                "host_0;service;dummy_no_output;1532451970;0;OK;HARD;False;False;
                Service internal check result: 0",
                "host_0;service;dummy_unknown;1532451964;3;UNKNOWN;HARD;True;False;
                host_0-dummy_unknown-3",
                "host_0;service;dummy_random;1532451991;1;WARNING;HARD;True;False;
                Service internal check result: 1",
                "host_0;service;dummy_warning;1532451945;1;WARNING;HARD;True;False;
                host_0-dummy_warning-1",
                "host_0;service;dummy_unreachable;1532451986;4;UNREACHABLE;HARD;True;False;
                host_0-dummy_unreachable-4",
                "host_0;service;dummy_ok;1532452012;0;OK;HARD;False;False;host_0",
                "host_0;service;dummy_critical;1532451987;2;CRITICAL;HARD;True;False;
                host_0-dummy_critical-2",
                "host_0;service;dummy_echo;1532451963;0;OK;HARD;False;False;",
                "BR_host;service;dummy_critical;1532451970;2;CRITICAL;HARD;True;False;
                BR_host-dummy_critical-2",
                "BR_host;service;BR_Simple_And;1532451895;1;WARNING;HARD;True;True;",
                "BR_host;service;dummy_unreachable;1532451981;4;UNREACHABLE;HARD;True;False;
                BR_host-dummy_unreachable-4",
                "BR_host;service;dummy_no_output;1532451975;0;OK;HARD;False;False;
                Service internal check result: 0",
                "BR_host;service;dummy_unknown;1532451955;3;UNKNOWN;HARD;True;False;
                BR_host-dummy_unknown-3",
                "BR_host;service;dummy_echo;1532451981;0;OK;HARD;False;False;",
                "BR_host;service;dummy_warning;1532451972;1;WARNING;HARD;True;False;
                BR_host-dummy_warning-1",
                "BR_host;service;dummy_random;1532451976;4;UNREACHABLE;HARD;True;False;
                Service internal check result: 4",
                "BR_host;service;dummy_ok;1532451972;0;OK;HARD;False;False;BR_host"
            ]
        ],
        ...

        More information are available in the scheduler correponding API endpoint.

        :param o_type: searched object type
        :type o_type: str
        :param o_name: searched object name (or uuid)
        :type o_name: str
        :return: serialized object information
        :rtype: str