Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion constructs/alert-channel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,23 @@ If your `fromId()` references an invalid alert channel, the CLI will throw an er

This is useful if you have multiple CLI projects, since you can reference the same alert channel in each project without needing to redefine it each time.

If you have a single CLI project, instead of using `fromId()`, we recommend defining your alert channel within that CLI project and referencing its JS/TS object. This allows your alert channel to be managed as code alongside your other CLI resources, which makes it easier to manage and scale your alerting setup.
If you have a single CLI project, instead of using `fromId()`, we recommend defining your alert channel within that CLI project and referencing its JS/TS object. This allows your alert channel to be managed as code alongside your other CLI resources, which makes it easier to manage and scale your alerting setup.

## Integrations not included in your plan

<Note>Enforced since CLI v10.5.0.</Note>

`checkly validate`, `checkly test` and `checkly deploy` refuse an alert channel whose integration your plan doesn't include. This applies to new channels and to channels you deployed before:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocker: This isn't true yet. With the released CLI (10.4.0) on local Checkly, a PagerdutyAlertChannel on a Hobby account passes checkly validate. The refusal needs checkly/checkly-cli#1617 (open) and an API change that reports which integrations the plan includes (not on the backend's main branch yet). Merge after both are live, and say from which CLI version this applies, for example: "Since CLI version X, checkly test and checkly deploy refuse…".

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved: the API change is deployed (the account routes now report entitled per integration) and the check shipped in CLI 10.5.0. The section now says "Enforced since CLI v10.5.0.", and the notes say "Since CLI v10.5.0, …".


```text
✖ [PagerdutyAlertChannel:pagerduty-1] Integration not included in your plan

This feature uses PagerDuty, which your plan doesn't include.

Hint: Upgrade your plan at https://app.checklyhq.com/accounts/<id>/billing,
or stop using PagerDuty in your project.
```
Comment on lines +76 to +83

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wording: This block is the message text from the CLI PR, not what the terminal shows. The CLI prints validation errors with a ✖ before the title, indents the message, and wraps long lines. That is how the Slack app error came out in my run:

✖ [SlackAppAlertChannel:slack-channel-1] Checkly Slack app not connected

  SlackAppAlertChannel 'slack-channel-1' needs the Checkly Slack app, which is
  not connected to this account, so its alerts cannot be delivered.

Once the CLI is released, paste the output of a real run here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in e9f341f: the block now has the ✖, the blank line, the two-space indent and the 78-column wrap. I generated it with the CLI's own wrap() and CommandStyle.longError formatting on the released message, not from a live run against production. With a real 36-character account ID in the billing URL the wrap point moves, since the URL then runs past the 78-column limit.


