ChecklyClientOptions
Defined in: clients/checkly-client/dist/index.d.mts:4
Options for createChecklyClient.
Properties
Section titled “Properties”accountId
Section titled “accountId”accountId:
string
Defined in: clients/checkly-client/dist/index.d.mts:8
The target Checkly account id. Every endpoint requires this.
baseUrl?
Section titled “baseUrl?”
optionalbaseUrl?:string
Defined in: clients/checkly-client/dist/index.d.mts:10
Override base URL for testing. Defaults to https://api.checklyhq.com/v1
errors?
Section titled “errors?”
optionalerrors?:ErrorSink
Defined in: clients/checkly-client/dist/index.d.mts:18
Reports transport failures and unexpected 5xx. Defaults to a no-op.
fetch?
Section titled “fetch?”
optionalfetch?: (input,init?) =>Promise<Response>
Defined in: clients/checkly-client/dist/index.d.mts:12
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: clients/checkly-client/dist/index.d.mts:16
Structured logger for request/response diagnostics. Defaults to a no-op.
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?:number
Defined in: clients/checkly-client/dist/index.d.mts:14
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: clients/checkly-client/dist/index.d.mts:6
Checkly API key — sent as a Bearer token.