Skip to content

docs(constructs): document the CLI refusals for alert channels the plan doesn't cover [RED-1569] - #880

Merged
sorccu merged 3 commits into
mainfrom
simo/red-1569-plan-diagnostics
Nov 26, 2026
Merged

sorccu merged 3 commits into
mainfrom
simo/red-1569-plan-diagnostics

Conversation

@sorccu

@sorccu sorccu commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

What

Documents two checkly validate / test / deploy errors on alert channel constructs:

  • Integration not included in your plan (new in CLI v10.5.0, checkly/checkly-cli#1617): the CLI refuses an alert channel whose integration the account's plan doesn't include. A new section on the alert channel overview (constructs/alert-channel.mdx) shows the output, the fix and which constructs are checked. A shared note (snippets/alert-channel-plan-integration-note.mdx) links to it from the PagerDuty, Opsgenie, SMS, phone call and incident.io construct pages, below the examples next to the fromId() note; the webhook page has its own wording, since only webhooks for a specific integration are checked. Microsoft Teams, Telegram and Slack pages get no note: every plan includes them today.
  • Checkly Slack app not connected (since CLI v10.2.0): the Slack app construct page gets a Note saying when a SlackAppAlertChannel is refused for an account without the Checkly Slack app.

Notes for the reviewer

Testing

  • node .github/scripts/check-anchors.mjs: OK.
  • npm run check:links and a local Mintlify render weren't run (tooling not installed locally); the Mintlify preview on this PR is the first render.

🤖 Generated with Claude Code

@mintlify

mintlify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
checkly-422f444a 🟢 Ready View Preview Nov 26, 2026, 7:21 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@hlenke hlenke left a comment

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.

Needs changes · The plan refusal isn't live yet: hold the merge until checkly/checkly-cli#1617 is released and the Checkly API reports which integrations a plan includes, then fix the items below. The Slack app part is correct today.

Merge timing (blocker). The PR description says to wait for the CLI release. That is not enough by itself: the CLI PR says the check does nothing until the API tells the CLI whether the account may use an integration, and that API change isn't on the backend's main branch yet. I ran a PagerdutyAlertChannel on a Hobby account against local Checkly with the released CLI 10.4.0: checkly validate reports the project valid, and the account endpoint lists only SLACK with connected. If this merges after the CLI release but before the API change, the docs describe an error nobody can get. Add the CLI version to the section once it exists.

checkly validate is a hidden command. On checkly-cli main it is marked hidden (packages/cli/src/commands/validate.ts), so it doesn't show in checkly --help, and there is no page for it under cli/. It works (I ran it), and constructs/project.mdx already names it once. This PR names it in ten more places. Either keep only checkly test and checkly deploy, or confirm the command is meant to be public. Not a blocker.

Overlap. #874 fixes a typo in constructs/alert-channel.mdx and #774 changes the titles of the incident.io, Microsoft Teams and Opsgenie pages. Different lines; no conflict expected in either order.

CI. All checks pass. No conflicts with main, which hasn't changed since the branch point.

Inline comments: 1 blocker, 4 important, 3 wording.

What I checked
  • Every changed line in all 11 files, diffed from the merge base 55c3282c (same as current main).
  • The snippet with a prop: same pattern as snippets/otlp-vendor-intro.mdx on main, and the Mintlify build passes. pr_impact.py found no removed pages, anchors or redirects to fix. The anchor #integrations-not-included-in-your-plan matches the new heading.
  • checkly/checkly-cli#1617 (open, head 727a983), read through the GitHub API: alert-channel.ts, webhook-alert-channel.ts, slack-app-alert-channel.ts, construct-diagnostics.ts, rest/accounts.ts. The title, message and hint in the docs' sample match the code.
  • checkly-cli main (34833c40): the Slack app check is there (commit 15e3a51f, in v10.2.0 and later); the plan check is not.
  • The backend's main: the account endpoint reports only the Slack integration and whether it is connected. The plan rule for sending alerts restricts only the Hobby plan, which still sends to email, Slack, Microsoft Teams, Discord, Telegram and plain webhooks. Docs main says the same in communicate/alerts/overview.mdx.
  • Tested on local Checkly (monorepo 1c9e3323cb, CLI 10.4.0). Local is not production.
  • Could not verify: which integrations each plan will be refused for once the API change ships, and how the CLI prints the new error (it isn't released).
What I tested: 4 claims end to end on a local Checkly from monorepo main, 0 not runnable there
Where Kind Result
c1 constructs/alert-channel.mdx:72 cli fail: Not true yet, as the PR description expects. On the box (released CLI 10.4.0, monorepo main) a PagerdutyAlertChannel on a seeded Hobby account passes checkly validate, and GET /v1/accounts/me reports only [{type: SLACK, connected: false}], with no entitled field. The refusal exists only in the open checkly/checkly-cli#1617 (read at 727a983): title and message match the docs' sample.
c2 constructs/alert-channel.mdx:72 other source: checkly-cli#1617 at 727a983, packages/cli/src/constructs/alert-channel.ts: validation runs on every channel construct in the project and cannot tell new from existing. Not on CLI main.
c3 constructs/alert-channel.mdx:83 other source: checkly-cli#1617 at 727a983: alert-channel.ts and webhook-alert-channel.ts. Incomplete: a WebhookAlertChannel whose webhookType is not one of the 11 mapped types is also left unchecked. fromId() returns a reference construct that skips the check. Not on CLI main.
c4 constructs/slack-app-alert-channel.mdx:12 cli pass: Docs' Basic Example on a seeded account without a Slack integration: validate, test and deploy each stop with [SlackAppAlertChannel:slack-channel-1] Checkly Slack app not connected, exit 1. Nothing was deployed. Source: checkly-cli main, slack-app-alert-channel.ts (commit 15e3a51f, in v10.2.0 and later).
c5 constructs/slack-app-alert-channel.mdx:12 cli pass: Same project on a seeded account with the Slack app connected: checkly validate reports the project valid.
c6 constructs/slack-app-alert-channel.mdx:12 cli pass: Same project with slackChannels: [] on the account without a Slack integration: checkly validate reports the project valid.
c7 snippets/alert-channel-plan-integration-note.mdx:2 other source: Mapping in checkly-cli#1617 at 727a983 (not on main). Which plans lack which integration: monorepo main apps/backend/api/src/common/services/alert-notification-service/plan-filter.ts and docs main communicate/alerts/overview.mdx:129 say only Hobby is restricted, and Hobby still sends to Microsoft Teams and Telegram. Could not verify that any plan lacks those two.
c8 constructs/webhook-alert-channel.mdx:15 other source: checkly-cli#1617 at 727a983, webhook-alert-channel.ts. Not on CLI main. webhookType has no entry in the page's own options list.
c9 constructs/alert-channel.mdx:81 prose source: Matches the hint text in checkly-cli#1617, construct-diagnostics.ts.


## Integrations not included in your plan

`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, …".

Comment on lines +74 to +79
```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.
```

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.

Comment thread constructs/alert-channel.mdx Outdated

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 every alert channel construct against that list, except `EmailAlertChannel` and a `WebhookAlertChannel` without a `webhookType`, which use no integration. Channels you reference with [`fromId()`](#using-fromid-to-reference-an-existing-channel) aren't checked.

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.

Important: The list of exceptions is incomplete. In the CLI PR, a WebhookAlertChannel is only checked when its webhookType is one of the types the CLI knows (Microsoft Teams, Discord, Telegram, FireHydrant, GitLab, Spike.sh, Splunk, Coralogix, ilert, incident.io, Rootly). Any other webhookType is left unchecked, like a webhook without one. "which use no integration" also explains nothing the reader can act on.

Suggested change
The CLI asks the Checkly API which integrations your account can use and checks every alert channel construct against that list, except `EmailAlertChannel` and a `WebhookAlertChannel` without a `webhookType`, which use no integration. Channels you reference with [`fromId()`](#using-fromid-to-reference-an-existing-channel) aren't checked.
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.

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.

Applied your suggestion.

Comment thread constructs/webhook-alert-channel.mdx Outdated
</Tip>

<Note>
If you set `webhookType` to an integration your plan doesn't include, `checkly validate`, `checkly test` and `checkly deploy` refuse this channel. A webhook without `webhookType` isn't checked. See [Integrations not included in your plan](/constructs/alert-channel#integrations-not-included-in-your-plan).

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.

Important: This note is the only place in the docs that mentions webhookType. The options list below has no entry for it, so the reader can't tell what it is or which values exist. Add a <ResponseField name="webhookType" type="string"> to "Webhook alert channel options" with the accepted values, or drop the prop name from this note and say "a webhook for a specific integration, such as FireHydrant".

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.

Dropped the prop name: the note now says "if this webhook is for a specific integration, such as FireHydrant", and that a plain webhook isn't checked. Documenting webhookType in the options list is a separate change.

Comment thread constructs/msteams-alert-channel.mdx Outdated
For general information about alerting, see our docs on [Microsoft Teams alerts](/integrations/alerts/msteams) and [alerting with Checkly](/communicate/alerts/overview/).
</Tip>

<AlertChannelPlanIntegrationNote integration="Microsoft Teams" />

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.

Important: I could not find a plan that doesn't include Microsoft Teams. On main, communicate/alerts/overview.mdx says the Hobby plan sends to email, Slack, Microsoft Teams, Discord, Telegram and generic webhooks, and the backend's plan rule agrees; all other plans send everywhere. If the coming API change keeps that, this note warns about an error nobody gets. Remove it here (and its import) unless the API will report Microsoft Teams as not included for some plan. The Slack pages have no note for the same reason.

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.

Removed the note and its import; the page matches main again.

Comment thread constructs/telegram-alert-channel.mdx Outdated
For general information about alerting, see our docs on [the Telegram integration](/integrations/alerts/telegram) and [alerting with Checkly](/communicate/alerts/overview/).
</Tip>

<AlertChannelPlanIntegrationNote integration="Telegram" />

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.

Important: Same as on the Microsoft Teams page: Telegram is included in every plan on main (communicate/alerts/overview.mdx, and the backend's plan rule). Remove the note and its import unless the API will report Telegram as not included for some plan.

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.

Removed the note and its import; the page matches main again.

Comment thread constructs/pagerduty-alert-channel.mdx Outdated
For general information about alerting, see our docs on [the PagerDuty integration](/integrations/incident-management/pagerduty) and [alerting with Checkly](/communicate/alerts/overview/).
</Tip>

<AlertChannelPlanIntegrationNote integration="PagerDuty" />

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: The note now sits between the opening Tip and the one-line description, so the page tells the reader about a plan error before it says what the channel does. The alert channel pages all open with Tip, description, examples, then the fromId() Note. Put this note next to the fromId() Note below the examples. The same applies to the other pages that use the snippet and to the webhook page.

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.

Moved: on the PagerDuty, Opsgenie, SMS, phone call, incident.io and webhook pages the note now sits right after the fromId() Note below the examples.

Comment on lines 11 to 13
<Tip>
Slack App alert channels require the [Checkly Slack App](/integrations/alerts/slack) to be installed in your Slack workspace.
Slack App alert channels require the [Checkly Slack App](/integrations/alerts/slack) to be installed in your Slack workspace. If your account hasn't connected the app and the channel lists `slackChannels`, `checkly validate`, `checkly test` and `checkly deploy` fail with "Checkly Slack app not connected". Connect the app or remove the channel.
</Tip>

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: The claim is correct: I ran the page's Basic Example on an account without the Slack app, and validate, test and deploy all stopped with this error; with the app connected, or with an empty slackChannels, the project was valid. But the Tip now mixes a link with an error description. Keep the Tip as the link and move the error into a Note:

Suggested change
<Tip>
Slack App alert channels require the [Checkly Slack App](/integrations/alerts/slack) to be installed in your Slack workspace.
Slack App alert channels require the [Checkly Slack App](/integrations/alerts/slack) to be installed in your Slack workspace. If your account hasn't connected the app and the channel lists `slackChannels`, `checkly validate`, `checkly test` and `checkly deploy` fail with "Checkly Slack app not connected". Connect the app or remove the channel.
</Tip>
<Tip>
Slack App alert channels require the [Checkly Slack App](/integrations/alerts/slack) to be installed in your Slack workspace.
</Tip>
<Note>
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>

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.

Applied your suggestion, with "Since CLI v10.2.0," in front, since the Slack app check first shipped in that release.

sorccu and others added 2 commits November 27, 2026 04:16
…an doesn't cover [RED-1569]

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…els [RED-1569]

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…elow the examples [RED-1569]

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sorccu

sorccu commented Nov 26, 2026

Copy link
Copy Markdown
Member Author

Thanks for the review. All inline comments are addressed in e9f341f (replies on each). On the two summary points:

  • Merge timing: no longer a blocker. The API now reports entitled per integration in production, and the check shipped in CLI 10.5.0; the pages name that version.
  • checkly validate: it isn't hidden on checkly-cli main today (packages/cli/src/commands/validate.ts has static hidden = false), so I kept the mentions.

@sorccu
sorccu merged commit 3886ead into main Nov 26, 2026
7 checks passed
@sorccu
sorccu deleted the simo/red-1569-plan-diagnostics branch November 26, 2026 19:26

This branch was successfully deployed

1 active deployment
staging — e9f341f8 Deployed Nov 26, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants