package devkit

  1. Overview
  2. Docs

Counters with arbitrary attributes

type t = private (string * json) list
val make : ?attrs:(string * json) list -> string -> t
val set_count : t -> (string * json) list -> int -> unit
val set_bytes : t -> (string * json) list -> int -> unit
val set_time : t -> (string * json) list -> Time.t -> unit
val add_count : t -> (string * json) list -> int -> unit
val add_bytes : t -> (string * json) list -> int -> unit
val add_time : t -> (string * json) list -> Time.t -> unit
OCaml

Innovation. Community. Security.