Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Transform

import type { Transform } from "https://aws-api.deno.dev/v0.3/services/iotsitewise.ts?docs=full";

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.

interface Transform {
expression: string;
processingConfig?: TransformProcessingConfig | null;
variables: ExpressionVariable[];
}

§Properties

§
expression: string
[src]

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.

§
processingConfig?: TransformProcessingConfig | null
[src]

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.

§

The list of variables used in the expression.