To fix it, [upgrade your plan](https://www.checklyhq.com/pricing/) or remove the channel from your project.

The CLI asks the Checkly API which integrations your account can use and checks each alert channel construct against that list. It doesn't check an `EmailAlertChannel`, or a `WebhookAlertChannel` without a `webhookType` or with one the CLI doesn't know. Channels you reference with [`fromId()`](#using-fromid-to-reference-an-existing-channel) aren't checked either.
3 changes: 3 additions & 0 deletions constructs/incidentio-alert-channel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ canonical: 'https://www.checklyhq.com/docs/constructs/incidentio-alert-channel/'
---

import AlertChannelOptionsText from '/snippets/alert-channel-options-text.mdx';
import AlertChannelPlanIntegrationNote from '/snippets/alert-channel-plan-integration-note.mdx';


<Tip>
Expand Down Expand Up @@ -47,6 +48,8 @@ const incidentioChannel = new IncidentioAlertChannel('incidentio-channel-1', {
If you need to reference existing alert channels that were created outside of your CLI project, use [`fromId()`](/constructs/alert-channel#using-fromid-to-reference-an-existing-channel).
</Note>

<AlertChannelPlanIntegrationNote integration="incident.io" />

## Configuration

### Incident.io alert channel options
Expand Down
3 changes: 3 additions & 0 deletions constructs/opsgenie-alert-channel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ canonical: 'https://www.checklyhq.com/docs/constructs/opsgenie-alert-channel/'
---

import AlertChannelOptionsText from '/snippets/alert-channel-options-text.mdx';
import AlertChannelPlanIntegrationNote from '/snippets/alert-channel-plan-integration-note.mdx';


<Tip>
Expand Down Expand Up @@ -49,6 +50,8 @@ const opsGenieChannel = new OpsgenieAlertChannel('opsgenie-channel-1', {
If you need to reference existing alert channels that were created outside of your CLI project, use [`fromId()`](/constructs/alert-channel#using-fromid-to-reference-an-existing-channel).
</Note>

<AlertChannelPlanIntegrationNote integration="Opsgenie" />

## Configuration

### Opsgenie alert channel options
Expand Down
3 changes: 3 additions & 0 deletions constructs/pagerduty-alert-channel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ canonical: 'https://www.checklyhq.com/docs/constructs/pagerduty-alert-channel/'
---

import AlertChannelOptionsText from '/snippets/alert-channel-options-text.mdx';
import AlertChannelPlanIntegrationNote from '/snippets/alert-channel-plan-integration-note.mdx';


<Tip>
Expand Down Expand Up @@ -47,6 +48,8 @@ const pagerdutyChannel = new PagerdutyAlertChannel('pagerduty-channel-1', {
If you need to reference existing alert channels that were created outside of your CLI project, use [`fromId()`](/constructs/alert-channel#using-fromid-to-reference-an-existing-channel).
</Note>

<AlertChannelPlanIntegrationNote integration="PagerDuty" />

## Configuration

### PagerDuty alert channel options
Expand Down
3 changes: 3 additions & 0 deletions constructs/phone-call-alert-channel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ canonical: 'https://www.checklyhq.com/docs/constructs/phone-call-alert-channel/'
---

import AlertChannelOptionsText from '/snippets/alert-channel-options-text.mdx';
import AlertChannelPlanIntegrationNote from '/snippets/alert-channel-plan-integration-note.mdx';

<Tip>
For general information about alerting, see our docs on [phone call alerts](/integrations/alerts/phone-calls) and [alerting with Checkly](/communicate/alerts/overview/).
Expand Down Expand Up @@ -43,6 +44,8 @@ const callChannel = new PhoneCallAlertChannel('call-channel-1', {
If you need to reference existing alert channels that were created outside of your CLI project, use [`fromId()`](/constructs/alert-channel#using-fromid-to-reference-an-existing-channel).
</Note>

<AlertChannelPlanIntegrationNote integration="phone calls" />

## Configuration

### Phone call alert channel options
Expand Down
4 changes: 4 additions & 0 deletions constructs/slack-app-alert-channel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ import AlertChannelOptionsText from '/snippets/alert-channel-options-text.mdx';
Slack App alert channels require the [Checkly Slack App](/integrations/alerts/slack) to be installed in your Slack workspace.
</Tip>

<Note>
Since CLI v10.2.0, if the Checkly Slack app isn't connected to your account, `checkly validate`, `checkly test` and `checkly deploy` fail with `Checkly Slack app not connected` for a channel that lists `slackChannels`. Connect the app or remove the channel.
</Note>

Sends alert notifications to Slack channels and as DMs.

<CodeGroup>
Expand Down
3 changes: 3 additions & 0 deletions constructs/sms-alert-channel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ canonical: 'https://www.checklyhq.com/docs/constructs/sms-alert-channel/'
---

import AlertChannelOptionsText from '/snippets/alert-channel-options-text.mdx';
import AlertChannelPlanIntegrationNote from '/snippets/alert-channel-plan-integration-note.mdx';

<Tip>
For general information about alerting, see our docs on [SMS alerts](/integrations/alerts/sms) and [alerting with Checkly](/communicate/alerts/overview/).
Expand Down Expand Up @@ -44,6 +45,8 @@ const smsChannel = new SmsAlertChannel('sms-channel-1', {
If you need to reference existing alert channels that were created outside of your CLI project, use [`fromId()`](/constructs/alert-channel#using-fromid-to-reference-an-existing-channel).
</Note>

<AlertChannelPlanIntegrationNote integration="SMS" />

## Configuration

### SMS alert channel options
Expand Down
4 changes: 4 additions & 0 deletions constructs/webhook-alert-channel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ const webhookChannel = new WebhookAlertChannel('webhook-channel-1', {
If you need to reference existing alert channels that were created outside of your CLI project, use [`fromId()`](/constructs/alert-channel#using-fromid-to-reference-an-existing-channel).
</Note>

<Note>
Since CLI v10.5.0, if this webhook is for a specific integration, such as FireHydrant, and your plan doesn't include that integration, `checkly validate`, `checkly test` and `checkly deploy` refuse this channel. A plain webhook isn't checked. See [Integrations not included in your plan](/constructs/alert-channel#integrations-not-included-in-your-plan).
</Note>

## Configuration

### Webhook alert channel options
Expand Down
3 changes: 3 additions & 0 deletions snippets/alert-channel-plan-integration-note.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<Note>
Since CLI v10.5.0, if your plan doesn't include {integration}, `checkly validate`, `checkly test` and `checkly deploy` refuse this channel. See [Integrations not included in your plan](/constructs/alert-channel#integrations-not-included-in-your-plan).
</Note>
Loading