Module Ketrew_measurement.Item (.ml)

module Item: sig .. end
This module allows to construct and transform measurmeent items.

type t 
val create : Ketrew_measurement.measurement -> t
val make_http_request : string -> Cohttp.Request.t -> Ketrew_measurement.http_request
val make_reponse_log : string -> int -> Ketrew_measurement.response_log
val incoming_request : Ketrew_measurement.http_request -> t
val end_of_request : Ketrew_measurement.http_request ->
Ketrew_measurement.response_log -> t
val tag : string -> t
val time : t -> Ketrew_pervasives.Time.t
Get the date recorded for the item.
val compare_by_time : t -> t -> int
Comparison function that can be given to functions like List.sort.
val to_strings : t -> string list
Convert an item to a list of displayable functions.
val collect_http_requests : t list ->
< body_length : int; date : Ketrew_pervasives.Time.t; duration : float;
uri : string >
list
Go through a list of Items and find pairs of incoming/ending HTTP requests, return statistics about them.