Module Values.MetricAttributeSource

Contains information on a metric that a metric attribution reports on. For more information, see Measuring impact of recommendations.

Sourcetype nonrec t = {
  1. eventType : EventType.t;
    (*

    The metric's event type.

    *)
  2. metricName : MetricName.t;
    (*

    The metric's name. The name helps you identify the metric in Amazon CloudWatch or Amazon S3.

    *)
  3. expression : MetricExpression.t;
    (*

    The attribute's expression. Available functions are SUM() or SAMPLECOUNT(). For SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example SUM(Items.PRICE).

    *)
}
Sourceval context_ : string
Sourceval make : eventType:EventType.t -> metricName:MetricName.t -> expression:MetricExpression.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of EventType.t ]) 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