Module Values.MessageSource

Information about a message.

Sourcetype nonrec t = {
  1. messageId : MessageId.t;
    (*

    The ID to assign to the message. Within each batch sent, each "messageId" must be unique.

    *)
  2. inputName : EphemeralInputName.t;
    (*

    The name of the input into which the message payload is transformed.

    *)
  3. payload : Payload.t;
    (*

    The payload of the message. This can be a JSON string or a Base-64-encoded string representing binary data (in which case you must decode it).

    *)
  4. timestamp : TimestampValue.t option;
    (*

    The timestamp associated with the message.

    *)
}
Sourceval context_ : string
Sourceval make : ?timestamp:??? -> messageId:MessageId.t -> inputName:EphemeralInputName.t -> payload:Payload.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Blob of Payload.t | `String of MessageId.t | `Structure of (string * [> `Long of EpochMilliTimestamp.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