Skip to main content
Works out what POST /v1/metric/collection-jobs would grade and cost for the same input, without creating a job or holding credit. The cost is the figure the job would hold credit for. Comparing stored figures (sourceValues: STORED) on thresholds costs nothing.
Calls POST /v1/metric/collection-jobs/estimate

Options

array
Call IDs to collect metrics for. Mutually exclusive with chatIds. Max 500 per request. Repeatable.
array
Chat IDs to collect metrics for. Mutually exclusive with callIds. Max 500 per request. Repeatable.
array
Metric definitions to collect. Max 20 per request. Required unless policyId is given; with policyId, defaults to every metric that policy collects, and each one listed must be in it.
string
Optional. A metric policy (collector) whose settings to score with: each metric runs at the version that policy runs it at, with its per-collector setting (such as the properties Property Verification checks), instead of the metric’s default. A metric the policy runs at its default runs at its default here too. The policy’s conditions are not applied: the listed conversations are scored as given. Use it to re-score past conversations after changing a policy’s settings.
string
Where thresholds get the figures they compare. MEASURE (default) measures their source metrics again in the job. STORED compares the figures already stored for each conversation with the threshold’s current limit and measures nothing, so it costs nothing: use it after changing a limit. STORED takes thresholds (and other metrics derived from another metric) only; a conversation with no stored figure is skipped. One of STORED, MEASURE

Example

Every command also takes the global options and sets one of the exit codes.