---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Data - Scoped, Global

# Data - Scoped, Global {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

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() {#ariaid-title2}

Returns the end time for data in the Data object.
{#DATAS-getEnd__table_pb2_1jk_mbb__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 1. Parameters]

{#DATAS-getEnd__table_pb2_1jk_mbb} {#DATAS-getEnd__table_qb2_1jk_mbb__entry__2}

| Type | Description |
|-|-|
| GlideDateTime | The end of the time period. |
[Table 2. Returns]

{#DATAS-getEnd__table_qb2_1jk_mbb}

## Scoped Data - getLabel() {#ariaid-title3}

Returns the label assigned by the sn_clotho.ClothoTransform.label() method.
{#DATAS-getLabel__table_b1x_5fz_31b__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 3. Parameters]

{#DATAS-getLabel__table_b1x_5fz_31b} {#DATAS-getLabel__table_c1x_5fz_31b__entry__2}

| Type | Description |
|-|-|
| String | The label assigned to the data. |
[Table 4. Returns]

{#DATAS-getLabel__table_c1x_5fz_31b}

## Scoped Data - getMetricName() {#ariaid-title4}

Returns the name of the metric of the data series. Returns null when the data object is
associated with multiple data series.
{#DATAS-getMetricName__table_ey4_f3z_31b__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 5. Parameters]

{#DATAS-getMetricName__table_ey4_f3z_31b} {#DATAS-getMetricName__table_fy4_f3z_31b__entry__2}

| Type | Description |
|-|-|
| String | Name of the metric field. Returns null when the data object is associated with multiple data series. |
[Table 6. Returns]

{#DATAS-getMetricName__table_fy4_f3z_31b}

## Scoped Data - getPeriod() {#ariaid-title5}

Returns the time period in milliseconds.
{#DATAS-getPeriod__table_tmp_sjk_mbb__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 7. Parameters]

{#DATAS-getPeriod__table_tmp_sjk_mbb} {#DATAS-getPeriod__table_ump_sjk_mbb__entry__2}

| Type | Description |
|-|-|
| Number | The elapsed time in seconds. |
[Table 8. Returns]

{#DATAS-getPeriod__table_ump_sjk_mbb}

## Scoped Data - getStart() {#ariaid-title6}

Returns the start time for data in the Data object.
{#DATAS-getStart__table_lr2_f3k_mbb__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 9. Parameters]

{#DATAS-getStart__table_lr2_f3k_mbb} {#DATAS-getStart__table_mr2_f3k_mbb__entry__2}

| Type | Description |
|-|-|
| GlideDateTime | The time for the first data point. |
[Table 10. Returns]

{#DATAS-getStart__table_mr2_f3k_mbb}

## Scoped Data - getSubject() {#ariaid-title7}

Returns the subject of the data series. Returns null when the data object is associated
with multiple data series.
{#DATAS-getSubject__table_zyg_lhz_31b__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 11. Parameters]

{#DATAS-getSubject__table_zyg_lhz_31b} {#DATAS-getSubject__table_azg_lhz_31b__entry__2}

| Type | Description |
|-|-|
| String | The subject field value of the subject GlideRecord. This is generally the sys_id of the subject GlideRecord. |
[Table 12. Returns]

{#DATAS-getSubject__table_azg_lhz_31b}

## Scoped Data - getTableName() {#ariaid-title8}

Returns the name of the table assigned in the DataSelector class constructor. Returns
null when the data object is associated with multiple data series.
{#DATAS-getTableName__table_kkg_4gz_31b__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 13. Parameters]

{#DATAS-getTableName__table_kkg_4gz_31b} {#DATAS-getTableName__table_lkg_4gz_31b__entry__2}

| Type | Description |
|-|-|
| String | Table name. Returns null when the data object is associated with multiple data series. |
[Table 14. Returns]

{#DATAS-getTableName__table_lkg_4gz_31b}

## Scoped Data - getValues() {#ariaid-title9}

Returns an array of values.
{#DATAS-getValues__table_ex2_cjz_31b__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 15. Parameters]

{#DATAS-getValues__table_ex2_cjz_31b} {#DATAS-getValues__table_fx2_cjz_31b__entry__2}

| Type | Description |
|-|-|
| Array | An array of numbers. |
[Table 16. Returns]

{#DATAS-getValues__table_fx2_cjz_31b}

## Scoped Data - size() {#ariaid-title10}

Returns the number of values in the Data object.
{#DATAS-size__table_zmy_2kz_31b__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 17. Parameters]

{#DATAS-size__table_zmy_2kz_31b} {#DATAS-size__table_any_2kz_31b__entry__2}

| Type | Description |
|-|-|
| Number | The number of values in the object. |
[Table 18. Returns]

{#DATAS-size__table_any_2kz_31b}

