Build monitoring infrastructure with reusable TypeScript classes
Constructs are JavaScript/TypeScript classes that represent your all monitoring resources. Import them from checkly/constructs to create checks, alert channels, and other resources in code.
The Checkly CLI supports JavaScript and TypeScript. The documentation focuses on TypeScript, because we recommend using TypeScript for a better developer experience.
Test this API check with npx checkly test and transform it to production monitoring with npx checkly deploy.
Configure your Checkly project by creating and editing the checkly.config.ts. The configuration file enables you to set default settings like monitoring locations, configure alert settings and organize your Checkly files to match your project requirements.Here is an example directory tree of what that would look like:
We recommend separating your monitoring resources from your application code using the __checks__ path convention. However, it’s up to you to define where your monitoring setup will be configured.
As your project grows, you will want to override these defaults for specific checks or check groups. The recommended way to tackle this is using a mix of global and local configuration.
Your global checkly.config holds a set of defaults for your project.
Each construct has detailed documentation with examples, configuration options, and best practices. Start with the construct type you need, and start configuring your monitoring infrastructure in code.