OptionalallowOptionalapiAPI key that should be used to make the requests to the Event Registry. API key is assigned to each user account and can be obtained on this page: http://eventregistry.org/me?tab=settings
OptionalhostHost to use to access the Event Registry backend.
OptionalhostHost address to use to perform the analytics api calls.
OptionalloggingLog all requests.
OptionalmaxUpper bound for a single wait between retries, in milliseconds (also caps a Retry-After header).
OptionalmaxToken budget for this client. Once the tokens reported by the API since construction (or usage.reset())
plus the last reported cost of the same endpoint would exceed it, calls throw ErBudgetExceededError
before any request is sent. The cost of a call is only known afterwards, so the guard can overshoot by one call.
OptionalminThe minimum number of seconds between individual api calls.
OptionalrepeatIf a request fails (for example, because ER is down), what is the max number of times the request should be repeated. Use -1 to retry indefinitely.
OptionalretryBase of the exponential backoff between retries, in milliseconds. Attempt n waits about
retryDelayMs * 2^n (with jitter), capped at maxRetryDelayMs.
OptionalsettingsOptionalsignalAborts the call: waiting in the queue, the HTTP request and backoff waits all stop.
OptionalthrowThrow when a call fails instead of resolving to { error }. HTTP failures throw ErApiError, other failures a plain Error.
Off by default so existing if (response.error) checks keep working.
OptionaltimeoutOverall deadline in milliseconds for the call, queueing, retries and backoff waits included.
Exceeding it rejects with ErTimeoutError.
OptionalvalidateCheck every execQuery response against the documented top-level shapes and throw ErValidationError
when one does not match (a missing results array, a result without a uri, a non-numeric counter, ...).
Off by default; extra fields never fail validation. Meant for tests and for pipelines that must not
continue on malformed data.
OptionalverboseIf true, additional info about errors etc. will be printed to console.
Per-call cancellation and deadline, accepted wherever a request is made.