# Metric

**Kind**: interface | **Module**: [Metrics](https://docs.interop.io/desktop/reference/javascript/metrics/index.md)

**Source**: https://docs.interop.io/desktop/reference/javascript/metrics/metric/index.html

Basic metric.

## Properties

- **`description`** (`string`, optional)
  Returns the description of the metric.
- **`id`** (`string`, required)
  Returns the ID of the metric.
- **`name`** (`string`, required)
  Returns the name of the metric.
- **`path`** (`string[]`, required)
  An array of parent system names, starting with the root system name.
- **`repo`** (`Repository`, required)
  Returns the repository of the metric.
- **`system`** (`System`, required)
  Returns the system of the metric.
- **`type`** (`number`, required)
  Returns the type of the metric.
- **`value`** (`any`, required)
  Returns the value of the metric.

## Methods

### update

Updates the value of the metric.

```ts
(value: any) => Promise<void>
```

**Parameters**

- **`value`** (`any`, required)

**Returns**: `Promise<void>`

## Related types

- [Repository](https://docs.interop.io/desktop/reference/javascript/metrics/repository/index.md)
- [System](https://docs.interop.io/desktop/reference/javascript/metrics/system/index.md)
