ApiCheckInput
Defined in: checks/checks.ts:59
What to send to Checkly to create or update an API check.
Properties
Section titled “Properties”activated?
Section titled “activated?”
optionalactivated?:boolean
Defined in: checks/checks.ts:67
Whether the check runs on its schedule.
frequency?
Section titled “frequency?”
optionalfrequency?:number
Defined in: checks/checks.ts:63
Minutes between runs. One of Checkly’s fixed frequency values (0, 1, 2, 5, 10, 15, 30, 60, 120, 180, 360, 720, 1440). Defaults to 10.
locations?
Section titled “locations?”
optionallocations?:string[]
Defined in: checks/checks.ts:65
Checkly datacenter region ids (e.g. “us-east-1”). Defaults to the account’s configured default.
name:
string
Defined in: checks/checks.ts:61
The check’s display name.
request
Section titled “request”request:
ApiCheckRequest
Defined in: checks/checks.ts:82
The request the check sends.
shouldFail?
Section titled “shouldFail?”
optionalshouldFail?:boolean
Defined in: checks/checks.ts:80
Inverts pass/fail: when true, a response status >= 400 counts as
passing (and a < 400 status fails) before assertions are even
evaluated. Required for any check whose “healthy” response is
itself an HTTP error status (e.g. asserting a 404/405 on an
endpoint that should reject certain requests) — without it,
Checkly’s platform-level retry/failure classification treats any
4xx/5xx as a failure regardless of matching assertions. Defaults
to false.
optionaltags?:string[]
Defined in: checks/checks.ts:69
Tags attached to the check.