> ## Documentation Index
> Fetch the complete documentation index at: https://docs.roark.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# roark metric collection-job estimate

> Estimate a metric collection job

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.

```bash Synopsis theme={"theme":{"light":"everforest-light","dark":"everforest-dark"}}
roark metric collection-job estimate [options]
```

> [!NOTE]
>
> Calls `POST /v1/metric/collection-jobs/estimate`

## Options

**--call-ids** `array`

Call IDs to collect metrics for. Mutually exclusive with chatIds. Max 500 per request. Repeatable.

**--chat-ids** `array`

Chat IDs to collect metrics for. Mutually exclusive with callIds. Max 500 per request. Repeatable.

**--metrics** `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.

**--policy-id** `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.

**--source-values** `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

```bash theme={"theme":{"light":"everforest-light","dark":"everforest-dark"}}
roark metric collection-job estimate
```

Every command also takes the [global options](https://docs.roark.ai/cli-reference/overview.md#global-options) and sets one
of the [exit codes](https://docs.roark.ai/cli-reference/overview.md#exit-codes).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.