TransformResult - Scoped, Global

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 2분
  • 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.

    TransformResult - byGroup()

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

    표 1. Parameters
    Name Type Description
    None
    표 2. Returns
    Type Description
    Array An array of Data objects, with each object corresponding to a group.

    TransformResult - getByLabel(String label)

    Returns the transformed data with the specified label.

    표 3. Parameters
    Name Type Description
    label String The label that identifies the data to be retrieved.
    표 4. Returns
    Type Description
    Data The Data object with the transform results.

    TransformResult - getData()

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

    표 5. Parameters
    Name Type Description
    None
    표 6. Returns
    Type Description
    Data The Data object with the transform results.

    TransformResult - toArray()

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

    표 7. Parameters
    Name Type Description
    None
    표 8. Returns
    Type Description
    Array The Data object formatted as an array.