Module Values.TransformSource

Contains an asset transform property. A transform is a one-to-one mapping of a property's data points from one form to another. For example, you can use a transform to convert a Celsius data stream to Fahrenheit by applying the transformation expression to each data point of the Celsius stream. A transform can only have a data type of DOUBLE and consume properties with data types of INTEGER or DOUBLE. For more information, see Transforms in the IoT SiteWise User Guide.

Sourcetype nonrec t = {
  1. expression : Expression.t;
    (*

    The mathematical expression that defines the transformation function. You can specify up to 10 variables per expression. You can specify up to 10 functions per expression. For more information, see Quotas in the IoT SiteWise User Guide.

    *)
  2. variables : ExpressionVariables.t;
    (*

    The list of variables used in the expression.

    *)
  3. processingConfig : TransformProcessingConfig.t option;
    (*

    The processing configuration for the given transform property. You can configure transforms to be kept at the edge or forwarded to the Amazon Web Services Cloud. You can also configure transforms to be computed at the edge or in the cloud.

    *)
}
Sourceval context_ : string
Sourceval make : ?processingConfig:??? -> expression:Expression.t -> variables:ExpressionVariables.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of VariableName.t | `Structure of (string * [> `List of [> `Structure of (string * [> `String of ID.t ]) list ] list | `String of Macro.t ]) list ]) list ] list | `String of Expression.t | `Structure of (string * [> `Enum of string | `Structure of (string * [> `Enum of string ]) 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