@@ -136,66 +136,9 @@ export interface ApiCheckProps extends RuntimeCheckProps {
136136 * })
137137 * ```
138138 *
139- * @see {@link https://www.checklyhq.com/docs/cli/constructs-reference/#apicheck | ApiCheck API Reference }
140- * @see {@link https://www.checklyhq.com/docs/monitoring/api-checks/ | API Checks Documentation }
141- */
142- /**
143- * Creates an API Check to monitor HTTP endpoints and APIs.
144- *
145- * API checks allow you to monitor REST APIs, GraphQL endpoints, and any HTTP-based service.
146- * You can validate response status codes, response times, headers, and response body content.
147- *
148- * @example
149- * ```typescript
150- * // Basic API check
151- * new ApiCheck('hello-api', {
152- * name: 'Hello API',
153- * request: {
154- * method: 'GET',
155- * url: 'https://api.example.com/hello',
156- * assertions: [
157- * AssertionBuilder.statusCode().equals(200)
158- * ]
159- * }
160- * })
161- *
162- * // Advanced API check with POST request
163- * new ApiCheck('user-api', {
164- * name: 'User API Check',
165- * frequency: Frequency.EVERY_5M,
166- * locations: ['us-east-1', 'eu-west-1'],
167- * request: {
168- * method: 'POST',
169- * url: 'https://api.example.com/users',
170- * headers: [{ key: 'Content-Type', value: 'application/json' }],
171- * body: JSON.stringify({ name: 'test-user' }),
172- * bodyType: 'JSON',
173- * assertions: [
174- * AssertionBuilder.statusCode().equals(201),
175- * AssertionBuilder.jsonBody('$.id').isNotNull(),
176- * AssertionBuilder.responseTime().lessThan(1000)
177- * ]
178- * },
179- * maxResponseTime: 5000,
180- * degradedResponseTime: 2000
181- * })
182- *
183- * // Error validation check (shouldFail required for error status checks)
184- * new ApiCheck('not-found-check', {
185- * name: 'Not Found Check',
186- * shouldFail: true,
187- * request: {
188- * method: 'GET',
189- * url: 'https://api.example.com/nonexistent',
190- * assertions: [
191- * AssertionBuilder.statusCode().equals(404)
192- * ]
193- * }
194- * })
195- * ```
196- *
197- * @see {@link https://www.checklyhq.com/docs/cli/constructs-reference/#apicheck | ApiCheck API Reference }
198- * @see {@link https://www.checklyhq.com/docs/monitoring/api-checks/ | API Checks Documentation }
139+ * @see {@link https://www.checklyhq.com/docs/constructs/api-check/ | ApiCheck API Reference }
140+ * @see {@link https://www.checklyhq.com/docs/detect/synthetic-monitoring/api-checks/overview/
141+ * API Checks Documentation}
199142 */
200143export class ApiCheck extends RuntimeCheck {
201144 readonly request : Request
@@ -212,7 +155,7 @@ export class ApiCheck extends RuntimeCheck {
212155 * @param logicalId unique project-scoped resource name identification
213156 * @param props check configuration properties
214157 *
215- * {@link https://checklyhq.com/docs/cli/ constructs-reference/#apicheck Read more in the docs}
158+ * {@link https://www. checklyhq.com/docs/constructs/api-check/ Read more in the docs}
216159 */
217160
218161 constructor ( logicalId : string , props : ApiCheckProps ) {
0 commit comments