**[@adobe/exc-app](../README.md)**

> [Globals](../README.md) / [metrics](../modules/metrics.md) / MetricsApi

# Interface: MetricsApi

Defines the metrics API.

## Hierarchy

* **MetricsApi**

## Index

### Methods

* [create](metrics.metricsapi.md#create)

## Methods

### create

▸ **create**(`name`: string): Readonly<[Metrics](metrics.metrics-1.md)\>

Creates a metrics instance for the specified component to log entries and events.

#### Parameters:

Name | Type | Description |
------ | ------ | ------ |
`name` | string | The name of the component.  |

**Returns:** Readonly<[Metrics](metrics.metrics-1.md)\>
