published on Monday, Nov 16, 2026 by Checkly
Checklypublished on Monday, Nov 16, 2026 by Checkly
Allows you to define alerting channels for the checks and groups in your account
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as checkly from "@checkly/pulumi";
// An Email alert channel
const emailAc = new checkly.AlertChannel("email_ac", {
email: {
address: "john@example.com",
},
sendRecovery: true,
sendFailure: false,
sendDegraded: true,
sslExpiry: true,
sslExpiryThreshold: 22,
});
// A SMS alert channel
const smsAc = new checkly.AlertChannel("sms_ac", {
sms: {
name: "john",
number: "+5491100001111",
},
sendRecovery: true,
sendFailure: true,
});
// A Slack App alert channel, using the Checkly Slack App
const slackAppAc = new checkly.AlertChannel("slack_app_ac", {slackApp: {
slackChannels: [
"#checkly-notifications",
"@john",
],
}});
// A legacy Slack alert channel, using a Slack webhook URL.
// Deprecated: use the slack_app attribute instead.
const slackAc = new checkly.AlertChannel("slack_ac", {slack: {
channel: "#checkly-notifications",
url: "https://hooks.slack.com/services/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",
}});
// An Opsgenie alert channel
const opsgenieAc = new checkly.AlertChannel("opsgenie_ac", {opsgenie: {
name: "opsalerts",
apiKey: "fookey",
region: "US",
priority: "P1",
}});
// A Pagerduty alert channel
const pagerdutyAc = new checkly.AlertChannel("pagerduty_ac", {pagerduty: {
account: "checkly",
serviceKey: "key1",
serviceName: "pdalert",
}});
// A Webhook alert channel
const webhookAc = new checkly.AlertChannel("webhook_ac", {webhook: {
name: "foo",
method: "GET",
template: "footemplate",
url: "https://example.com/foo",
webhookSecret: "foosecret",
}});
// A FireHydrant alert channel integration
const firehydrantAc = new checkly.AlertChannel("firehydrant_ac", {webhook: {
name: "firehydrant",
method: "POST",
template: `{
\\"event\\": \\"{{ALERT_TITLE}}\\",
\\"link\\": \\"{{RESULT_LINK}}\\",
\\"check_id\\": \\"{{CHECK_ID}}\\",
\\"check_type\\": \\"{{CHECK_TYPE}}\\",
\\"alert_type\\": \\"{{ALERT_TYPE}}\\",
\\"started_at\\": \\"{{STARTED_AT}}\\",
\\"check_result_id\\": \\"{{CHECK_RESULT_ID}}\\"
}
`,
url: "https://app.firehydrant.io/integrations/alerting/webhooks/2/checkly",
webhookType: "WEBHOOK_FIREHYDRANT",
}});
// A Rootly alert channel — In-App Routing mode.
// Alerts are sent to Rootly and routed internally via Rootly Alert Routes.
const rootlyInappAc = new checkly.AlertChannel("rootly_inapp_ac", {
webhook: {
name: "Rootly (In-App Routing)",
method: "POST",
url: "https://webhooks.rootly.com/webhooks/incoming/checkly_webhooks",
webhookSecret: "<rootly-webhook-secret>",
webhookType: "WEBHOOK_ROOTLY",
template: `{
\\"alert_type\\": \\"{{ALERT_TYPE}}\\",
\\"check_id\\": \\"{{CHECK_ID}}\\",
\\"check_result_id\\": \\"{{CHECK_RESULT_ID}}\\",
\\"check_name\\": \\"{{CHECK_NAME}}\\",
\\"alert_title\\": \\"{{ALERT_TITLE}}\\",
\\"started_at\\": \\"{{STARTED_AT}}\\",
\\"link\\": \\"{{RESULT_LINK}}\\"
}
`,
},
sendRecovery: true,
sendFailure: true,
});
// A Rootly alert channel — Direct Routing mode.
// Alerts are routed directly to a specific Rootly target via the URL.
// Type is one of: Service, Group (for Teams), EscalationPolicy, Functionality.
// The target ID can be found in the Rootly UI for the chosen resource.
const rootlyDirectAc = new checkly.AlertChannel("rootly_direct_ac", {
webhook: {
name: "Rootly (Direct Routing)",
method: "POST",
url: "https://webhooks.rootly.com/webhooks/incoming/checkly_webhooks/notify/EscalationPolicy/<rootly-escalation-policy-id>",
webhookSecret: "<rootly-webhook-secret>",
webhookType: "WEBHOOK_ROOTLY",
template: `{
\\"alert_type\\": \\"{{ALERT_TYPE}}\\",
\\"check_id\\": \\"{{CHECK_ID}}\\",
\\"check_result_id\\": \\"{{CHECK_RESULT_ID}}\\",
\\"check_name\\": \\"{{CHECK_NAME}}\\",
\\"alert_title\\": \\"{{ALERT_TITLE}}\\",
\\"started_at\\": \\"{{STARTED_AT}}\\",
\\"link\\": \\"{{RESULT_LINK}}\\"
}
`,
},
sendRecovery: true,
sendFailure: true,
});
// Connecting the alert channel to a check
const exampleCheck = new checkly.ApiCheck("example_check", {
name: "Example check",
request: {
url: "https://api.example.com/",
},
alertChannelSubscriptions: [
{
channelId: emailAc.id.apply(x =>Number(x)),
activated: true,
},
{
channelId: smsAc.id.apply(x =>Number(x)),
activated: true,
},
],
});
import pulumi
import pulumi_checkly as checkly
# An Email alert channel
email_ac = checkly.AlertChannel("email_ac",
email={
"address": "john@example.com",
},
send_recovery=True,
send_failure=False,
send_degraded=True,
ssl_expiry=True,
ssl_expiry_threshold=22)
# A SMS alert channel
sms_ac = checkly.AlertChannel("sms_ac",
sms={
"name": "john",
"number": "+5491100001111",
},
send_recovery=True,
send_failure=True)
# A Slack App alert channel, using the Checkly Slack App
slack_app_ac = checkly.AlertChannel("slack_app_ac", slack_app={
"slack_channels": [
"#checkly-notifications",
"@john",
],
})
# A legacy Slack alert channel, using a Slack webhook URL.
# Deprecated: use the slack_app attribute instead.
slack_ac = checkly.AlertChannel("slack_ac", slack={
"channel": "#checkly-notifications",
"url": "https://hooks.slack.com/services/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",
})
# An Opsgenie alert channel
opsgenie_ac = checkly.AlertChannel("opsgenie_ac", opsgenie={
"name": "opsalerts",
"api_key": "fookey",
"region": "US",
"priority": "P1",
})
# A Pagerduty alert channel
pagerduty_ac = checkly.AlertChannel("pagerduty_ac", pagerduty={
"account": "checkly",
"service_key": "key1",
"service_name": "pdalert",
})
# A Webhook alert channel
webhook_ac = checkly.AlertChannel("webhook_ac", webhook={
"name": "foo",
"method": "GET",
"template": "footemplate",
"url": "https://example.com/foo",
"webhook_secret": "foosecret",
})
# A FireHydrant alert channel integration
firehydrant_ac = checkly.AlertChannel("firehydrant_ac", webhook={
"name": "firehydrant",
"method": "POST",
"template": """{
\"event\": \"{{ALERT_TITLE}}\",
\"link\": \"{{RESULT_LINK}}\",
\"check_id\": \"{{CHECK_ID}}\",
\"check_type\": \"{{CHECK_TYPE}}\",
\"alert_type\": \"{{ALERT_TYPE}}\",
\"started_at\": \"{{STARTED_AT}}\",
\"check_result_id\": \"{{CHECK_RESULT_ID}}\"
}
""",
"url": "https://app.firehydrant.io/integrations/alerting/webhooks/2/checkly",
"webhook_type": "WEBHOOK_FIREHYDRANT",
})
# A Rootly alert channel — In-App Routing mode.
# Alerts are sent to Rootly and routed internally via Rootly Alert Routes.
rootly_inapp_ac = checkly.AlertChannel("rootly_inapp_ac",
webhook={
"name": "Rootly (In-App Routing)",
"method": "POST",
"url": "https://webhooks.rootly.com/webhooks/incoming/checkly_webhooks",
"webhook_secret": "<rootly-webhook-secret>",
"webhook_type": "WEBHOOK_ROOTLY",
"template": """{
\"alert_type\": \"{{ALERT_TYPE}}\",
\"check_id\": \"{{CHECK_ID}}\",
\"check_result_id\": \"{{CHECK_RESULT_ID}}\",
\"check_name\": \"{{CHECK_NAME}}\",
\"alert_title\": \"{{ALERT_TITLE}}\",
\"started_at\": \"{{STARTED_AT}}\",
\"link\": \"{{RESULT_LINK}}\"
}
""",
},
send_recovery=True,
send_failure=True)
# A Rootly alert channel — Direct Routing mode.
# Alerts are routed directly to a specific Rootly target via the URL.
# Type is one of: Service, Group (for Teams), EscalationPolicy, Functionality.
# The target ID can be found in the Rootly UI for the chosen resource.
rootly_direct_ac = checkly.AlertChannel("rootly_direct_ac",
webhook={
"name": "Rootly (Direct Routing)",
"method": "POST",
"url": "https://webhooks.rootly.com/webhooks/incoming/checkly_webhooks/notify/EscalationPolicy/<rootly-escalation-policy-id>",
"webhook_secret": "<rootly-webhook-secret>",
"webhook_type": "WEBHOOK_ROOTLY",
"template": """{
\"alert_type\": \"{{ALERT_TYPE}}\",
\"check_id\": \"{{CHECK_ID}}\",
\"check_result_id\": \"{{CHECK_RESULT_ID}}\",
\"check_name\": \"{{CHECK_NAME}}\",
\"alert_title\": \"{{ALERT_TITLE}}\",
\"started_at\": \"{{STARTED_AT}}\",
\"link\": \"{{RESULT_LINK}}\"
}
""",
},
send_recovery=True,
send_failure=True)
# Connecting the alert channel to a check
example_check = checkly.ApiCheck("example_check",
name="Example check",
request={
"url": "https://api.example.com/",
},
alert_channel_subscriptions=[
{
"channel_id": email_ac.id.apply(lambda x: int(x)),
"activated": True,
},
{
"channel_id": sms_ac.id.apply(lambda x: int(x)),
"activated": True,
},
])
package main
import (
"strconv"
"github.com/checkly/pulumi-checkly/sdk/v3/go/checkly"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// An Email alert channel
emailAc, err := checkly.NewAlertChannel(ctx, "email_ac", &checkly.AlertChannelArgs{
Email: &checkly.AlertChannelEmailArgs{
Address: pulumi.String("john@example.com"),
},
SendRecovery: pulumi.Bool(true),
SendFailure: pulumi.Bool(false),
SendDegraded: pulumi.Bool(true),
SslExpiry: pulumi.Bool(true),
SslExpiryThreshold: pulumi.Int(22),
})
if err != nil {
return err
}
// A SMS alert channel
smsAc, err := checkly.NewAlertChannel(ctx, "sms_ac", &checkly.AlertChannelArgs{
Sms: &checkly.AlertChannelSmsArgs{
Name: pulumi.String("john"),
Number: pulumi.String("+5491100001111"),
},
SendRecovery: pulumi.Bool(true),
SendFailure: pulumi.Bool(true),
})
if err != nil {
return err
}
// A Slack App alert channel, using the Checkly Slack App
_, err = checkly.NewAlertChannel(ctx, "slack_app_ac", &checkly.AlertChannelArgs{
SlackApp: &checkly.AlertChannelSlackAppArgs{
SlackChannels: pulumi.StringArray{
pulumi.String("#checkly-notifications"),
pulumi.String("@john"),
},
},
})
if err != nil {
return err
}
// A legacy Slack alert channel, using a Slack webhook URL.
// Deprecated: use the slack_app attribute instead.
_, err = checkly.NewAlertChannel(ctx, "slack_ac", &checkly.AlertChannelArgs{
Slack: &checkly.AlertChannelSlackArgs{
Channel: pulumi.String("#checkly-notifications"),
Url: pulumi.String("https://hooks.slack.com/services/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"),
},
})
if err != nil {
return err
}
// An Opsgenie alert channel
_, err = checkly.NewAlertChannel(ctx, "opsgenie_ac", &checkly.AlertChannelArgs{
Opsgenie: &checkly.AlertChannelOpsgenieArgs{
Name: pulumi.String("opsalerts"),
ApiKey: pulumi.String("fookey"),
Region: pulumi.String("US"),
Priority: pulumi.String("P1"),
},
})
if err != nil {
return err
}
// A Pagerduty alert channel
_, err = checkly.NewAlertChannel(ctx, "pagerduty_ac", &checkly.AlertChannelArgs{
Pagerduty: &checkly.AlertChannelPagerdutyArgs{
Account: pulumi.String("checkly"),
ServiceKey: pulumi.String("key1"),
ServiceName: pulumi.String("pdalert"),
},
})
if err != nil {
return err
}
// A Webhook alert channel
_, err = checkly.NewAlertChannel(ctx, "webhook_ac", &checkly.AlertChannelArgs{
Webhook: &checkly.AlertChannelWebhookArgs{
Name: pulumi.String("foo"),
Method: pulumi.String("GET"),
Template: pulumi.String("footemplate"),
Url: pulumi.String("https://example.com/foo"),
WebhookSecret: pulumi.String("foosecret"),
},
})
if err != nil {
return err
}
// A FireHydrant alert channel integration
_, err = checkly.NewAlertChannel(ctx, "firehydrant_ac", &checkly.AlertChannelArgs{
Webhook: &checkly.AlertChannelWebhookArgs{
Name: pulumi.String("firehydrant"),
Method: pulumi.String("POST"),
Template: pulumi.String(`{
\"event\": \"{{ALERT_TITLE}}\",
\"link\": \"{{RESULT_LINK}}\",
\"check_id\": \"{{CHECK_ID}}\",
\"check_type\": \"{{CHECK_TYPE}}\",
\"alert_type\": \"{{ALERT_TYPE}}\",
\"started_at\": \"{{STARTED_AT}}\",
\"check_result_id\": \"{{CHECK_RESULT_ID}}\"
}
`),
Url: pulumi.String("https://app.firehydrant.io/integrations/alerting/webhooks/2/checkly"),
WebhookType: pulumi.String("WEBHOOK_FIREHYDRANT"),
},
})
if err != nil {
return err
}
// A Rootly alert channel — In-App Routing mode.
// Alerts are sent to Rootly and routed internally via Rootly Alert Routes.
_, err = checkly.NewAlertChannel(ctx, "rootly_inapp_ac", &checkly.AlertChannelArgs{
Webhook: &checkly.AlertChannelWebhookArgs{
Name: pulumi.String("Rootly (In-App Routing)"),
Method: pulumi.String("POST"),
Url: pulumi.String("https://webhooks.rootly.com/webhooks/incoming/checkly_webhooks"),
WebhookSecret: pulumi.String("<rootly-webhook-secret>"),
WebhookType: pulumi.String("WEBHOOK_ROOTLY"),
Template: pulumi.String(`{
\"alert_type\": \"{{ALERT_TYPE}}\",
\"check_id\": \"{{CHECK_ID}}\",
\"check_result_id\": \"{{CHECK_RESULT_ID}}\",
\"check_name\": \"{{CHECK_NAME}}\",
\"alert_title\": \"{{ALERT_TITLE}}\",
\"started_at\": \"{{STARTED_AT}}\",
\"link\": \"{{RESULT_LINK}}\"
}
`),
},
SendRecovery: pulumi.Bool(true),
SendFailure: pulumi.Bool(true),
})
if err != nil {
return err
}
// A Rootly alert channel — Direct Routing mode.
// Alerts are routed directly to a specific Rootly target via the URL.
// Type is one of: Service, Group (for Teams), EscalationPolicy, Functionality.
// The target ID can be found in the Rootly UI for the chosen resource.
_, err = checkly.NewAlertChannel(ctx, "rootly_direct_ac", &checkly.AlertChannelArgs{
Webhook: &checkly.AlertChannelWebhookArgs{
Name: pulumi.String("Rootly (Direct Routing)"),
Method: pulumi.String("POST"),
Url: pulumi.String("https://webhooks.rootly.com/webhooks/incoming/checkly_webhooks/notify/EscalationPolicy/<rootly-escalation-policy-id>"),
WebhookSecret: pulumi.String("<rootly-webhook-secret>"),
WebhookType: pulumi.String("WEBHOOK_ROOTLY"),
Template: pulumi.String(`{
\"alert_type\": \"{{ALERT_TYPE}}\",
\"check_id\": \"{{CHECK_ID}}\",
\"check_result_id\": \"{{CHECK_RESULT_ID}}\",
\"check_name\": \"{{CHECK_NAME}}\",
\"alert_title\": \"{{ALERT_TITLE}}\",
\"started_at\": \"{{STARTED_AT}}\",
\"link\": \"{{RESULT_LINK}}\"
}
`),
},
SendRecovery: pulumi.Bool(true),
SendFailure: pulumi.Bool(true),
})
if err != nil {
return err
}
// Connecting the alert channel to a check
_, err = checkly.NewApiCheck(ctx, "example_check", &checkly.ApiCheckArgs{
Name: pulumi.String("Example check"),
Request: &checkly.ApiCheckRequestArgs{
Url: pulumi.String("https://api.example.com/"),
},
AlertChannelSubscriptions: checkly.ApiCheckAlertChannelSubscriptionArray{
&checkly.ApiCheckAlertChannelSubscriptionArgs{
ChannelId: emailAc.ID().ToStringOutput().ApplyT(strconv.Atoi).(pulumi.IntOutput),
Activated: pulumi.Bool(true),
},
&checkly.ApiCheckAlertChannelSubscriptionArgs{
ChannelId: smsAc.ID().ToStringOutput().ApplyT(strconv.Atoi).(pulumi.IntOutput),
Activated: pulumi.Bool(true),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Checkly = Pulumi.Checkly;
return await Deployment.RunAsync(() =>
{
// An Email alert channel
var emailAc = new Checkly.AlertChannel("email_ac", new()
{
Email = new Checkly.Inputs.AlertChannelEmailArgs
{
Address = "john@example.com",
},
SendRecovery = true,
SendFailure = false,
SendDegraded = true,
SslExpiry = true,
SslExpiryThreshold = 22,
});
// A SMS alert channel
var smsAc = new Checkly.AlertChannel("sms_ac", new()
{
Sms = new Checkly.Inputs.AlertChannelSmsArgs
{
Name = "john",
Number = "+5491100001111",
},
SendRecovery = true,
SendFailure = true,
});
// A Slack App alert channel, using the Checkly Slack App
var slackAppAc = new Checkly.AlertChannel("slack_app_ac", new()
{
SlackApp = new Checkly.Inputs.AlertChannelSlackAppArgs
{
SlackChannels = new[]
{
"#checkly-notifications",
"@john",
},
},
});
// A legacy Slack alert channel, using a Slack webhook URL.
// Deprecated: use the slack_app attribute instead.
var slackAc = new Checkly.AlertChannel("slack_ac", new()
{
Slack = new Checkly.Inputs.AlertChannelSlackArgs
{
Channel = "#checkly-notifications",
Url = "https://hooks.slack.com/services/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",
},
});
// An Opsgenie alert channel
var opsgenieAc = new Checkly.AlertChannel("opsgenie_ac", new()
{
Opsgenie = new Checkly.Inputs.AlertChannelOpsgenieArgs
{
Name = "opsalerts",
ApiKey = "fookey",
Region = "US",
Priority = "P1",
},
});
// A Pagerduty alert channel
var pagerdutyAc = new Checkly.AlertChannel("pagerduty_ac", new()
{
Pagerduty = new Checkly.Inputs.AlertChannelPagerdutyArgs
{
Account = "checkly",
ServiceKey = "key1",
ServiceName = "pdalert",
},
});
// A Webhook alert channel
var webhookAc = new Checkly.AlertChannel("webhook_ac", new()
{
Webhook = new Checkly.Inputs.AlertChannelWebhookArgs
{
Name = "foo",
Method = "GET",
Template = "footemplate",
Url = "https://example.com/foo",
WebhookSecret = "foosecret",
},
});
// A FireHydrant alert channel integration
var firehydrantAc = new Checkly.AlertChannel("firehydrant_ac", new()
{
Webhook = new Checkly.Inputs.AlertChannelWebhookArgs
{
Name = "firehydrant",
Method = "POST",
Template = @"{
\""event\"": \""{{ALERT_TITLE}}\"",
\""link\"": \""{{RESULT_LINK}}\"",
\""check_id\"": \""{{CHECK_ID}}\"",
\""check_type\"": \""{{CHECK_TYPE}}\"",
\""alert_type\"": \""{{ALERT_TYPE}}\"",
\""started_at\"": \""{{STARTED_AT}}\"",
\""check_result_id\"": \""{{CHECK_RESULT_ID}}\""
}
",
Url = "https://app.firehydrant.io/integrations/alerting/webhooks/2/checkly",
WebhookType = "WEBHOOK_FIREHYDRANT",
},
});
// A Rootly alert channel — In-App Routing mode.
// Alerts are sent to Rootly and routed internally via Rootly Alert Routes.
var rootlyInappAc = new Checkly.AlertChannel("rootly_inapp_ac", new()
{
Webhook = new Checkly.Inputs.AlertChannelWebhookArgs
{
Name = "Rootly (In-App Routing)",
Method = "POST",
Url = "https://webhooks.rootly.com/webhooks/incoming/checkly_webhooks",
WebhookSecret = "<rootly-webhook-secret>",
WebhookType = "WEBHOOK_ROOTLY",
Template = @"{
\""alert_type\"": \""{{ALERT_TYPE}}\"",
\""check_id\"": \""{{CHECK_ID}}\"",
\""check_result_id\"": \""{{CHECK_RESULT_ID}}\"",
\""check_name\"": \""{{CHECK_NAME}}\"",
\""alert_title\"": \""{{ALERT_TITLE}}\"",
\""started_at\"": \""{{STARTED_AT}}\"",
\""link\"": \""{{RESULT_LINK}}\""
}
",
},
SendRecovery = true,
SendFailure = true,
});
// A Rootly alert channel — Direct Routing mode.
// Alerts are routed directly to a specific Rootly target via the URL.
// Type is one of: Service, Group (for Teams), EscalationPolicy, Functionality.
// The target ID can be found in the Rootly UI for the chosen resource.
var rootlyDirectAc = new Checkly.AlertChannel("rootly_direct_ac", new()
{
Webhook = new Checkly.Inputs.AlertChannelWebhookArgs
{
Name = "Rootly (Direct Routing)",
Method = "POST",
Url = "https://webhooks.rootly.com/webhooks/incoming/checkly_webhooks/notify/EscalationPolicy/<rootly-escalation-policy-id>",
WebhookSecret = "<rootly-webhook-secret>",
WebhookType = "WEBHOOK_ROOTLY",
Template = @"{
\""alert_type\"": \""{{ALERT_TYPE}}\"",
\""check_id\"": \""{{CHECK_ID}}\"",
\""check_result_id\"": \""{{CHECK_RESULT_ID}}\"",
\""check_name\"": \""{{CHECK_NAME}}\"",
\""alert_title\"": \""{{ALERT_TITLE}}\"",
\""started_at\"": \""{{STARTED_AT}}\"",
\""link\"": \""{{RESULT_LINK}}\""
}
",
},
SendRecovery = true,
SendFailure = true,
});
// Connecting the alert channel to a check
var exampleCheck = new Checkly.ApiCheck("example_check", new()
{
Name = "Example check",
Request = new Checkly.Inputs.ApiCheckRequestArgs
{
Url = "https://api.example.com/",
},
AlertChannelSubscriptions = new[]
{
new Checkly.Inputs.ApiCheckAlertChannelSubscriptionArgs
{
ChannelId = emailAc.Id.Apply(x => int.Parse(x, System.Globalization.CultureInfo.InvariantCulture)),
Activated = true,
},
new Checkly.Inputs.ApiCheckAlertChannelSubscriptionArgs
{
ChannelId = smsAc.Id.Apply(x => int.Parse(x, System.Globalization.CultureInfo.InvariantCulture)),
Activated = true,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.checkly.AlertChannel;
import com.pulumi.checkly.AlertChannelArgs;
import com.pulumi.checkly.inputs.AlertChannelEmailArgs;
import com.pulumi.checkly.inputs.AlertChannelSmsArgs;
import com.pulumi.checkly.inputs.AlertChannelSlackAppArgs;
import com.pulumi.checkly.inputs.AlertChannelSlackArgs;
import com.pulumi.checkly.inputs.AlertChannelOpsgenieArgs;
import com.pulumi.checkly.inputs.AlertChannelPagerdutyArgs;
import com.pulumi.checkly.inputs.AlertChannelWebhookArgs;
import com.pulumi.checkly.ApiCheck;
import com.pulumi.checkly.ApiCheckArgs;
import com.pulumi.checkly.inputs.ApiCheckRequestArgs;
import com.pulumi.checkly.inputs.ApiCheckAlertChannelSubscriptionArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// An Email alert channel
var emailAc = new AlertChannel("emailAc", AlertChannelArgs.builder()
.email(AlertChannelEmailArgs.builder()
.address("john@example.com")
.build())
.sendRecovery(true)
.sendFailure(false)
.sendDegraded(true)
.sslExpiry(true)
.sslExpiryThreshold(22)
.build());
// A SMS alert channel
var smsAc = new AlertChannel("smsAc", AlertChannelArgs.builder()
.sms(AlertChannelSmsArgs.builder()
.name("john")
.number("+5491100001111")
.build())
.sendRecovery(true)
.sendFailure(true)
.build());
// A Slack App alert channel, using the Checkly Slack App
var slackAppAc = new AlertChannel("slackAppAc", AlertChannelArgs.builder()
.slackApp(AlertChannelSlackAppArgs.builder()
.slackChannels(
"#checkly-notifications",
"@john")
.build())
.build());
// A legacy Slack alert channel, using a Slack webhook URL.
// Deprecated: use the slack_app attribute instead.
var slackAc = new AlertChannel("slackAc", AlertChannelArgs.builder()
.slack(AlertChannelSlackArgs.builder()
.channel("#checkly-notifications")
.url("https://hooks.slack.com/services/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")
.build())
.build());
// An Opsgenie alert channel
var opsgenieAc = new AlertChannel("opsgenieAc", AlertChannelArgs.builder()
.opsgenie(AlertChannelOpsgenieArgs.builder()
.name("opsalerts")
.apiKey("fookey")
.region("US")
.priority("P1")
.build())
.build());
// A Pagerduty alert channel
var pagerdutyAc = new AlertChannel("pagerdutyAc", AlertChannelArgs.builder()
.pagerduty(AlertChannelPagerdutyArgs.builder()
.account("checkly")
.serviceKey("key1")
.serviceName("pdalert")
.build())
.build());
// A Webhook alert channel
var webhookAc = new AlertChannel("webhookAc", AlertChannelArgs.builder()
.webhook(AlertChannelWebhookArgs.builder()
.name("foo")
.method("GET")
.template("footemplate")
.url("https://example.com/foo")
.webhookSecret("foosecret")
.build())
.build());
// A FireHydrant alert channel integration
var firehydrantAc = new AlertChannel("firehydrantAc", AlertChannelArgs.builder()
.webhook(AlertChannelWebhookArgs.builder()
.name("firehydrant")
.method("POST")
.template("""
{
\"event\": \"{{ALERT_TITLE}}\",
\"link\": \"{{RESULT_LINK}}\",
\"check_id\": \"{{CHECK_ID}}\",
\"check_type\": \"{{CHECK_TYPE}}\",
\"alert_type\": \"{{ALERT_TYPE}}\",
\"started_at\": \"{{STARTED_AT}}\",
\"check_result_id\": \"{{CHECK_RESULT_ID}}\"
}
""")
.url("https://app.firehydrant.io/integrations/alerting/webhooks/2/checkly")
.webhookType("WEBHOOK_FIREHYDRANT")
.build())
.build());
// A Rootly alert channel — In-App Routing mode.
// Alerts are sent to Rootly and routed internally via Rootly Alert Routes.
var rootlyInappAc = new AlertChannel("rootlyInappAc", AlertChannelArgs.builder()
.webhook(AlertChannelWebhookArgs.builder()
.name("Rootly (In-App Routing)")
.method("POST")
.url("https://webhooks.rootly.com/webhooks/incoming/checkly_webhooks")
.webhookSecret("<rootly-webhook-secret>")
.webhookType("WEBHOOK_ROOTLY")
.template("""
{
\"alert_type\": \"{{ALERT_TYPE}}\",
\"check_id\": \"{{CHECK_ID}}\",
\"check_result_id\": \"{{CHECK_RESULT_ID}}\",
\"check_name\": \"{{CHECK_NAME}}\",
\"alert_title\": \"{{ALERT_TITLE}}\",
\"started_at\": \"{{STARTED_AT}}\",
\"link\": \"{{RESULT_LINK}}\"
}
""")
.build())
.sendRecovery(true)
.sendFailure(true)
.build());
// A Rootly alert channel — Direct Routing mode.
// Alerts are routed directly to a specific Rootly target via the URL.
// Type is one of: Service, Group (for Teams), EscalationPolicy, Functionality.
// The target ID can be found in the Rootly UI for the chosen resource.
var rootlyDirectAc = new AlertChannel("rootlyDirectAc", AlertChannelArgs.builder()
.webhook(AlertChannelWebhookArgs.builder()
.name("Rootly (Direct Routing)")
.method("POST")
.url("https://webhooks.rootly.com/webhooks/incoming/checkly_webhooks/notify/EscalationPolicy/<rootly-escalation-policy-id>")
.webhookSecret("<rootly-webhook-secret>")
.webhookType("WEBHOOK_ROOTLY")
.template("""
{
\"alert_type\": \"{{ALERT_TYPE}}\",
\"check_id\": \"{{CHECK_ID}}\",
\"check_result_id\": \"{{CHECK_RESULT_ID}}\",
\"check_name\": \"{{CHECK_NAME}}\",
\"alert_title\": \"{{ALERT_TITLE}}\",
\"started_at\": \"{{STARTED_AT}}\",
\"link\": \"{{RESULT_LINK}}\"
}
""")
.build())
.sendRecovery(true)
.sendFailure(true)
.build());
// Connecting the alert channel to a check
var exampleCheck = new ApiCheck("exampleCheck", ApiCheckArgs.builder()
.name("Example check")
.request(ApiCheckRequestArgs.builder()
.url("https://api.example.com/")
.build())
.alertChannelSubscriptions(
ApiCheckAlertChannelSubscriptionArgs.builder()
.channelId(emailAc.id())
.activated(true)
.build(),
ApiCheckAlertChannelSubscriptionArgs.builder()
.channelId(smsAc.id())
.activated(true)
.build())
.build());
}
}
resources:
# An Email alert channel
emailAc:
type: checkly:AlertChannel
name: email_ac
properties:
email:
address: john@example.com
sendRecovery: true
sendFailure: false
sendDegraded: true
sslExpiry: true
sslExpiryThreshold: 22
# A SMS alert channel
smsAc:
type: checkly:AlertChannel
name: sms_ac
properties:
sms:
name: john
number: '+5491100001111'
sendRecovery: true
sendFailure: true
# A Slack App alert channel, using the Checkly Slack App
slackAppAc:
type: checkly:AlertChannel
name: slack_app_ac
properties:
slackApp:
slackChannels:
- '#checkly-notifications'
- '@john'
# A legacy Slack alert channel, using a Slack webhook URL.
# Deprecated: use the slack_app attribute instead.
slackAc:
type: checkly:AlertChannel
name: slack_ac
properties:
slack:
channel: '#checkly-notifications'
url: https://hooks.slack.com/services/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
# An Opsgenie alert channel
opsgenieAc:
type: checkly:AlertChannel
name: opsgenie_ac
properties:
opsgenie:
name: opsalerts
apiKey: fookey
region: US
priority: P1
# A Pagerduty alert channel
pagerdutyAc:
type: checkly:AlertChannel
name: pagerduty_ac
properties:
pagerduty:
account: checkly
serviceKey: key1
serviceName: pdalert
# A Webhook alert channel
webhookAc:
type: checkly:AlertChannel
name: webhook_ac
properties:
webhook:
name: foo
method: GET
template: footemplate
url: https://example.com/foo
webhookSecret: foosecret
# A FireHydrant alert channel integration
firehydrantAc:
type: checkly:AlertChannel
name: firehydrant_ac
properties:
webhook:
name: firehydrant
method: POST
template: |
{
\"event\": \"{{ALERT_TITLE}}\",
\"link\": \"{{RESULT_LINK}}\",
\"check_id\": \"{{CHECK_ID}}\",
\"check_type\": \"{{CHECK_TYPE}}\",
\"alert_type\": \"{{ALERT_TYPE}}\",
\"started_at\": \"{{STARTED_AT}}\",
\"check_result_id\": \"{{CHECK_RESULT_ID}}\"
}
url: https://app.firehydrant.io/integrations/alerting/webhooks/2/checkly
webhookType: WEBHOOK_FIREHYDRANT
# A Rootly alert channel — In-App Routing mode.
# Alerts are sent to Rootly and routed internally via Rootly Alert Routes.
rootlyInappAc:
type: checkly:AlertChannel
name: rootly_inapp_ac
properties:
webhook:
name: Rootly (In-App Routing)
method: POST
url: https://webhooks.rootly.com/webhooks/incoming/checkly_webhooks
webhookSecret: <rootly-webhook-secret>
webhookType: WEBHOOK_ROOTLY
template: |
{
\"alert_type\": \"{{ALERT_TYPE}}\",
\"check_id\": \"{{CHECK_ID}}\",
\"check_result_id\": \"{{CHECK_RESULT_ID}}\",
\"check_name\": \"{{CHECK_NAME}}\",
\"alert_title\": \"{{ALERT_TITLE}}\",
\"started_at\": \"{{STARTED_AT}}\",
\"link\": \"{{RESULT_LINK}}\"
}
sendRecovery: true
sendFailure: true
# A Rootly alert channel — Direct Routing mode.
# Alerts are routed directly to a specific Rootly target via the URL.
# Type is one of: Service, Group (for Teams), EscalationPolicy, Functionality.
# The target ID can be found in the Rootly UI for the chosen resource.
rootlyDirectAc:
type: checkly:AlertChannel
name: rootly_direct_ac
properties:
webhook:
name: Rootly (Direct Routing)
method: POST
url: https://webhooks.rootly.com/webhooks/incoming/checkly_webhooks/notify/EscalationPolicy/<rootly-escalation-policy-id>
webhookSecret: <rootly-webhook-secret>
webhookType: WEBHOOK_ROOTLY
template: |
{
\"alert_type\": \"{{ALERT_TYPE}}\",
\"check_id\": \"{{CHECK_ID}}\",
\"check_result_id\": \"{{CHECK_RESULT_ID}}\",
\"check_name\": \"{{CHECK_NAME}}\",
\"alert_title\": \"{{ALERT_TITLE}}\",
\"started_at\": \"{{STARTED_AT}}\",
\"link\": \"{{RESULT_LINK}}\"
}
sendRecovery: true
sendFailure: true
# Connecting the alert channel to a check
exampleCheck:
type: checkly:ApiCheck
name: example_check
properties:
name: Example check
request:
url: https://api.example.com/
alertChannelSubscriptions:
- channelId: ${emailAc.id}
activated: true
- channelId: ${smsAc.id}
activated: true
terraform {
required_providers {
checkly = {
source = "pulumi/checkly"
}
}
}
# An Email alert channel
resource "checkly_alert_channel" "email_ac" {
lifecycle {
create_before_destroy = true
}
email = {
address = "john@example.com"
}
send_recovery = true
send_failure = false
send_degraded = true
ssl_expiry = true
ssl_expiry_threshold = 22
}
# A SMS alert channel
resource "checkly_alert_channel" "sms_ac" {
lifecycle {
create_before_destroy = true
}
sms = {
name = "john"
number = "+5491100001111"
}
send_recovery = true
send_failure = true
}
# A Slack App alert channel, using the Checkly Slack App
resource "checkly_alert_channel" "slack_app_ac" {
lifecycle {
create_before_destroy = true
}
slack_app = {
slack_channels = ["#checkly-notifications", "@john"]
}
}
# A legacy Slack alert channel, using a Slack webhook URL.
# Deprecated: use the slack_app attribute instead.
resource "checkly_alert_channel" "slack_ac" {
lifecycle {
create_before_destroy = true
}
slack = {
channel = "#checkly-notifications"
url = "https://hooks.slack.com/services/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"
}
}
# An Opsgenie alert channel
resource "checkly_alert_channel" "opsgenie_ac" {
lifecycle {
create_before_destroy = true
}
opsgenie = {
name = "opsalerts"
api_key = "fookey"
region = "US"
priority = "P1"
}
}
# A Pagerduty alert channel
resource "checkly_alert_channel" "pagerduty_ac" {
lifecycle {
create_before_destroy = true
}
pagerduty = {
account = "checkly"
service_key = "key1"
service_name = "pdalert"
}
}
# A Webhook alert channel
resource "checkly_alert_channel" "webhook_ac" {
lifecycle {
create_before_destroy = true
}
webhook = {
name = "foo"
method = "GET"
template = "footemplate"
url = "https://example.com/foo"
webhook_secret = "foosecret"
}
}
# A FireHydrant alert channel integration
resource "checkly_alert_channel" "firehydrant_ac" {
lifecycle {
create_before_destroy = true
}
webhook = {
name = "firehydrant"
method = "POST"
template = <<EOT
{
\"event\": \"{{ALERT_TITLE}}\",
\"link\": \"{{RESULT_LINK}}\",
\"check_id\": \"{{CHECK_ID}}\",
\"check_type\": \"{{CHECK_TYPE}}\",
\"alert_type\": \"{{ALERT_TYPE}}\",
\"started_at\": \"{{STARTED_AT}}\",
\"check_result_id\": \"{{CHECK_RESULT_ID}}\"
}
EOT
url = "https://app.firehydrant.io/integrations/alerting/webhooks/2/checkly"
webhook_type = "WEBHOOK_FIREHYDRANT"
}
}
# A Rootly alert channel — In-App Routing mode.
# Alerts are sent to Rootly and routed internally via Rootly Alert Routes.
resource "checkly_alert_channel" "rootly_inapp_ac" {
lifecycle {
create_before_destroy = true
}
webhook = {
name = "Rootly (In-App Routing)"
method = "POST"
url = "https://webhooks.rootly.com/webhooks/incoming/checkly_webhooks"
webhook_secret = "<rootly-webhook-secret>"
webhook_type = "WEBHOOK_ROOTLY"
template = <<EOT
{
\"alert_type\": \"{{ALERT_TYPE}}\",
\"check_id\": \"{{CHECK_ID}}\",
\"check_result_id\": \"{{CHECK_RESULT_ID}}\",
\"check_name\": \"{{CHECK_NAME}}\",
\"alert_title\": \"{{ALERT_TITLE}}\",
\"started_at\": \"{{STARTED_AT}}\",
\"link\": \"{{RESULT_LINK}}\"
}
EOT
}
send_recovery = true
send_failure = true
}
# A Rootly alert channel — Direct Routing mode.
# Alerts are routed directly to a specific Rootly target via the URL.
# Type is one of: Service, Group (for Teams), EscalationPolicy, Functionality.
# The target ID can be found in the Rootly UI for the chosen resource.
resource "checkly_alert_channel" "rootly_direct_ac" {
lifecycle {
create_before_destroy = true
}
webhook = {
name = "Rootly (Direct Routing)"
method = "POST"
url = "https://webhooks.rootly.com/webhooks/incoming/checkly_webhooks/notify/EscalationPolicy/<rootly-escalation-policy-id>"
webhook_secret = "<rootly-webhook-secret>"
webhook_type = "WEBHOOK_ROOTLY"
template = <<EOT
{
\"alert_type\": \"{{ALERT_TYPE}}\",
\"check_id\": \"{{CHECK_ID}}\",
\"check_result_id\": \"{{CHECK_RESULT_ID}}\",
\"check_name\": \"{{CHECK_NAME}}\",
\"alert_title\": \"{{ALERT_TITLE}}\",
\"started_at\": \"{{STARTED_AT}}\",
\"link\": \"{{RESULT_LINK}}\"
}
EOT
}
send_recovery = true
send_failure = true
}
# Connecting the alert channel to a check
resource "checkly_api_check" "example_check" {
lifecycle {
create_before_destroy = true
}
name = "Example check"
request = {
url = "https://api.example.com/"
}
alert_channel_subscriptions = [{
channel_id = checkly_alert_channel.email_ac.id
activated = true
}, {
channel_id = checkly_alert_channel.sms_ac.id
activated = true
}]
}
Create AlertChannel Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AlertChannel(name: string, args?: AlertChannelArgs, opts?: CustomResourceOptions);@overload
def AlertChannel(resource_name: str,
args: Optional[AlertChannelArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def AlertChannel(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_subscribe: Optional[bool] = None,
call: Optional[AlertChannelCallArgs] = None,
email: Optional[AlertChannelEmailArgs] = None,
opsgenie: Optional[AlertChannelOpsgenieArgs] = None,
pagerduty: Optional[AlertChannelPagerdutyArgs] = None,
send_degraded: Optional[bool] = None,
send_failure: Optional[bool] = None,
send_recovery: Optional[bool] = None,
slack: Optional[AlertChannelSlackArgs] = None,
slack_app: Optional[AlertChannelSlackAppArgs] = None,
sms: Optional[AlertChannelSmsArgs] = None,
ssl_expiry: Optional[bool] = None,
ssl_expiry_threshold: Optional[int] = None,
webhook: Optional[AlertChannelWebhookArgs] = None)func NewAlertChannel(ctx *Context, name string, args *AlertChannelArgs, opts ...ResourceOption) (*AlertChannel, error)public AlertChannel(string name, AlertChannelArgs? args = null, CustomResourceOptions? opts = null)
public AlertChannel(String name, AlertChannelArgs args)
public AlertChannel(String name, AlertChannelArgs args, CustomResourceOptions options)
type: checkly:AlertChannel
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "checkly_alert_channel" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AlertChannelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AlertChannelArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AlertChannelArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlertChannelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlertChannelArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var alertChannelResource = new Checkly.AlertChannel("alertChannelResource", new()
{
AutoSubscribe = false,
Call = new Checkly.Inputs.AlertChannelCallArgs
{
Name = "string",
Number = "string",
},
Email = new Checkly.Inputs.AlertChannelEmailArgs
{
Address = "string",
},
Opsgenie = new Checkly.Inputs.AlertChannelOpsgenieArgs
{
ApiKey = "string",
Name = "string",
Priority = "string",
Region = "string",
},
Pagerduty = new Checkly.Inputs.AlertChannelPagerdutyArgs
{
ServiceKey = "string",
Account = "string",
ServiceName = "string",
},
SendDegraded = false,
SendFailure = false,
SendRecovery = false,
SlackApp = new Checkly.Inputs.AlertChannelSlackAppArgs
{
SlackChannels = new[]
{
"string",
},
},
Sms = new Checkly.Inputs.AlertChannelSmsArgs
{
Name = "string",
Number = "string",
},
SslExpiry = false,
SslExpiryThreshold = 0,
Webhook = new Checkly.Inputs.AlertChannelWebhookArgs
{
Name = "string",
Url = "string",
Headers =
{
{ "string", "string" },
},
Method = "string",
QueryParameters =
{
{ "string", "string" },
},
Template = "string",
WebhookSecret = "string",
WebhookType = "string",
},
});
example, err := checkly.NewAlertChannel(ctx, "alertChannelResource", &checkly.AlertChannelArgs{
AutoSubscribe: pulumi.Bool(false),
Call: &checkly.AlertChannelCallArgs{
Name: pulumi.String("string"),
Number: pulumi.String("string"),
},
Email: &checkly.AlertChannelEmailArgs{
Address: pulumi.String("string"),
},
Opsgenie: &checkly.AlertChannelOpsgenieArgs{
ApiKey: pulumi.String("string"),
Name: pulumi.String("string"),
Priority: pulumi.String("string"),
Region: pulumi.String("string"),
},
Pagerduty: &checkly.AlertChannelPagerdutyArgs{
ServiceKey: pulumi.String("string"),
Account: pulumi.String("string"),
ServiceName: pulumi.String("string"),
},
SendDegraded: pulumi.Bool(false),
SendFailure: pulumi.Bool(false),
SendRecovery: pulumi.Bool(false),
SlackApp: &checkly.AlertChannelSlackAppArgs{
SlackChannels: pulumi.StringArray{
pulumi.String("string"),
},
},
Sms: &checkly.AlertChannelSmsArgs{
Name: pulumi.String("string"),
Number: pulumi.String("string"),
},
SslExpiry: pulumi.Bool(false),
SslExpiryThreshold: pulumi.Int(0),
Webhook: &checkly.AlertChannelWebhookArgs{
Name: pulumi.String("string"),
Url: pulumi.String("string"),
Headers: pulumi.StringMap{
"string": pulumi.String("string"),
},
Method: pulumi.String("string"),
QueryParameters: pulumi.StringMap{
"string": pulumi.String("string"),
},
Template: pulumi.String("string"),
WebhookSecret: pulumi.String("string"),
WebhookType: pulumi.String("string"),
},
})
resource "checkly_alert_channel" "alertChannelResource" {
lifecycle {
create_before_destroy = true
}
auto_subscribe = false
call = {
name = "string"
number = "string"
}
email = {
address = "string"
}
opsgenie = {
api_key = "string"
name = "string"
priority = "string"
region = "string"
}
pagerduty = {
service_key = "string"
account = "string"
service_name = "string"
}
send_degraded = false
send_failure = false
send_recovery = false
slack_app = {
slack_channels = ["string"]
}
sms = {
name = "string"
number = "string"
}
ssl_expiry = false
ssl_expiry_threshold = 0
webhook = {
name = "string"
url = "string"
headers = {
"string" = "string"
}
method = "string"
query_parameters = {
"string" = "string"
}
template = "string"
webhook_secret = "string"
webhook_type = "string"
}
}
var alertChannelResource = new AlertChannel("alertChannelResource", AlertChannelArgs.builder()
.autoSubscribe(false)
.call(AlertChannelCallArgs.builder()
.name("string")
.number("string")
.build())
.email(AlertChannelEmailArgs.builder()
.address("string")
.build())
.opsgenie(AlertChannelOpsgenieArgs.builder()
.apiKey("string")
.name("string")
.priority("string")
.region("string")
.build())
.pagerduty(AlertChannelPagerdutyArgs.builder()
.serviceKey("string")
.account("string")
.serviceName("string")
.build())
.sendDegraded(false)
.sendFailure(false)
.sendRecovery(false)
.slackApp(AlertChannelSlackAppArgs.builder()
.slackChannels("string")
.build())
.sms(AlertChannelSmsArgs.builder()
.name("string")
.number("string")
.build())
.sslExpiry(false)
.sslExpiryThreshold(0)
.webhook(AlertChannelWebhookArgs.builder()
.name("string")
.url("string")
.headers(Map.of("string", "string"))
.method("string")
.queryParameters(Map.of("string", "string"))
.template("string")
.webhookSecret("string")
.webhookType("string")
.build())
.build());
alert_channel_resource = checkly.AlertChannel("alertChannelResource",
auto_subscribe=False,
call={
"name": "string",
"number": "string",
},
email={
"address": "string",
},
opsgenie={
"api_key": "string",
"name": "string",
"priority": "string",
"region": "string",
},
pagerduty={
"service_key": "string",
"account": "string",
"service_name": "string",
},
send_degraded=False,
send_failure=False,
send_recovery=False,
slack_app={
"slack_channels": ["string"],
},
sms={
"name": "string",
"number": "string",
},
ssl_expiry=False,
ssl_expiry_threshold=0,
webhook={
"name": "string",
"url": "string",
"headers": {
"string": "string",
},
"method": "string",
"query_parameters": {
"string": "string",
},
"template": "string",
"webhook_secret": "string",
"webhook_type": "string",
})
const alertChannelResource = new checkly.AlertChannel("alertChannelResource", {
autoSubscribe: false,
call: {
name: "string",
number: "string",
},
email: {
address: "string",
},
opsgenie: {
apiKey: "string",
name: "string",
priority: "string",
region: "string",
},
pagerduty: {
serviceKey: "string",
account: "string",
serviceName: "string",
},
sendDegraded: false,
sendFailure: false,
sendRecovery: false,
slackApp: {
slackChannels: ["string"],
},
sms: {
name: "string",
number: "string",
},
sslExpiry: false,
sslExpiryThreshold: 0,
webhook: {
name: "string",
url: "string",
headers: {
string: "string",
},
method: "string",
queryParameters: {
string: "string",
},
template: "string",
webhookSecret: "string",
webhookType: "string",
},
});
type: checkly:AlertChannel
properties:
autoSubscribe: false
call:
name: string
number: string
email:
address: string
opsgenie:
apiKey: string
name: string
priority: string
region: string
pagerduty:
account: string
serviceKey: string
serviceName: string
sendDegraded: false
sendFailure: false
sendRecovery: false
slackApp:
slackChannels:
- string
sms:
name: string
number: string
sslExpiry: false
sslExpiryThreshold: 0
webhook:
headers:
string: string
method: string
name: string
queryParameters:
string: string
template: string
url: string
webhookSecret: string
webhookType: string
AlertChannel Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AlertChannel resource accepts the following input properties:
- Auto
Subscribe bool - Whether new checks are subscribed to this alert channel automatically. Only the web app, which preselects the channel when you create a check there, and the Vercel integration, for the checks it creates, act on it. Checks created through the API, the Checkly CLI or Pulumi are not subscribed, and neither are existing checks; subscribe them with
alertChannelSubscriptions. Defaults tofalse. - Call
Alert
Channel Call - Sends alerts as phone calls.
- Email
Alert
Channel Email - Sends alerts by email.
- Opsgenie
Alert
Channel Opsgenie - Creates alerts in Opsgenie.
- Pagerduty
Alert
Channel Pagerduty - Sends alerts to a PagerDuty service.
- Send
Degraded bool - Whether to send an alert when a check is degraded. Defaults to
false. - Send
Failure bool - Whether to send an alert when a check fails. Defaults to
true. - Send
Recovery bool - Whether to send an alert when a check recovers. Defaults to
true. - Slack
Alert
Channel Slack - Sends alerts to a Slack channel through a legacy Slack incoming webhook.
- Slack
App AlertChannel Slack App - Sends alerts to Slack channels or users through the Checkly Slack app.
- Sms
Alert
Channel Sms - Sends alerts as SMS messages.
- Ssl
Expiry bool - Whether to send an alert for expiring SSL certificates. Defaults to
false. - Ssl
Expiry intThreshold - How many days before an SSL certificate expires to start sending alerts, when
sslExpiryis enabled. Possible values are between1and30. Defaults to30. - Webhook
Alert
Channel Webhook - Sends alerts as HTTP requests to a webhook.
- Auto
Subscribe bool - Whether new checks are subscribed to this alert channel automatically. Only the web app, which preselects the channel when you create a check there, and the Vercel integration, for the checks it creates, act on it. Checks created through the API, the Checkly CLI or Pulumi are not subscribed, and neither are existing checks; subscribe them with
alertChannelSubscriptions. Defaults tofalse. - Call
Alert
Channel Call Args - Sends alerts as phone calls.
- Email
Alert
Channel Email Args - Sends alerts by email.
- Opsgenie
Alert
Channel Opsgenie Args - Creates alerts in Opsgenie.
- Pagerduty
Alert
Channel Pagerduty Args - Sends alerts to a PagerDuty service.
- Send
Degraded bool - Whether to send an alert when a check is degraded. Defaults to
false. - Send
Failure bool - Whether to send an alert when a check fails. Defaults to
true. - Send
Recovery bool - Whether to send an alert when a check recovers. Defaults to
true. - Slack
Alert
Channel Slack Args - Sends alerts to a Slack channel through a legacy Slack incoming webhook.
- Slack
App AlertChannel Slack App Args - Sends alerts to Slack channels or users through the Checkly Slack app.
- Sms
Alert
Channel Sms Args - Sends alerts as SMS messages.
- Ssl
Expiry bool - Whether to send an alert for expiring SSL certificates. Defaults to
false. - Ssl
Expiry intThreshold - How many days before an SSL certificate expires to start sending alerts, when
sslExpiryis enabled. Possible values are between1and30. Defaults to30. - Webhook
Alert
Channel Webhook Args - Sends alerts as HTTP requests to a webhook.
- auto_
subscribe bool - Whether new checks are subscribed to this alert channel automatically. Only the web app, which preselects the channel when you create a check there, and the Vercel integration, for the checks it creates, act on it. Checks created through the API, the Checkly CLI or Pulumi are not subscribed, and neither are existing checks; subscribe them with
alertChannelSubscriptions. Defaults tofalse. - call object
- Sends alerts as phone calls.
- email object
- Sends alerts by email.
- opsgenie object
- Creates alerts in Opsgenie.
- pagerduty object
- Sends alerts to a PagerDuty service.
- send_
degraded bool - Whether to send an alert when a check is degraded. Defaults to
false. - send_
failure bool - Whether to send an alert when a check fails. Defaults to
true. - send_
recovery bool - Whether to send an alert when a check recovers. Defaults to
true. - slack object
- Sends alerts to a Slack channel through a legacy Slack incoming webhook.
- slack_
app object - Sends alerts to Slack channels or users through the Checkly Slack app.
- sms object
- Sends alerts as SMS messages.
- ssl_
expiry bool - Whether to send an alert for expiring SSL certificates. Defaults to
false. - ssl_
expiry_ numberthreshold - How many days before an SSL certificate expires to start sending alerts, when
sslExpiryis enabled. Possible values are between1and30. Defaults to30. - webhook object
- Sends alerts as HTTP requests to a webhook.
- auto
Subscribe Boolean - Whether new checks are subscribed to this alert channel automatically. Only the web app, which preselects the channel when you create a check there, and the Vercel integration, for the checks it creates, act on it. Checks created through the API, the Checkly CLI or Pulumi are not subscribed, and neither are existing checks; subscribe them with
alertChannelSubscriptions. Defaults tofalse. - call
Alert
Channel Call - Sends alerts as phone calls.
- email
Alert
Channel Email - Sends alerts by email.
- opsgenie
Alert
Channel Opsgenie - Creates alerts in Opsgenie.
- pagerduty
Alert
Channel Pagerduty - Sends alerts to a PagerDuty service.
- send
Degraded Boolean - Whether to send an alert when a check is degraded. Defaults to
false. - send
Failure Boolean - Whether to send an alert when a check fails. Defaults to
true. - send
Recovery Boolean - Whether to send an alert when a check recovers. Defaults to
true. - slack
Alert
Channel Slack - Sends alerts to a Slack channel through a legacy Slack incoming webhook.
- slack
App AlertChannel Slack App - Sends alerts to Slack channels or users through the Checkly Slack app.
- sms
Alert
Channel Sms - Sends alerts as SMS messages.
- ssl
Expiry Boolean - Whether to send an alert for expiring SSL certificates. Defaults to
false. - ssl
Expiry IntegerThreshold - How many days before an SSL certificate expires to start sending alerts, when
sslExpiryis enabled. Possible values are between1and30. Defaults to30. - webhook
Alert
Channel Webhook - Sends alerts as HTTP requests to a webhook.
- auto
Subscribe boolean - Whether new checks are subscribed to this alert channel automatically. Only the web app, which preselects the channel when you create a check there, and the Vercel integration, for the checks it creates, act on it. Checks created through the API, the Checkly CLI or Pulumi are not subscribed, and neither are existing checks; subscribe them with
alertChannelSubscriptions. Defaults tofalse. - call
Alert
Channel Call - Sends alerts as phone calls.
- email
Alert
Channel Email - Sends alerts by email.
- opsgenie
Alert
Channel Opsgenie - Creates alerts in Opsgenie.
- pagerduty
Alert
Channel Pagerduty - Sends alerts to a PagerDuty service.
- send
Degraded boolean - Whether to send an alert when a check is degraded. Defaults to
false. - send
Failure boolean - Whether to send an alert when a check fails. Defaults to
true. - send
Recovery boolean - Whether to send an alert when a check recovers. Defaults to
true. - slack
Alert
Channel Slack - Sends alerts to a Slack channel through a legacy Slack incoming webhook.
- slack
App AlertChannel Slack App - Sends alerts to Slack channels or users through the Checkly Slack app.
- sms
Alert
Channel Sms - Sends alerts as SMS messages.
- ssl
Expiry boolean - Whether to send an alert for expiring SSL certificates. Defaults to
false. - ssl
Expiry numberThreshold - How many days before an SSL certificate expires to start sending alerts, when
sslExpiryis enabled. Possible values are between1and30. Defaults to30. - webhook
Alert
Channel Webhook - Sends alerts as HTTP requests to a webhook.
- auto_
subscribe bool - Whether new checks are subscribed to this alert channel automatically. Only the web app, which preselects the channel when you create a check there, and the Vercel integration, for the checks it creates, act on it. Checks created through the API, the Checkly CLI or Pulumi are not subscribed, and neither are existing checks; subscribe them with
alertChannelSubscriptions. Defaults tofalse. - call
Alert
Channel Call Args - Sends alerts as phone calls.
- email
Alert
Channel Email Args - Sends alerts by email.
- opsgenie
Alert
Channel Opsgenie Args - Creates alerts in Opsgenie.
- pagerduty
Alert
Channel Pagerduty Args - Sends alerts to a PagerDuty service.
- send_
degraded bool - Whether to send an alert when a check is degraded. Defaults to
false. - send_
failure bool - Whether to send an alert when a check fails. Defaults to
true. - send_
recovery bool - Whether to send an alert when a check recovers. Defaults to
true. - slack
Alert
Channel Slack Args - Sends alerts to a Slack channel through a legacy Slack incoming webhook.
- slack_
app AlertChannel Slack App Args - Sends alerts to Slack channels or users through the Checkly Slack app.
- sms
Alert
Channel Sms Args - Sends alerts as SMS messages.
- ssl_
expiry bool - Whether to send an alert for expiring SSL certificates. Defaults to
false. - ssl_
expiry_ intthreshold - How many days before an SSL certificate expires to start sending alerts, when
sslExpiryis enabled. Possible values are between1and30. Defaults to30. - webhook
Alert
Channel Webhook Args - Sends alerts as HTTP requests to a webhook.
- auto
Subscribe Boolean - Whether new checks are subscribed to this alert channel automatically. Only the web app, which preselects the channel when you create a check there, and the Vercel integration, for the checks it creates, act on it. Checks created through the API, the Checkly CLI or Pulumi are not subscribed, and neither are existing checks; subscribe them with
alertChannelSubscriptions. Defaults tofalse. - call Property Map
- Sends alerts as phone calls.
- email Property Map
- Sends alerts by email.
- opsgenie Property Map
- Creates alerts in Opsgenie.
- pagerduty Property Map
- Sends alerts to a PagerDuty service.
- send
Degraded Boolean - Whether to send an alert when a check is degraded. Defaults to
false. - send
Failure Boolean - Whether to send an alert when a check fails. Defaults to
true. - send
Recovery Boolean - Whether to send an alert when a check recovers. Defaults to
true. - slack Property Map
- Sends alerts to a Slack channel through a legacy Slack incoming webhook.
- slack
App Property Map - Sends alerts to Slack channels or users through the Checkly Slack app.
- sms Property Map
- Sends alerts as SMS messages.
- ssl
Expiry Boolean - Whether to send an alert for expiring SSL certificates. Defaults to
false. - ssl
Expiry NumberThreshold - How many days before an SSL certificate expires to start sending alerts, when
sslExpiryis enabled. Possible values are between1and30. Defaults to30. - webhook Property Map
- Sends alerts as HTTP requests to a webhook.
Outputs
All input properties are implicitly available as output properties. Additionally, the AlertChannel resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AlertChannel Resource
Get an existing AlertChannel resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AlertChannelState, opts?: CustomResourceOptions): AlertChannel@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_subscribe: Optional[bool] = None,
call: Optional[AlertChannelCallArgs] = None,
email: Optional[AlertChannelEmailArgs] = None,
opsgenie: Optional[AlertChannelOpsgenieArgs] = None,
pagerduty: Optional[AlertChannelPagerdutyArgs] = None,
send_degraded: Optional[bool] = None,
send_failure: Optional[bool] = None,
send_recovery: Optional[bool] = None,
slack: Optional[AlertChannelSlackArgs] = None,
slack_app: Optional[AlertChannelSlackAppArgs] = None,
sms: Optional[AlertChannelSmsArgs] = None,
ssl_expiry: Optional[bool] = None,
ssl_expiry_threshold: Optional[int] = None,
webhook: Optional[AlertChannelWebhookArgs] = None) -> AlertChannelfunc GetAlertChannel(ctx *Context, name string, id IDInput, state *AlertChannelState, opts ...ResourceOption) (*AlertChannel, error)public static AlertChannel Get(string name, Input<string> id, AlertChannelState? state, CustomResourceOptions? opts = null)public static AlertChannel get(String name, Output<String> id, AlertChannelState state, CustomResourceOptions options)resources: existingAlertChannel: type: checkly:AlertChannel get: id: ${id}import {
to = checkly_alert_channel.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state AlertChannelState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state AlertChannelState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state AlertChannelState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state AlertChannelState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Auto
Subscribe bool - Whether new checks are subscribed to this alert channel automatically. Only the web app, which preselects the channel when you create a check there, and the Vercel integration, for the checks it creates, act on it. Checks created through the API, the Checkly CLI or Pulumi are not subscribed, and neither are existing checks; subscribe them with
alertChannelSubscriptions. Defaults tofalse. - Call
Alert
Channel Call - Sends alerts as phone calls.
- Email
Alert
Channel Email - Sends alerts by email.
- Opsgenie
Alert
Channel Opsgenie - Creates alerts in Opsgenie.
- Pagerduty
Alert
Channel Pagerduty - Sends alerts to a PagerDuty service.
- Send
Degraded bool - Whether to send an alert when a check is degraded. Defaults to
false. - Send
Failure bool - Whether to send an alert when a check fails. Defaults to
true. - Send
Recovery bool - Whether to send an alert when a check recovers. Defaults to
true. - Slack
Alert
Channel Slack - Sends alerts to a Slack channel through a legacy Slack incoming webhook.
- Slack
App AlertChannel Slack App - Sends alerts to Slack channels or users through the Checkly Slack app.
- Sms
Alert
Channel Sms - Sends alerts as SMS messages.
- Ssl
Expiry bool - Whether to send an alert for expiring SSL certificates. Defaults to
false. - Ssl
Expiry intThreshold - How many days before an SSL certificate expires to start sending alerts, when
sslExpiryis enabled. Possible values are between1and30. Defaults to30. - Webhook
Alert
Channel Webhook - Sends alerts as HTTP requests to a webhook.
- Auto
Subscribe bool - Whether new checks are subscribed to this alert channel automatically. Only the web app, which preselects the channel when you create a check there, and the Vercel integration, for the checks it creates, act on it. Checks created through the API, the Checkly CLI or Pulumi are not subscribed, and neither are existing checks; subscribe them with
alertChannelSubscriptions. Defaults tofalse. - Call
Alert
Channel Call Args - Sends alerts as phone calls.
- Email
Alert
Channel Email Args - Sends alerts by email.
- Opsgenie
Alert
Channel Opsgenie Args - Creates alerts in Opsgenie.
- Pagerduty
Alert
Channel Pagerduty Args - Sends alerts to a PagerDuty service.
- Send
Degraded bool - Whether to send an alert when a check is degraded. Defaults to
false. - Send
Failure bool - Whether to send an alert when a check fails. Defaults to
true. - Send
Recovery bool - Whether to send an alert when a check recovers. Defaults to
true. - Slack
Alert
Channel Slack Args - Sends alerts to a Slack channel through a legacy Slack incoming webhook.
- Slack
App AlertChannel Slack App Args - Sends alerts to Slack channels or users through the Checkly Slack app.
- Sms
Alert
Channel Sms Args - Sends alerts as SMS messages.
- Ssl
Expiry bool - Whether to send an alert for expiring SSL certificates. Defaults to
false. - Ssl
Expiry intThreshold - How many days before an SSL certificate expires to start sending alerts, when
sslExpiryis enabled. Possible values are between1and30. Defaults to30. - Webhook
Alert
Channel Webhook Args - Sends alerts as HTTP requests to a webhook.
- auto_
subscribe bool - Whether new checks are subscribed to this alert channel automatically. Only the web app, which preselects the channel when you create a check there, and the Vercel integration, for the checks it creates, act on it. Checks created through the API, the Checkly CLI or Pulumi are not subscribed, and neither are existing checks; subscribe them with
alertChannelSubscriptions. Defaults tofalse. - call object
- Sends alerts as phone calls.
- email object
- Sends alerts by email.
- opsgenie object
- Creates alerts in Opsgenie.
- pagerduty object
- Sends alerts to a PagerDuty service.
- send_
degraded bool - Whether to send an alert when a check is degraded. Defaults to
false. - send_
failure bool - Whether to send an alert when a check fails. Defaults to
true. - send_
recovery bool - Whether to send an alert when a check recovers. Defaults to
true. - slack object
- Sends alerts to a Slack channel through a legacy Slack incoming webhook.
- slack_
app object - Sends alerts to Slack channels or users through the Checkly Slack app.
- sms object
- Sends alerts as SMS messages.
- ssl_
expiry bool - Whether to send an alert for expiring SSL certificates. Defaults to
false. - ssl_
expiry_ numberthreshold - How many days before an SSL certificate expires to start sending alerts, when
sslExpiryis enabled. Possible values are between1and30. Defaults to30. - webhook object
- Sends alerts as HTTP requests to a webhook.
- auto
Subscribe Boolean - Whether new checks are subscribed to this alert channel automatically. Only the web app, which preselects the channel when you create a check there, and the Vercel integration, for the checks it creates, act on it. Checks created through the API, the Checkly CLI or Pulumi are not subscribed, and neither are existing checks; subscribe them with
alertChannelSubscriptions. Defaults tofalse. - call
Alert
Channel Call - Sends alerts as phone calls.
- email
Alert
Channel Email - Sends alerts by email.
- opsgenie
Alert
Channel Opsgenie - Creates alerts in Opsgenie.
- pagerduty
Alert
Channel Pagerduty - Sends alerts to a PagerDuty service.
- send
Degraded Boolean - Whether to send an alert when a check is degraded. Defaults to
false. - send
Failure Boolean - Whether to send an alert when a check fails. Defaults to
true. - send
Recovery Boolean - Whether to send an alert when a check recovers. Defaults to
true. - slack
Alert
Channel Slack - Sends alerts to a Slack channel through a legacy Slack incoming webhook.
- slack
App AlertChannel Slack App - Sends alerts to Slack channels or users through the Checkly Slack app.
- sms
Alert
Channel Sms - Sends alerts as SMS messages.
- ssl
Expiry Boolean - Whether to send an alert for expiring SSL certificates. Defaults to
false. - ssl
Expiry IntegerThreshold - How many days before an SSL certificate expires to start sending alerts, when
sslExpiryis enabled. Possible values are between1and30. Defaults to30. - webhook
Alert
Channel Webhook - Sends alerts as HTTP requests to a webhook.
- auto
Subscribe boolean - Whether new checks are subscribed to this alert channel automatically. Only the web app, which preselects the channel when you create a check there, and the Vercel integration, for the checks it creates, act on it. Checks created through the API, the Checkly CLI or Pulumi are not subscribed, and neither are existing checks; subscribe them with
alertChannelSubscriptions. Defaults tofalse. - call
Alert
Channel Call - Sends alerts as phone calls.
- email
Alert
Channel Email - Sends alerts by email.
- opsgenie
Alert
Channel Opsgenie - Creates alerts in Opsgenie.
- pagerduty
Alert
Channel Pagerduty - Sends alerts to a PagerDuty service.
- send
Degraded boolean - Whether to send an alert when a check is degraded. Defaults to
false. - send
Failure boolean - Whether to send an alert when a check fails. Defaults to
true. - send
Recovery boolean - Whether to send an alert when a check recovers. Defaults to
true. - slack
Alert
Channel Slack - Sends alerts to a Slack channel through a legacy Slack incoming webhook.
- slack
App AlertChannel Slack App - Sends alerts to Slack channels or users through the Checkly Slack app.
- sms
Alert
Channel Sms - Sends alerts as SMS messages.
- ssl
Expiry boolean - Whether to send an alert for expiring SSL certificates. Defaults to
false. - ssl
Expiry numberThreshold - How many days before an SSL certificate expires to start sending alerts, when
sslExpiryis enabled. Possible values are between1and30. Defaults to30. - webhook
Alert
Channel Webhook - Sends alerts as HTTP requests to a webhook.
- auto_
subscribe bool - Whether new checks are subscribed to this alert channel automatically. Only the web app, which preselects the channel when you create a check there, and the Vercel integration, for the checks it creates, act on it. Checks created through the API, the Checkly CLI or Pulumi are not subscribed, and neither are existing checks; subscribe them with
alertChannelSubscriptions. Defaults tofalse. - call
Alert
Channel Call Args - Sends alerts as phone calls.
- email
Alert
Channel Email Args - Sends alerts by email.
- opsgenie
Alert
Channel Opsgenie Args - Creates alerts in Opsgenie.
- pagerduty
Alert
Channel Pagerduty Args - Sends alerts to a PagerDuty service.
- send_
degraded bool - Whether to send an alert when a check is degraded. Defaults to
false. - send_
failure bool - Whether to send an alert when a check fails. Defaults to
true. - send_
recovery bool - Whether to send an alert when a check recovers. Defaults to
true. - slack
Alert
Channel Slack Args - Sends alerts to a Slack channel through a legacy Slack incoming webhook.
- slack_
app AlertChannel Slack App Args - Sends alerts to Slack channels or users through the Checkly Slack app.
- sms
Alert
Channel Sms Args - Sends alerts as SMS messages.
- ssl_
expiry bool - Whether to send an alert for expiring SSL certificates. Defaults to
false. - ssl_
expiry_ intthreshold - How many days before an SSL certificate expires to start sending alerts, when
sslExpiryis enabled. Possible values are between1and30. Defaults to30. - webhook
Alert
Channel Webhook Args - Sends alerts as HTTP requests to a webhook.
- auto
Subscribe Boolean - Whether new checks are subscribed to this alert channel automatically. Only the web app, which preselects the channel when you create a check there, and the Vercel integration, for the checks it creates, act on it. Checks created through the API, the Checkly CLI or Pulumi are not subscribed, and neither are existing checks; subscribe them with
alertChannelSubscriptions. Defaults tofalse. - call Property Map
- Sends alerts as phone calls.
- email Property Map
- Sends alerts by email.
- opsgenie Property Map
- Creates alerts in Opsgenie.
- pagerduty Property Map
- Sends alerts to a PagerDuty service.
- send
Degraded Boolean - Whether to send an alert when a check is degraded. Defaults to
false. - send
Failure Boolean - Whether to send an alert when a check fails. Defaults to
true. - send
Recovery Boolean - Whether to send an alert when a check recovers. Defaults to
true. - slack Property Map
- Sends alerts to a Slack channel through a legacy Slack incoming webhook.
- slack
App Property Map - Sends alerts to Slack channels or users through the Checkly Slack app.
- sms Property Map
- Sends alerts as SMS messages.
- ssl
Expiry Boolean - Whether to send an alert for expiring SSL certificates. Defaults to
false. - ssl
Expiry NumberThreshold - How many days before an SSL certificate expires to start sending alerts, when
sslExpiryis enabled. Possible values are between1and30. Defaults to30. - webhook Property Map
- Sends alerts as HTTP requests to a webhook.
Supporting Types
AlertChannelCall, AlertChannelCallArgs
AlertChannelEmail, AlertChannelEmailArgs
- Address string
- The email address of this email alert channel.
- Address string
- The email address of this email alert channel.
- address string
- The email address of this email alert channel.
- address String
- The email address of this email alert channel.
- address string
- The email address of this email alert channel.
- address str
- The email address of this email alert channel.
- address String
- The email address of this email alert channel.
AlertChannelOpsgenie, AlertChannelOpsgenieArgs
- Api
Key string - The API key of the Opsgenie integration to create alerts with.
- Name string
- The name of this alert channel.
- Priority string
- The priority of the alerts created in Opsgenie. Possible values are
P1,P2,P3,P4andP5. - Region string
- The region of the Opsgenie account, which selects the Opsgenie API to call. Possible values are
EUandUS.
- Api
Key string - The API key of the Opsgenie integration to create alerts with.
- Name string
- The name of this alert channel.
- Priority string
- The priority of the alerts created in Opsgenie. Possible values are
P1,P2,P3,P4andP5. - Region string
- The region of the Opsgenie account, which selects the Opsgenie API to call. Possible values are
EUandUS.
- api_
key string - The API key of the Opsgenie integration to create alerts with.
- name string
- The name of this alert channel.
- priority string
- The priority of the alerts created in Opsgenie. Possible values are
P1,P2,P3,P4andP5. - region string
- The region of the Opsgenie account, which selects the Opsgenie API to call. Possible values are
EUandUS.
- api
Key String - The API key of the Opsgenie integration to create alerts with.
- name String
- The name of this alert channel.
- priority String
- The priority of the alerts created in Opsgenie. Possible values are
P1,P2,P3,P4andP5. - region String
- The region of the Opsgenie account, which selects the Opsgenie API to call. Possible values are
EUandUS.
- api
Key string - The API key of the Opsgenie integration to create alerts with.
- name string
- The name of this alert channel.
- priority string
- The priority of the alerts created in Opsgenie. Possible values are
P1,P2,P3,P4andP5. - region string
- The region of the Opsgenie account, which selects the Opsgenie API to call. Possible values are
EUandUS.
- api_
key str - The API key of the Opsgenie integration to create alerts with.
- name str
- The name of this alert channel.
- priority str
- The priority of the alerts created in Opsgenie. Possible values are
P1,P2,P3,P4andP5. - region str
- The region of the Opsgenie account, which selects the Opsgenie API to call. Possible values are
EUandUS.
- api
Key String - The API key of the Opsgenie integration to create alerts with.
- name String
- The name of this alert channel.
- priority String
- The priority of the alerts created in Opsgenie. Possible values are
P1,P2,P3,P4andP5. - region String
- The region of the Opsgenie account, which selects the Opsgenie API to call. Possible values are
EUandUS.
AlertChannelPagerduty, AlertChannelPagerdutyArgs
- Service
Key string - The integration key of the PagerDuty service to send alerts to.
- Account string
- The name of the PagerDuty account.
- Service
Name string - The name of the PagerDuty service.
- Service
Key string - The integration key of the PagerDuty service to send alerts to.
- Account string
- The name of the PagerDuty account.
- Service
Name string - The name of the PagerDuty service.
- service_
key string - The integration key of the PagerDuty service to send alerts to.
- account string
- The name of the PagerDuty account.
- service_
name string - The name of the PagerDuty service.
- service
Key String - The integration key of the PagerDuty service to send alerts to.
- account String
- The name of the PagerDuty account.
- service
Name String - The name of the PagerDuty service.
- service
Key string - The integration key of the PagerDuty service to send alerts to.
- account string
- The name of the PagerDuty account.
- service
Name string - The name of the PagerDuty service.
- service_
key str - The integration key of the PagerDuty service to send alerts to.
- account str
- The name of the PagerDuty account.
- service_
name str - The name of the PagerDuty service.
- service
Key String - The integration key of the PagerDuty service to send alerts to.
- account String
- The name of the PagerDuty account.
- service
Name String - The name of the PagerDuty service.
AlertChannelSlack, AlertChannelSlackArgs
AlertChannelSlackApp, AlertChannelSlackAppArgs
- Slack
Channels List<string> - The Slack channels or users to notify, e.g.
["#ops", "@John", "C0123456789"]. Each element starts with#for a channel or@for a user, or is a Slack channel ID, such asC0123456789, and has no trailing whitespace. A private channel can be given by its ID.
- Slack
Channels []string - The Slack channels or users to notify, e.g.
["#ops", "@John", "C0123456789"]. Each element starts with#for a channel or@for a user, or is a Slack channel ID, such asC0123456789, and has no trailing whitespace. A private channel can be given by its ID.
- slack_
channels list(string) - The Slack channels or users to notify, e.g.
["#ops", "@John", "C0123456789"]. Each element starts with#for a channel or@for a user, or is a Slack channel ID, such asC0123456789, and has no trailing whitespace. A private channel can be given by its ID.
- slack
Channels List<String> - The Slack channels or users to notify, e.g.
["#ops", "@John", "C0123456789"]. Each element starts with#for a channel or@for a user, or is a Slack channel ID, such asC0123456789, and has no trailing whitespace. A private channel can be given by its ID.
- slack
Channels string[] - The Slack channels or users to notify, e.g.
["#ops", "@John", "C0123456789"]. Each element starts with#for a channel or@for a user, or is a Slack channel ID, such asC0123456789, and has no trailing whitespace. A private channel can be given by its ID.
- slack_
channels Sequence[str] - The Slack channels or users to notify, e.g.
["#ops", "@John", "C0123456789"]. Each element starts with#for a channel or@for a user, or is a Slack channel ID, such asC0123456789, and has no trailing whitespace. A private channel can be given by its ID.
- slack
Channels List<String> - The Slack channels or users to notify, e.g.
["#ops", "@John", "C0123456789"]. Each element starts with#for a channel or@for a user, or is a Slack channel ID, such asC0123456789, and has no trailing whitespace. A private channel can be given by its ID.
AlertChannelSms, AlertChannelSmsArgs
AlertChannelWebhook, AlertChannelWebhookArgs
- Name string
- The name of this alert channel.
- Url string
- The URL to send the webhook request to.
- Headers Dictionary<string, string>
- HTTP headers to send with the webhook request, as a map of header names to values. The values are not secret by default: they show in preview output and are stored unencrypted in the state. To keep a credential in a header secret, mark it as a secret, for example with a secret configuration value or your language's Pulumi secret helper. Pulumi then masks it in preview output and encrypts it in the state.
- Method string
- The HTTP method of the webhook request, such as
GET,POST,PUT,HEAD,DELETEorPATCH. Must not be empty. Defaults toPOST. - Query
Parameters Dictionary<string, string> - Query parameters to add to the webhook URL, as a map of parameter names to values. The values are not secret by default: they show in preview output and are stored unencrypted in the state. To keep a credential in a parameter secret, mark it as a secret, for example with a secret configuration value or your language's Pulumi secret helper. Pulumi then masks it in preview output and encrypts it in the state.
- Template string
- The body of the webhook request, which can contain template variables such as
{{ALERT_TITLE}}and{{RESULT_LINK}}. If not set, Checkly sends its default JSON payload. - Webhook
Secret string - A secret to sign webhook requests with. When set, Checkly sends an HMAC-SHA256 signature of the request body, keyed with this secret, in the
x-checkly-signatureheader. - Webhook
Type string - Type of the webhook. Possible values are
WEBHOOK_CORALOGIX,WEBHOOK_DISCORD,WEBHOOK_FIREHYDRANT,WEBHOOK_GITLAB_ALERT,WEBHOOK_ILERT,WEBHOOK_INCIDENTIO,WEBHOOK_MSTEAMS,WEBHOOK_ROOTLY,WEBHOOK_SPIKESH,WEBHOOK_SPLUNKandWEBHOOK_TELEGRAM.
- Name string
- The name of this alert channel.
- Url string
- The URL to send the webhook request to.
- Headers map[string]string
- HTTP headers to send with the webhook request, as a map of header names to values. The values are not secret by default: they show in preview output and are stored unencrypted in the state. To keep a credential in a header secret, mark it as a secret, for example with a secret configuration value or your language's Pulumi secret helper. Pulumi then masks it in preview output and encrypts it in the state.
- Method string
- The HTTP method of the webhook request, such as
GET,POST,PUT,HEAD,DELETEorPATCH. Must not be empty. Defaults toPOST. - Query
Parameters map[string]string - Query parameters to add to the webhook URL, as a map of parameter names to values. The values are not secret by default: they show in preview output and are stored unencrypted in the state. To keep a credential in a parameter secret, mark it as a secret, for example with a secret configuration value or your language's Pulumi secret helper. Pulumi then masks it in preview output and encrypts it in the state.
- Template string
- The body of the webhook request, which can contain template variables such as
{{ALERT_TITLE}}and{{RESULT_LINK}}. If not set, Checkly sends its default JSON payload. - Webhook
Secret string - A secret to sign webhook requests with. When set, Checkly sends an HMAC-SHA256 signature of the request body, keyed with this secret, in the
x-checkly-signatureheader. - Webhook
Type string - Type of the webhook. Possible values are
WEBHOOK_CORALOGIX,WEBHOOK_DISCORD,WEBHOOK_FIREHYDRANT,WEBHOOK_GITLAB_ALERT,WEBHOOK_ILERT,WEBHOOK_INCIDENTIO,WEBHOOK_MSTEAMS,WEBHOOK_ROOTLY,WEBHOOK_SPIKESH,WEBHOOK_SPLUNKandWEBHOOK_TELEGRAM.
- name string
- The name of this alert channel.
- url string
- The URL to send the webhook request to.
- headers map(string)
- HTTP headers to send with the webhook request, as a map of header names to values. The values are not secret by default: they show in preview output and are stored unencrypted in the state. To keep a credential in a header secret, mark it as a secret, for example with a secret configuration value or your language's Pulumi secret helper. Pulumi then masks it in preview output and encrypts it in the state.
- method string
- The HTTP method of the webhook request, such as
GET,POST,PUT,HEAD,DELETEorPATCH. Must not be empty. Defaults toPOST. - query_
parameters map(string) - Query parameters to add to the webhook URL, as a map of parameter names to values. The values are not secret by default: they show in preview output and are stored unencrypted in the state. To keep a credential in a parameter secret, mark it as a secret, for example with a secret configuration value or your language's Pulumi secret helper. Pulumi then masks it in preview output and encrypts it in the state.
- template string
- The body of the webhook request, which can contain template variables such as
{{ALERT_TITLE}}and{{RESULT_LINK}}. If not set, Checkly sends its default JSON payload. - webhook_
secret string - A secret to sign webhook requests with. When set, Checkly sends an HMAC-SHA256 signature of the request body, keyed with this secret, in the
x-checkly-signatureheader. - webhook_
type string - Type of the webhook. Possible values are
WEBHOOK_CORALOGIX,WEBHOOK_DISCORD,WEBHOOK_FIREHYDRANT,WEBHOOK_GITLAB_ALERT,WEBHOOK_ILERT,WEBHOOK_INCIDENTIO,WEBHOOK_MSTEAMS,WEBHOOK_ROOTLY,WEBHOOK_SPIKESH,WEBHOOK_SPLUNKandWEBHOOK_TELEGRAM.
- name String
- The name of this alert channel.
- url String
- The URL to send the webhook request to.
- headers Map<String,String>
- HTTP headers to send with the webhook request, as a map of header names to values. The values are not secret by default: they show in preview output and are stored unencrypted in the state. To keep a credential in a header secret, mark it as a secret, for example with a secret configuration value or your language's Pulumi secret helper. Pulumi then masks it in preview output and encrypts it in the state.
- method String
- The HTTP method of the webhook request, such as
GET,POST,PUT,HEAD,DELETEorPATCH. Must not be empty. Defaults toPOST. - query
Parameters Map<String,String> - Query parameters to add to the webhook URL, as a map of parameter names to values. The values are not secret by default: they show in preview output and are stored unencrypted in the state. To keep a credential in a parameter secret, mark it as a secret, for example with a secret configuration value or your language's Pulumi secret helper. Pulumi then masks it in preview output and encrypts it in the state.
- template String
- The body of the webhook request, which can contain template variables such as
{{ALERT_TITLE}}and{{RESULT_LINK}}. If not set, Checkly sends its default JSON payload. - webhook
Secret String - A secret to sign webhook requests with. When set, Checkly sends an HMAC-SHA256 signature of the request body, keyed with this secret, in the
x-checkly-signatureheader. - webhook
Type String - Type of the webhook. Possible values are
WEBHOOK_CORALOGIX,WEBHOOK_DISCORD,WEBHOOK_FIREHYDRANT,WEBHOOK_GITLAB_ALERT,WEBHOOK_ILERT,WEBHOOK_INCIDENTIO,WEBHOOK_MSTEAMS,WEBHOOK_ROOTLY,WEBHOOK_SPIKESH,WEBHOOK_SPLUNKandWEBHOOK_TELEGRAM.
- name string
- The name of this alert channel.
- url string
- The URL to send the webhook request to.
- headers {[key: string]: string}
- HTTP headers to send with the webhook request, as a map of header names to values. The values are not secret by default: they show in preview output and are stored unencrypted in the state. To keep a credential in a header secret, mark it as a secret, for example with a secret configuration value or your language's Pulumi secret helper. Pulumi then masks it in preview output and encrypts it in the state.
- method string
- The HTTP method of the webhook request, such as
GET,POST,PUT,HEAD,DELETEorPATCH. Must not be empty. Defaults toPOST. - query
Parameters {[key: string]: string} - Query parameters to add to the webhook URL, as a map of parameter names to values. The values are not secret by default: they show in preview output and are stored unencrypted in the state. To keep a credential in a parameter secret, mark it as a secret, for example with a secret configuration value or your language's Pulumi secret helper. Pulumi then masks it in preview output and encrypts it in the state.
- template string
- The body of the webhook request, which can contain template variables such as
{{ALERT_TITLE}}and{{RESULT_LINK}}. If not set, Checkly sends its default JSON payload. - webhook
Secret string - A secret to sign webhook requests with. When set, Checkly sends an HMAC-SHA256 signature of the request body, keyed with this secret, in the
x-checkly-signatureheader. - webhook
Type string - Type of the webhook. Possible values are
WEBHOOK_CORALOGIX,WEBHOOK_DISCORD,WEBHOOK_FIREHYDRANT,WEBHOOK_GITLAB_ALERT,WEBHOOK_ILERT,WEBHOOK_INCIDENTIO,WEBHOOK_MSTEAMS,WEBHOOK_ROOTLY,WEBHOOK_SPIKESH,WEBHOOK_SPLUNKandWEBHOOK_TELEGRAM.
- name str
- The name of this alert channel.
- url str
- The URL to send the webhook request to.
- headers Mapping[str, str]
- HTTP headers to send with the webhook request, as a map of header names to values. The values are not secret by default: they show in preview output and are stored unencrypted in the state. To keep a credential in a header secret, mark it as a secret, for example with a secret configuration value or your language's Pulumi secret helper. Pulumi then masks it in preview output and encrypts it in the state.
- method str
- The HTTP method of the webhook request, such as
GET,POST,PUT,HEAD,DELETEorPATCH. Must not be empty. Defaults toPOST. - query_
parameters Mapping[str, str] - Query parameters to add to the webhook URL, as a map of parameter names to values. The values are not secret by default: they show in preview output and are stored unencrypted in the state. To keep a credential in a parameter secret, mark it as a secret, for example with a secret configuration value or your language's Pulumi secret helper. Pulumi then masks it in preview output and encrypts it in the state.
- template str
- The body of the webhook request, which can contain template variables such as
{{ALERT_TITLE}}and{{RESULT_LINK}}. If not set, Checkly sends its default JSON payload. - webhook_
secret str - A secret to sign webhook requests with. When set, Checkly sends an HMAC-SHA256 signature of the request body, keyed with this secret, in the
x-checkly-signatureheader. - webhook_
type str - Type of the webhook. Possible values are
WEBHOOK_CORALOGIX,WEBHOOK_DISCORD,WEBHOOK_FIREHYDRANT,WEBHOOK_GITLAB_ALERT,WEBHOOK_ILERT,WEBHOOK_INCIDENTIO,WEBHOOK_MSTEAMS,WEBHOOK_ROOTLY,WEBHOOK_SPIKESH,WEBHOOK_SPLUNKandWEBHOOK_TELEGRAM.
- name String
- The name of this alert channel.
- url String
- The URL to send the webhook request to.
- headers Map<String>
- HTTP headers to send with the webhook request, as a map of header names to values. The values are not secret by default: they show in preview output and are stored unencrypted in the state. To keep a credential in a header secret, mark it as a secret, for example with a secret configuration value or your language's Pulumi secret helper. Pulumi then masks it in preview output and encrypts it in the state.
- method String
- The HTTP method of the webhook request, such as
GET,POST,PUT,HEAD,DELETEorPATCH. Must not be empty. Defaults toPOST. - query
Parameters Map<String> - Query parameters to add to the webhook URL, as a map of parameter names to values. The values are not secret by default: they show in preview output and are stored unencrypted in the state. To keep a credential in a parameter secret, mark it as a secret, for example with a secret configuration value or your language's Pulumi secret helper. Pulumi then masks it in preview output and encrypts it in the state.
- template String
- The body of the webhook request, which can contain template variables such as
{{ALERT_TITLE}}and{{RESULT_LINK}}. If not set, Checkly sends its default JSON payload. - webhook
Secret String - A secret to sign webhook requests with. When set, Checkly sends an HMAC-SHA256 signature of the request body, keyed with this secret, in the
x-checkly-signatureheader. - webhook
Type String - Type of the webhook. Possible values are
WEBHOOK_CORALOGIX,WEBHOOK_DISCORD,WEBHOOK_FIREHYDRANT,WEBHOOK_GITLAB_ALERT,WEBHOOK_ILERT,WEBHOOK_INCIDENTIO,WEBHOOK_MSTEAMS,WEBHOOK_ROOTLY,WEBHOOK_SPIKESH,WEBHOOK_SPLUNKandWEBHOOK_TELEGRAM.
Import
The pulumi import command can be used, for example:
Import an existing alert channel using its numeric ID. The ID is returned by the Checkly API at GET /v1/alert-channels.
$ pulumi import checkly:index/alertChannel:AlertChannel example 12345
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- checkly checkly/pulumi-checkly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
checklyTerraform Provider.
Checklypublished on Monday, Nov 16, 2026 by Checkly