Skip to content
View as Markdown
View as Markdown

@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?

optional from: 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?

optional to: 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?

optional window: 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}".

Released under the Apache-2.0 License.