package xapi-rrd

  1. Overview
  2. Docs

* @group Performance Monitoring

type row = {
  1. time : int64;
  2. row_data : float array;
}
type t = {
  1. start_time : int64;
  2. step : int64;
  3. end_time : int64;
  4. legend : string array;
  5. data : row array;
}
val string_of : t -> string

Debugging only

val create : int64 -> Rrd.rra list -> Rrd.rra -> int64 -> int64 -> int64 -> string array -> t
val xml_of : t -> Xmlm.output -> unit
val of_xml : Xmlm.input -> t
val json_of_t : t -> string

Export data from a bunch of rrds. Specify a prefix per rrd to be put onto legend. Note that each rrd *must* have the same timestep and have been updated at the same time, and *must* have homogeneous rras too. If not, those that dont look like the 1st one will be silently dropped. The export format is the rrdtool 'xport' format.

val create_multi : (string * Rrd.rrd) list -> int64 -> int64 -> Rrd.cf_type option -> t
val export : ?json:bool -> (string * Rrd.rrd) list -> int64 -> int64 -> Rrd.cf_type option -> string
val of_string : string -> t
OCaml

Innovation. Community. Security.