package metrics

  1. Overview
  2. Docs

Module Metrics.GraphSource

Sourcetype t = graph

The type for graphs.

Sourceval title : t -> string option

title t is t's title.

Sourceval ylabel : t -> string option

title t is t's Y label.

Sourceval yunit : t -> string option

unit t is t's Y unit.

Sourceval id : t -> int

id t is t's unit.

Sourceval v : ?title:string -> ?ylabel:string -> ?yunit:string -> unit -> t

v () is a new graph.

Sourceval list : unit -> t list

list () is the list of graphs.

Sourceval fields : t -> (Src.t * field) list

fields t is the list of t's fields. Field names are unique for a given source.

Sourceval add_field : t -> Src.t -> field -> unit

add_field t src f adds the field f, generated by the source src, to the graph t.

Sourceval remove_field : t -> Src.t -> string -> unit

remove_field t src f removes the field named f, generated from the source src, out of the graph t.

Sourceval enable : t -> unit
Sourceval disable : t -> unit
Sourceval is_active : t -> bool