> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# statsHistorySize

> Number of seconds of metrics history to retain.

```ts
get statsHistorySize(): number
set statsHistorySize(value): void
```

Number of seconds of metrics history to retain.

## **Examples**

```ts
console.log(client.preferences.statsHistorySize);
```