---
schema_version: "1"
id: b6713059c069b7b0170f60ed6e081d087bd0e793fd40ab940fd113febe9fffaf
title: Anypoint Custom Metrics Connector Reference
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/custom-metrics-connector/latest/custom-metrics-connector-reference.md
canonical_url: https://docs.mulesoft.com/custom-metrics-connector/latest/custom-metrics-connector-reference
source_site: docs.mulesoft.com
content_type: documentation
content_hash: ccc5ad2554053efaaf9bb535956f508f4163a6387cd3817961fc9bebdfda358d
description: MuleSoft Documentation Site
release: "2.2"
latest: true
---
---
product: Anypoint Custom Metrics Connector
version: 2.2
is-latest-version: true
---

# Anypoint Custom Metrics Connector Reference

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Anypoint Custom Metrics Connector v2.2.0

This is the main class of the extension and provides the entry point from which configurations,
connection providers, operations, and sources can be declared.

## Configurations

---

### Config

Default configuration.

#### Parameters

<table><colgroup><col> <col> <col> <col> <col></colgroup><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default Value</th><th>Required</th></tr></thead><tbody><tr><td><p>Name</p></td><td><p>String</p></td><td><p>The name for this configuration. Connectors reference the configuration with this name.</p></td><td></td><td><p>x</p></td></tr></tbody></table>

## Operations

### Send Custom Metric

`<custom-metrics:send>`

#### Parameters

<table><colgroup><col> <col> <col> <col> <col></colgroup><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default Value</th><th>Required</th></tr></thead><tbody><tr><td><p>Metric Name</p></td><td><div><div><p>String</p></div></div></td><td></td><td></td><td><p>x</p></td></tr><tr><td><p>Enter contextual information:</p></td><td><div><div><p>Array of <a href="#Dimension">Dimension</a></p></div></div></td><td></td><td></td><td><p>x</p></td></tr><tr><td><p>Enter measurements:</p></td><td><div><div><p>Array of <a href="#Fact">Fact</a></p></div></div></td><td></td><td></td><td><p>x</p></td></tr><tr><td><p>Throw runtime exception on validation failure</p></td><td><div><div><p>Boolean</p></div></div></td><td></td><td><p>false</p></td><td></td></tr></tbody></table>

#### Throws

- CUSTOM-METRICS:INVALID\_PARAMETER

## Types

The values for `Dimension Name` and `Fact Name` cannot contain spaces.

### Dimension

<table><colgroup><col> <col> <col> <col> <col></colgroup><thead><tr><th>Field</th><th>Type</th><th>Description</th><th>Default Value</th><th>Required</th></tr></thead><tbody><tr><td><p>Dimension Name</p></td><td><div><div><p>String</p></div></div></td><td></td><td></td><td><p>x</p></td></tr><tr><td><p>Value</p></td><td><div><div><p>String</p></div></div></td><td></td><td></td><td><p>x</p></td></tr><tr><td><p>Collapsible</p></td><td><div><div><p>Boolean</p></div></div></td><td></td><td><p>true</p></td><td></td></tr></tbody></table>

### Fact

<table><colgroup><col> <col> <col> <col> <col></colgroup><thead><tr><th>Field</th><th>Type</th><th>Description</th><th>Default Value</th><th>Required</th></tr></thead><tbody><tr><td><p>Fact Name</p></td><td><div><div><p>String</p></div></div></td><td></td><td></td><td><p>x</p></td></tr><tr><td><p>Value</p></td><td><div><div><p>Number</p></div></div></td><td></td><td></td><td><p>x</p></td></tr></tbody></table>

## See Also

- [Anypoint Custom Metrics Connector in Anypoint Exchange](https://www.mulesoft.com/exchange/com.mule.modules/mule-custom-metrics-extension/)
