File: metric.ml

package info (click to toggle)
ocaml-eio 1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,548 kB
  • sloc: ml: 14,608; ansic: 1,237; makefile: 25
file content (7 lines) | stat: -rw-r--r-- 206 bytes parent folder | download
1
2
3
4
5
6
7
let create name value units description : Yojson.Safe.t =
  `Assoc [
    "name", `String name;
    "value", (value :> Yojson.Safe.t);
    "units", `String units;
    "description", `String description;
  ]