Module Values.RecommendationTriggerSource

A recommendation trigger provides context on the event that produced the referenced recommendations. Recommendations are only referenced in recommendationIds by a single RecommendationTrigger.

Sourcetype nonrec t = {
  1. data : RecommendationTriggerData.t option;
    (*

    A union type containing information related to the trigger.

    *)
  2. id : Uuid.t option;
    (*

    The identifier of the recommendation trigger.

    *)
  3. recommendationIds : RecommendationIdList.t option;
    (*

    The identifiers of the recommendations.

    *)
  4. source : RecommendationSourceType.t option;
    (*

    The source of the recommendation trigger. ISSUE_DETECTION: The corresponding recommendations were triggered by a Contact Lens issue. RULE_EVALUATION: The corresponding recommendations were triggered by a Contact Lens rule.

    *)
  5. type_ : RecommendationTriggerType.t option;
    (*

    The type of recommendation trigger.

    *)
}
Sourceval make : ?data:??? -> ?id:??? -> ?recommendationIds:??? -> ?source:??? -> ?type_:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `String of String_.t ] list | `String of Uuid.t | `Structure of (string * [> `Structure of (string * [> `String of QueryText.t ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t