Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / operations/metrics / getScapiMetrics

Function: getScapiMetrics()

getScapiMetrics(client, tenantId, options?): Promise<{ }>

Defined in: packages/b2c-tooling-sdk/src/operations/metrics/index.ts:555

Retrieves SCAPI request metrics for an organization.

Parameters

client

MetricsClient

Metrics API client from createMetricsClient

tenantId

string

Tenant ID (with or without the f_ecom_ prefix)

options?

ScapiMetricsOptions

Optional time window and apiFamily/apiName filters

Returns

Promise<{ }>

The metrics data response

Throws

Error if the request fails

Released under the Apache-2.0 License.