Module Values.MessageDataSource

A message returned by the GetMetricDataAPI, including a code and a description. If a cross-Region GetMetricData operation fails with a code of Forbidden and a value of Authentication too complex to retrieve cross region data, you can correct the problem by running the GetMetricData operation in the same Region where the metric data is.

Sourcetype nonrec t = {
  1. code : MessageDataCode.t option;
    (*

    The error code or status code associated with the message.

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

    The message text.

    *)
}
Sourceval make : ?code:??? -> ?value:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of MessageDataCode.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