---
sourceDocument: Australia Telecom Service Operations Management
sourceDocumentLink: https://www.servicenow.com/docs/r/australia/telecom-service-ops

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Telecom Service Operations Management

ft:clusterId :

    - tsom

bundleId :

    - tsom

workflow :

    - Customer and Industry


---

# Metric aggregation configuration reference

# Metric aggregation configuration reference {#ariaid-title1}

Release version: Australia  
Updated November 19, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Metric aggregation configuration reference

This document details the configuration object used in ServiceNow's metric aggregation scripted extension point, which defines how metrics are aggregated from source configuration items (CIs), the aggregation method, and where the results are published.
The configuration varies based on the chosen aggregation mode:hierarchyorflat.
Show full answer Show less  

## Configuration Parameters

The key parameters enable customers to specify the source and target CI classes, the metric to aggregate, the aggregation function, and additional controls such as filtering and traversal depth. These parameters ensure precise control over metric collection and aggregation within the CMDB structure.

* **mode** (required): Choose between *hierarchy* (traverses CMDB relationships downward) or *flat* mode (aggregates metrics tied to an anchor CI).
* **targetCIClass** (required for hierarchy): Defines the CMDB class of the target CI receiving the aggregated metric.
* **sourceCIClass** (required): Specifies the CMDB class of source CIs from which raw metrics are aggregated.
* **sourceMetric** (required): Name of the raw metric collected on source CIs.
* **aggregate** (required): Aggregation function applied to source metric values; options include avg, sum, max, min, count, or p95.
* **calculatedMetricName** (required): Name assigned to the resulting aggregated metric.
* **unit** (optional): Unit label for the calculated metric (e.g., Mbps).
* **level** (optional, hierarchy only): Limits depth of CMDB traversal, defaulting to 4 and capped at 20 to prevent excessive resource traversal.
* **rangeStart** and **rangeEnd** (optional): Define a contiguous range of source CIs by name to aggregate metrics selectively.
* **filters** (optional): Array of field filters to restrict source CIs based on field conditions such as operational status.
* **anchorCiSysId** (required for flat mode): Specifies the sysid of the anchor CI that holds the calculated metric, since flat mode metrics are not tied to a parent CI.

## Filter Object Details

Filters refine the selection of source CIs by applying conditions on specific fields. Each filter includes:

* **field**: The source CI field to evaluate (e.g., operationalstatus).
* **operator**: Comparison operator such as =, !=, \>, \>=, \<, \<=, CONTAINS, STARTSWITH, or IN.
* **value**: The value compared against the field.

## Practical Application for ServiceNow Customers

This configuration reference empowers you to define custom metric aggregation jobs tailored to your CMDB topology and reporting needs. By selecting the appropriate aggregation mode and parameters, you can accurately aggregate performance or status metrics across related resources and publish consolidated metrics at the desired CI level. Filters and traversal limits help ensure efficient and relevant metric aggregation, enabling better operational insights and decision-making.  
The configuration object passed to the metric aggregation scripted extension point defines what to aggregate, how to aggregate it, and where to publish the result. The parameters that apply depend on the aggregation mode.

## Configuration parameters {#metric-aggregation-configuration-reference__section_parameters}

