AxiomClientOptions
Defined in: clients/axiom-client/dist/index.d.mts:4
Options for createAxiomClient.
Properties
Section titled “Properties”baseUrl?
Section titled “baseUrl?”
optionalbaseUrl?:string
Defined in: clients/axiom-client/dist/index.d.mts:8
Override base URL for testing. Defaults to https://api.axiom.co.
errors?
Section titled “errors?”
optionalerrors?:ErrorSink
Defined in: clients/axiom-client/dist/index.d.mts:19
Reports transport failures and unexpected 5xx. Defaults to a no-op.
fetch?
Section titled “fetch?”
optionalfetch?: (input,init?) =>Promise<Response>
Defined in: clients/axiom-client/dist/index.d.mts:10
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/axiom-client/dist/index.d.mts:17
Structured logger for request/response diagnostics. Defaults to a no-op.
orgId?
Section titled “orgId?”
optionalorgId?:string
Defined in: clients/axiom-client/dist/index.d.mts:15
The organization id, sent as X-Axiom-Org-Id. A personal access token needs it; an API token does not (and when it
is sent it must match the token’s organization).
token:
string
Defined in: clients/axiom-client/dist/index.d.mts:6
Axiom API token.