---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../../modules.md) / [operations/metrics](../index.md) / MetricsWindowInput

# Interface: MetricsWindowInput

Defined in: [packages/b2c-tooling-sdk/src/operations/metrics/index.ts:218](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/67fb8580ac3c5b372617ee3ec3fc8f2bc9f16174/packages/b2c-tooling-sdk/src/operations/metrics/index.ts#L218)

Raw `from`/`to`/`window` inputs, as accepted from CLI flags or MCP arguments,
before resolution. Any subset may be provided.

## Properties

### from?

> `optional` **from**: [`MetricsBoundInput`](../type-aliases/MetricsBoundInput.md)

Defined in: [packages/b2c-tooling-sdk/src/operations/metrics/index.ts:220](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/67fb8580ac3c5b372617ee3ec3fc8f2bc9f16174/packages/b2c-tooling-sdk/src/operations/metrics/index.ts#L220)

Start bound (Date, epoch ms, relative like `7d`, or ISO 8601).

***

### to?

> `optional` **to**: [`MetricsBoundInput`](../type-aliases/MetricsBoundInput.md)

Defined in: [packages/b2c-tooling-sdk/src/operations/metrics/index.ts:222](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/67fb8580ac3c5b372617ee3ec3fc8f2bc9f16174/packages/b2c-tooling-sdk/src/operations/metrics/index.ts#L222)

End bound (Date, epoch ms, relative like `6h`, or ISO 8601).

***

### window?

> `optional` **window**: `string` \| `number`

Defined in: [packages/b2c-tooling-sdk/src/operations/metrics/index.ts:228](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/67fb8580ac3c5b372617ee3ec3fc8f2bc9f16174/packages/b2c-tooling-sdk/src/operations/metrics/index.ts#L228)

Window duration as a relative string (`1h`, `30m`, `2d`) or a number of
**milliseconds**. Combined with exactly one of `from`/`to` it derives the
other bound; supplied alone it means "the last {window}".
