Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

TransformResult - Scoped, Global

The TransformResult API provides methods that return the result of a transformation run on time-series data.

You can use this API in both scoped and global server scripts. When using the Transformer class in a scoped application, use the sn_clotho namespace identifier.

There is no constructor for this class. TransformResult objects are returned by many TransformPart methods.

This class is part of the MetricBase application.

Parent Topic:Server API reference

TransformResult - byGroup()

Returns an array of Data objects. Returns an error if no group was specified for the transform.

NameTypeDescription
None  
TypeDescription
ArrayAn array of Data objects, with each object corresponding to a group.

TransformResult - getByLabel(String label)

Returns the transformed data with the specified label.

NameTypeDescription
labelStringThe label that identifies the data to be retrieved.
TypeDescription
DataThe Data object with the transform results.

TransformResult - getData()

Returns a single Data object, or null if the result is empty.

NameTypeDescription
None  
TypeDescription
DataThe Data object with the transform results.

TransformResult - toArray()

Returns the transformed data as an array. This method turns a Data object into an array.

NameTypeDescription
None  
TypeDescription
ArrayThe Data object formatted as an array.