@salesforce/b2c-tooling-sdk / operations/metrics / MetricsWindowInput
Interface: MetricsWindowInput
Defined in: packages/b2c-tooling-sdk/src/operations/metrics/index.ts:218
Raw from/to/window inputs, as accepted from CLI flags or MCP arguments, before resolution. Any subset may be provided.
Properties
from?
optionalfrom:MetricsBoundInput
Defined in: packages/b2c-tooling-sdk/src/operations/metrics/index.ts:220
Start bound (Date, epoch ms, relative like 7d, or ISO 8601).
to?
optionalto:MetricsBoundInput
Defined in: packages/b2c-tooling-sdk/src/operations/metrics/index.ts:222
End bound (Date, epoch ms, relative like 6h, or ISO 8601).
window?
optionalwindow:string|number
Defined in: packages/b2c-tooling-sdk/src/operations/metrics/index.ts:228
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}".