{#metric-aggregation-configuration-reference__table_aggregation_parameters__entry__5}

| Parameter | Type | Applies to mode | Required | Description |
|-|-|-|-|-|
| `mode` | String | Both | Required | Aggregation mode. One of `hierarchy` or `flat`. The mode determines how source resources are selected and where the calculated metric is published. See [Metric aggregation modes](https://www.servicenow.com/docs/2jV5JoVOpHxx7cKC_051Yw "Metric aggregation rolls up raw metrics collected from individual network resources into calculated metrics on parent or anchor configuration items (CIs). The aggregation mode determines how source resources are selected and where the aggregated result is published."). |
| `targetCIClass` | String | Hierarchy | Required (hierarchy) | CMDB class of the parent or target CI that receives the calculated metric, for example `cmdb_ci_baseband_unit`. The aggregation traverses CMDB relationships downward from each target CI to collect the matching source CIs. |
| `sourceCIClass` | String | Both | Required | CMDB class of the source CIs whose raw metric is aggregated, for example `cmdb_ci_mobile_cell`. |
| `sourceMetric` | String | Both | Required | Name of the raw metric collected on the source CIs that is read as input to the aggregation. |
| `aggregate` | String | Both | Required | Aggregate function applied to the source metric values. One of `avg`, `sum`, `max`, `min`, `count`, or `p95`. The calculated value is stored unrounded, as a raw floating-point number. |
| `calculatedMetricName` | String | Both | Required | Name of the calculated metric that the aggregation produces and publishes. |
| `unit` | String | Both | Optional | Unit label applied to the calculated metric, for example `Mbps`. |
| `level` | Integer | Hierarchy | Optional | Depth limit that bounds how far the CMDB traversal descends from each target CI. Prevents the traversal from following relationships beyond the resources you intend to aggregate. Defaults to `4` and is capped at a maximum of `20`; larger values are silently capped. A value of `0` is not treated as "no traversal" --- it falls back to the default of `4`. |
| `rangeStart` | String | Both | Optional | Start of a contiguous range of source resources identified by name, for example `SIM010`. Use with `rangeEnd` to select source CIs by range. |
| `rangeEnd` | String | Both | Optional | End of the contiguous range of source resources identified by name, for example `SIM050`. |
| `filters` | Array | Both | Optional | Field filters that restrict the source CIs to those meeting a condition. Each element is an object with `field`, `operator`, and `value`. See [Filter object](https://www.servicenow.com/docs/F5Ih3JFaVTsMXmn93Tme4A#metric-aggregation-configuration-reference__table_filter_object). |
| `anchorCiSysId` | String | Flat | Required (flat) | The `sys_id` of the anchor CI that holds the calculated metric. In flat mode the result is not tied to an existing parent CI, so you specify an anchor CI to hold it. |
[Table 1. Metric aggregation configuration parameters]

{#metric-aggregation-configuration-reference__table_aggregation_parameters}

## Filter object {#metric-aggregation-configuration-reference__section_filter_object}

Each element of the `filters` array selects source CIs that meet a single field condition.
{#metric-aggregation-configuration-reference__table_filter_object__entry__3}

| Property | Type | Description |
|-|-|-|
| `field` | String | Name of the field on the source CI to evaluate, for example `operational_status`. |
| `operator` | String | Comparison operator applied to the field. One of `=`, `!=`, `>`, `>=`, `<`, `<=`, `CONTAINS`, `STARTSWITH`, or `IN`. |
| `value` | String | Value the field is compared against, for example `1`. |
[Table 2. Filter object properties]

{#metric-aggregation-configuration-reference__table_filter_object}
**Related concepts**   

* [Metric aggregation modes](https://www.servicenow.com/docs/2jV5JoVOpHxx7cKC_051Yw "Metric aggregation rolls up raw metrics collected from individual network resources into calculated metrics on parent or anchor configuration items (CIs). The aggregation mode determines how source resources are selected and where the aggregated result is published.")  
**Related tasks**   

* [Configure a metric aggregation job](https://www.servicenow.com/docs/n2HcANnpIL8MnmKqroJVgw "Configure a scheduled job to aggregate raw metrics into a calculated metric on a parent or anchor configuration item (CI). Aggregated metrics let you view performance data at a higher level of the network.")  
**Related reference**   

* [Metric type IDs](https://www.servicenow.com/docs/EykiIeBowcDjYGzTfVFhUw "Metric type IDs identify each time-series metric that a connector writes to the metrics database. Use these IDs to locate metrics in Insights Explorer or when you build custom dashboards and indicators.")

