Skip to content

Assertion

Defined in: clients/checkly-client/dist/index.d.mts:142

One check on an API response: read source, compare it with target.

comparison: AssertionComparison

Defined in: clients/checkly-client/dist/index.d.mts:146

How to compare the value with target.


optional property?: string

Defined in: clients/checkly-client/dist/index.d.mts:148

JSON path / header name the assertion reads — required for JSON_BODY and HEADERS.


optional regex?: string

Defined in: clients/checkly-client/dist/index.d.mts:152

A regular expression Checkly applies to the value before comparing.


source: AssertionSource

Defined in: clients/checkly-client/dist/index.d.mts:144

What part of the response to read.


optional target?: string

Defined in: clients/checkly-client/dist/index.d.mts:150

The value to compare against.