const opsEmail = new EmailAlertChannel("ops-email", { address: "ops@acme.com", sendRecovery: true, // Get notified when issues are resolved sendFailure: true,})
Use cases: Recovery confirmation, operational awareness, noise reduction.
// Create separate channels for different recipientsconst devEmail = new EmailAlertChannel("dev-email", { address: "dev@acme.com", sendDegraded: true,})const opsEmail = new EmailAlertChannel("ops-email", { address: "ops@acme.com", sendFailure: true, sendRecovery: true,})const managerEmail = new EmailAlertChannel("manager-email", { address: "manager@acme.com", sendFailure: true, sendRecovery: false,})new ApiCheck("important-service", { name: "Important Service Check", alertChannels: [devEmail, opsEmail, managerEmail], request: { method: "GET", url: "https://api.acme.com/important", },})
Single Email Address: EmailAlertChannel only accepts one email address. For multiple recipients, create separate EmailAlertChannel instances or use distribution lists.
Email Delivery: Email notifications may be subject to spam filters or delivery delays. For critical alerts, consider combining email with other notification methods like SMS or Slack.
If your Checkly account includes alert channels that are not controlled via Checkly constructs, find the email channel ID in the Checkly web UI or via the API and set it using EmailAlertChannel.fromId().