forked from ocurrent/current-bench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcobench.mli
49 lines (37 loc) · 810 Bytes
/
cobench.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
type value
val single : float -> value
val list : float list -> value
type metric
val metric :
name:string ->
?description:string ->
?units:string ->
?trend:Cb_schema.S.trend ->
value ->
metric
type result
val of_metrics : name:string -> metric list -> result
type t
val of_results : result list -> t
val to_json : t -> Yojson.Safe.t
val of_json : Yojson.Safe.t -> t
module Remote : sig
type token
val token :
?url:string ->
owner:string ->
repo:string ->
password:string ->
unit ->
token
type branch = Branch of string | Pull_number of int
val push :
token:token ->
branch:branch ->
commit:string ->
?date:Ptime.t ->
?duration:float ->
t ->
unit Lwt.t
end
val bench : ?quota:float -> string -> string -> (unit -> 'a) -> unit