mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-14 17:26:26 +01:00
21 lines
533 B
TypeScript
21 lines
533 B
TypeScript
import { ApiCheck, AssertionBuilder } from 'checkly/constructs';
|
|
|
|
const homepageApiCheck = new ApiCheck('homepage-api-check-1', {
|
|
name: 'Fetch Book List',
|
|
alertChannels: [],
|
|
degradedResponseTime: 10000,
|
|
maxResponseTime: 20000,
|
|
request: {
|
|
url: 'https://danube-web.shop/api/books',
|
|
method: 'GET',
|
|
followRedirects: true,
|
|
skipSSL: false,
|
|
assertions: [
|
|
AssertionBuilder.statusCode().equals(200),
|
|
AssertionBuilder.jsonBody('$[0].id').isNotNull(),
|
|
],
|
|
},
|
|
});
|
|
|
|
export default homepageApiCheck;
|