Module Values_0.ContactMetricResultSource

Contains the result of a requested metric for the contact. This object is returned as part of the GetContactMetrics response and includes both the metric name and its calculated value.

Sourcetype nonrec t = {
  1. name : ContactMetricName.t option;
    (*

    The name of the metric that was retrieved. This corresponds to the metric name specified in the request, such as POSITION_IN_QUEUE or ESTIMATED_WAIT_TIME.

    *)
  2. value : ContactMetricValue.t option;
    (*

    The calculated value for the requested metric. This object contains the numeric result based on the contact's current state in the queue.

    *)
}
Sourceval make : ?name:??? -> ?value:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Structure of (string * [> `Double of Double.t ]) 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