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

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

# Interface: ResolvedMetricsWindow

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

A resolved metrics window. Both `from` and `to` are always present: the
resolver derives whichever bound the caller left open using the 24-hour
default window (see [METRICS\_DEFAULT\_WINDOW\_MS](../variables/METRICS_DEFAULT_WINDOW_MS.md)) and always sends an
explicit range, so the request never depends on the server's implicit `to`.
Epoch-second echoes are included for reporting.

## Properties

### clampedFrom

> **clampedFrom**: `boolean`

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

True when `from` was clamped forward to stay inside the retention window
(see [METRICS\_RETENTION\_SAFETY\_MARGIN\_MS](../variables/METRICS_RETENTION_SAFETY_MARGIN_MS.md)). Surfaced so callers can
report that the effective start differs slightly from what was requested.

***

### defaultedWindow

> **defaultedWindow**: `boolean`

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

True when a bound was derived from the 24-hour default window rather than
supplied by the caller (e.g. `from` alone, `to` alone, or nothing at all).
Surfaced so callers can note that the effective range was defaulted.

***

### from

> **from**: `Date`

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

Resolved start bound.

***

### fromEpochSeconds

> **fromEpochSeconds**: `number`

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

Epoch **seconds** form of [from](#from) (the API wire unit).

***

### fromIso

> **fromIso**: `string`

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

ISO 8601 form of [from](#from).

***

### to

> **to**: `Date`

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

Resolved end bound.

***

### toEpochSeconds

> **toEpochSeconds**: `number`

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

Epoch **seconds** form of [to](#to) (the API wire unit).

***

### toIso

> **toIso**: `string`

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

ISO 8601 form of [to](#to).
