ChecklyClientOptions
Defined in: utils.ts:7
Options for createChecklyClient.
Properties
Section titled “Properties”accountId
Section titled “accountId”accountId:
string
Defined in: utils.ts:11
The target Checkly account id. Every endpoint requires this.
baseUrl?
Section titled “baseUrl?”
optionalbaseUrl?:string
Defined in: utils.ts:13
Override base URL for testing. Defaults to https://api.checklyhq.com/v1
errors?
Section titled “errors?”
optionalerrors?:ErrorSink
Defined in: utils.ts:21
Reports transport failures and unexpected 5xx. Defaults to a no-op.
fetch?
Section titled “fetch?”
optionalfetch?: (input,init?) =>Promise<Response>
Defined in: utils.ts:15
Override fetch for testing. Defaults to globalThis.fetch.
Parameters
Section titled “Parameters”string | URL | Request
RequestInit
Returns
Section titled “Returns”Promise<Response>
logger?
Section titled “logger?”
optionallogger?:Logger
Defined in: utils.ts:19
Structured logger for request/response diagnostics. Defaults to a no-op.
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?:number
Defined in: utils.ts:17
Abort a request attempt that has not answered after this many milliseconds. Defaults to no limit. A write is never repeated, so it is also the whole wait for one.
token:
string
Defined in: utils.ts:9
Checkly API key — sent as a Bearer token.