---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/servicenow-platform

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# MetricBase APIs

# Get familiar with MetricBase
APIs {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 Minuten Lesedauer

Experiment with MetricBase APIs
using Data Explorer that is part of the
MetricBase Demo application. Data Explorer uses the data installed
with the MetricBase Demo application.

## Vorbereitungen

Role required: clotho_admin

## Warum und wann dieser Vorgang ausgeführt wird

Data Explorer is a playground where you can see and edit example
scripts that visualize data included with the MetricBase Demo
application. The example scripts use the MetricBase JavaScript APIs.
For information on the MetricBase JavaScript APIs, see [Client](https://www.servicenow.com/docs/access?context=ClientScopedAPI&version=australia&pubname=australia-api-reference&ft:locale=en-US), [Data](https://www.servicenow.com/docs/access?context=DataScopedAPI&version=australia&pubname=australia-api-reference&ft:locale=en-US), [DataBuilder](https://www.servicenow.com/docs/access?context=DataBuilderScopedAPI&version=australia&pubname=australia-api-reference&ft:locale=en-US), [Transformer](https://www.servicenow.com/docs/access?context=TransformerScopedAPI&version=australia&pubname=australia-api-reference&ft:locale=en-US), [TransformPart](https://www.servicenow.com/docs/access?context=TransformPartScopedAPI&version=australia&pubname=australia-api-reference&ft:locale=en-US), [TransformResult](https://www.servicenow.com/docs/access?context=TransformResultScopedAPI&version=australia&pubname=australia-api-reference&ft:locale=en-US).

Note that the now/v1/clotho/transform/topic API endpoint is reserved for internal use
only.

Example scripts use either:

* Transforms, which use the [Transformer](https://www.servicenow.com/docs/access?context=TransformerScopedAPI&version=australia&pubname=australia-api-reference&ft:locale=en-US) method.
* Machine Language, trained models that predict expected behavior. All the scripts without "Transform" in their title use Machine Language.
{#metricbase-data-explorer__ul_s3d_bq1_5gb}

## Prozedur

1. Navigate to AllMetricBase DemoData Explorer.  
   The Data Explorer displays.  

   When you run a script, the data visualization appears under
   Data Explorer Script Result Display.
2. Select one of the sample scripts to run in the Example Script menu.  
3. Click Load Example.
4. Click Run.  
   The script displays the data visualization under Data Explorer Script Result Display.
5. **Wahlweise:** Change the values or statements in the script or write an entirely new script and click Run.  
   Hinweis:  
   If you want to save the changes you made in the script, click Save.
6. Under Server Output, look at the server's response that might include error information.

## Beispiel

{#metricbase-data-explorer__table_v2g_vkq_23b__entry__2}

| Example script | Definition and visualization |
|:-|:-|
| Simple Transform | Uses the transformer API to display a single time-series metric, the average speed of the drones: `transformer.metric('mb_demo_mt_speed').avg`(). |
| Simple Transform with Grouping | Uses the transformer API to display a group of time-series metrics, the average altitude of the fleet of the drones: transformer.groupBy("fleet").metric("mb_demo_mt_altitude"). avg().label('avg - %g:fleet:') |
| Normal Model | Models normal data, which approximates a bell-shaped or Gaussian curve for distributed values. |
| Linear Model | Creates a line to summarize the current data and predict future values. This example, about the remaining charge in drone batteries, graphs both the trained model values and the average of the values. var builder = new sn_clotho.Transformer(drones); var fit = builder.metric("mb_demo_nt_rem_battery").resample(100). fit({model:"linear"}).label("Fitted"); builder.metric("nb_demp_mt_rem_battery").avg().label("Original") |
| Seasonal Trend Decomposition Model | Uses a seasonal trend model so that data can be subtracted to reveal non-seasonal trends. This model is similar in purpose to the Holt Winters model but arrives at the result using different algorithms. var builder = new sn_clotho.Transformer(drones); var metric = "nb_demo_mt_rem_battery"; var fit = builder.metric(metric).fit({model:"STL",periodicity:"PT2H", innerCycles:1, outerCycles:10}) |
| Holt Winters Model | Uses the Holt Winters, seasonal trend model so that data can be subtracted to reveal non-seasonal trends. This model is similar in purpose to the Seasonal Trend Decomposition model but arrives at the result using different algorithms. |
| ARIMA Model | The most general class of models for predicting time-series data that has no trend, meaning all the data has the same value or the values fluctuate sinusoidally around the mean. |
| Deviation Model | Uses chisquare model to show the differences between the real data and the model's prediction. var metric = "nb_demo_mt_rem_battery"; builder.metric(metric).deviation(model, "chiSquare"); |
[Tabelle : 1. Example scripts]

{#metricbase-data-explorer__table_v2g_vkq_23b}

