# 如何将 Pulsetic Webhook 接入 Pocket Alert？

> 几个简单步骤，连接 Pulsetic Webhook 推送通知

*18.06.2024*

<!-- source: https://pocketalert.app/zh/blog/how-to-integrate-pulsetic-webhooks-into-pocketalert -->

[//]: # '# 如何将 Pulsetic Webhook 接入 Pocket Alert'

## 创建新的 Webhook

![创建 Webhook](https://cdn.pocketalert.app/guides/monitoring-tools/webhook-create.gif)

1. 前往 [Webhooks](https://pocketalert.app/webhooks) 页面
2. 点击 "Create" 按钮
3. 按以下信息填写表单：
   - **Name**：Webhook 的名称
   - **Application**：要关联此 Webhook 的应用
   - **Device**：要关联此 Webhook 的设备
   - **Message**：Webhook 触发时发送的消息
4. 点击 "Create" 按钮
5. 复制 Webhook 的 URL

**在消息中我们指定 \* 来获取全部 JSON，从而确定需要哪些参数。**

## 将 Webhook 添加到 [Pulsetic](https://pulsetic.com/?fpr=pocketalert)

![在 Pulsetic 中添加 Webhook](https://cdn.pocketalert.app/guides/monitoring-tools/pulsetic-webhook.gif)

1. 前往 [监控项](https://app.pulsetic.com/monitors?fpr=pocketalert) 页面
2. 点击 “...”，并在菜单中选择 “Alerts”
3. 点击 "Webhooks" 标签页
4. 粘贴从 Pocket Alert 复制的链接
5. 点击 “Save” 按钮保存更改
6. 点击 “Send Online Request” 或 “Send Offline Request” 检查是否生效

## 最终设置

在 Pulsetic 中设置好 Webhook 后，你应该能在 Pocket Alert 应用中看到消息。

例如，你可以使用以下代码：

![Webhook 更新](https://cdn.pocketalert.app/guides/monitoring-tools/pulsetic-webhook-update.png)

```json
Url: %monitor.url%
Status: %alert_type%
```

关于变量的更多信息，请参阅 [Webhook 设置](https://info.pocketalert.app/api/webhooks/settings.html)。

## Pocket Alert 应用中的消息示例

![消息列表](https://cdn.pocketalert.app/guides/monitoring-tools/pulsetic-webhook-messages.png)

---

![消息](https://cdn.pocketalert.app/guides/monitoring-tools/pulsetic-webhook-message.png)

## 总结

在本指南中，我们介绍了如何将 Pulsetic Webhook 接入 Pocket Alert 应用：创建新的 Webhook、将其添加到 Pulsetic，以及在 Pocket Alert 应用中使用消息。我们还展示了 Pocket Alert 应用中的消息示例。希望本指南对你有所帮助。如有任何问题，欢迎随时向我们提问，我们随时为你提供帮助。感谢你阅读本指南。
