Data - Scoped, Global

  • Freigeben Version: Australia
  • Aktualisiert 12. März 2026
  • 1 Minute Lesedauer
  • The Data API provides a data object that contains the results of transform performed by a sn_clotho.Client.transform() method.

    Do not use a constructor to create an instance of this class, instead use the object returned by the sn_clotho.Client.transform() method.

    You can call this class in scoped and global server scripts. This class runs in the sn_clotho namespace identifier.

    This class is part of the MetricBase application.

    Scoped Data - getEnd()

    Returns the end time for data in the Data object.

    Tabelle : 1. Parameters
    Name Type Description
    None
    Tabelle : 2. Returns
    Type Description
    GlideDateTime The end of the time period.

    Scoped Data - getLabel()

    Returns the label assigned by the sn_clotho.ClothoTransform.label() method.

    Tabelle : 3. Parameters
    Name Type Description
    None
    Tabelle : 4. Returns
    Type Description
    String The label assigned to the data.

    Scoped Data - getMetricName()

    Returns the name of the metric of the data series. Returns null when the data object is associated with multiple data series.

    Tabelle : 5. Parameters
    Name Type Description
    None
    Tabelle : 6. Returns
    Type Description
    String Name of the metric field. Returns null when the data object is associated with multiple data series.

    Scoped Data - getPeriod()

    Returns the time period in milliseconds.

    Tabelle : 7. Parameters
    Name Type Description
    None
    Tabelle : 8. Returns
    Type Description
    Number The elapsed time in seconds.

    Scoped Data - getStart()

    Returns the start time for data in the Data object.

    Tabelle : 9. Parameters
    Name Type Description
    None
    Tabelle : 10. Returns
    Type Description
    GlideDateTime The time for the first data point.

    Scoped Data - getSubject()

    Returns the subject of the data series. Returns null when the data object is associated with multiple data series.

    Tabelle : 11. Parameters
    Name Type Description
    None
    Tabelle : 12. Returns
    Type Description
    String The subject field value of the subject GlideRecord. This is generally the sys_id of the subject GlideRecord.

    Scoped Data - getTableName()

    Returns the name of the table assigned in the DataSelector class constructor. Returns null when the data object is associated with multiple data series.

    Tabelle : 13. Parameters
    Name Type Description
    None
    Tabelle : 14. Returns
    Type Description
    String Table name. Returns null when the data object is associated with multiple data series.

    Scoped Data - getValues()

    Returns an array of values.

    Tabelle : 15. Parameters
    Name Type Description
    None
    Tabelle : 16. Returns
    Type Description
    Array An array of numbers.

    Scoped Data - size()

    Returns the number of values in the Data object.

    Tabelle : 17. Parameters
    Name Type Description
    None
    Tabelle : 18. Returns
    Type Description
    Number The number of values in the object.