Sort template list before returning.
[mclu.git] / mclu_status.mli
1 (* mclu: Mini Cloud
2  * Copyright (C) 2014-2015 Red Hat Inc.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  *)
18
19 val get_arg_speclist : unit -> (Arg.key * Arg.spec * Arg.doc) list
20
21 val run : verbose:bool -> string list -> unit
22
23 type node_status = {
24   node : Mclu_conf.node;
25   node_on : bool;               (* true = appears to be switched on *)
26   node_info : Libvirt.Connect.node_info;
27 }
28
29 val node_statuses : ?verbose:bool -> ?nodes:Mclu_conf.node list -> unit -> node_status list
30
31 type node_guest_summary = {
32   node_status : node_status;
33   active_guests : Mclu_list.dom_info list;
34   used_memory : int64;
35   used_vcpus : int;
36   free_memory : int64;
37 }
38
39 val node_guest_summary : ?verbose:bool -> unit -> node_guest_summary list