package gapi-ocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. name : string;
    (*

    The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED.

    *)
  2. status : string;
    (*

    Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED.

    *)
  3. url : string;
    (*

    The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED.

    *)
  4. weight : float;
    (*

    Weight that this variation should receive. Only present if the experiment is running. This field is read-only.

    *)
  5. won : bool;
    (*

    True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only.

    *)
}
val name : (t, string) GapiLens.t
val status : (t, string) GapiLens.t
val url : (t, string) GapiLens.t
val weight : (t, float) GapiLens.t
val won : (t, bool) GapiLens.t
val empty : t
val render : t -> GapiJson.json_data_model list
val parse : t -> GapiJson.json_data_model -> t