Stops a metric collection job that has not finished. No further conversations are processed and the job ends in CANCELED. Items the job had not reached are marked SKIPPED. Metric values already produced are kept, and items that were mid-computation when the cancel arrived may still complete. Only the items that completed are billed. Safe to call more than once: a job that has already finished (COMPLETED, FAILED, or CANCELED) is returned unchanged.
Calls POST /v1/metric/collection-jobs/{jobId}/cancel
Arguments
The ID of the metric collection job to cancel.
Example
Every command also takes the global options and sets one
of the exit codes.