The only monitoring platform built from the ground up to be operated by developers and agents — a clear signal of application health.
1import { ApiCheck, AssertionBuilder } from 'checkly/constructs' 2 3new ApiCheck('checkout-api', { 4 name: 'Checkout API', 5 frequency: 1, 6 locations: ['us-east-1', 'eu-central-1', 7 'ap-southeast-1', 'sa-east-1'], 8 degradedResponseTime: 300, 9 maxResponseTime: 1000, 10 request: { 11 method: 'POST', 12 url: 'https://api.acme.co/checkout', 13 assertions: [ 14 AssertionBuilder.statusCode().equals(200), 15 AssertionBuilder.jsonBody('$.status').equals('ok'), 16 ], 17 }, 18})