package xapi-rrd

  1. Overview
  2. Docs

Module Rrd_updatesSource

* @group Performance Monitoring

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

Debugging only

Sourceval create : int64 -> Rrd.rra list -> Rrd.rra -> int64 -> int64 -> int64 -> string array -> t
Sourceval xml_of : t -> Xmlm.output -> unit
Sourceval of_xml : Xmlm.input -> t
Sourceval 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.

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