Skip to main content
Version: Next

RunChargeOptions

Options for charging events in a pay-per-event Actor run.

Hierarchy

Added in 2.11.0

Index

Properties

optionalcount

count?: number

Defaults to 1

eventName

eventName: string

Name of the event to charge. Must be defined in the Actor's pricing info else the API will throw.

optionalidempotencyKey

idempotencyKey?: string

Defaults to runId-eventName-timestamp

optionalinheritedsignal

signal?: AbortSignal

Aborts the method. Once the signal aborts, the request in flight is ended, no retry or further poll follows, and the method rejects with the signal's reason.

optionalinheritedtimeoutSecs

timeoutSecs?: Timeout

Timeout for the API request: a tier name ('short', 'medium', 'long'), a number of seconds, or 'noTimeout'. Defaults to the tier the method is assigned, which its documentation names.