new BrowserCheck('homepage-browser-check-1', { name: 'Browser Check #1', frequency: 10, regions: ['us-east-1', 'eu-west-1'], code: { entrypoint: './home.spec.js' } }) new ApiCheck('product-api-check-1', { name: 'Product API - fetch products', degradedResponseTime: 10000, maxResponseTime: 20000, requests: { url: "https://api.acme.com/v1/products", method: "GET", assertions: [AssertionBuilder.statusCode().equals(200)] } })
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter