# TimestampMetric

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

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

Timestamp 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

### now

Updates the metric with the current date and time.

```ts
() => void
```

**Returns**: `void`

### update

Updates the value of the metric.

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

**Parameters**

- **`value`** (`Date`, required)
  Value with which to update the metric.

**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)
