From 32d108e74ac1d7a908f26f6e8bf1492b156717a8 Mon Sep 17 00:00:00 2001 From: Sergii Bezliudnyi Date: Tue, 18 Feb 2025 12:29:06 +0100 Subject: [PATCH] feat: mention tcp in pulumi integration (#1218) --- site/content/docs/integrations/pulumi.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/site/content/docs/integrations/pulumi.md b/site/content/docs/integrations/pulumi.md index 46b4d8127..d6bd05ab9 100644 --- a/site/content/docs/integrations/pulumi.md +++ b/site/content/docs/integrations/pulumi.md @@ -213,6 +213,27 @@ new checkly.Check('my-browser-check-pulumi', { }) ``` +#### How to create your first TCP check + +```javascript {title="tcp-check.js"} +new checkly.TcpCheck('my-tcp-check', { + name: 'Example TCP check', + activated: true, + shouldFail: false, + frequency: 1, + useGlobalAlertSettings: true, + locations: ['us-west-1'], + degradedResponseTime: 3000, + maxResponseTime: 5000, + tags: ['pulumi'], + request: { + hostname: 'api.checklyhq.com', + port: 80, + }, +}); +``` +For detailed documentation on TCP checks, refer to the [Pulumi Checkly TCP Check API docs](https://www.pulumi.com/registry/packages/checkly/api-docs/tcpcheck/). + ### Creating checks and applying changes Your `index.js` file should now include instructions to create one API and one Browser check.