# Sentry DingTalk
Sentry 集成钉钉机器人通知
## Requirments
- sentry >= 21.5.1
## 特性
- 发送异常通知到钉钉
- 配置 @ 成员,逗号分隔
- webhook optional 可以配置一个额外的 webhook,但是会抹除 `@信息`
## 快速使用
### 安装
1. 使用 `pip` 命令
```bash
$ pip install sentry-dingtalk-henryhaoson
```
2. 写入依赖文件 `onpremise-xxx/sentry/requirements.txt`
```bash
$ echo sentry-dingtalk-henryhaoson >> requirements.txt
```
### 钉钉机器人
[配置](https://developers.dingtalk.com/document/app/custom-robot-access)钉钉机器人并拿到对应的 webhook, 可以对机器人设置 关键词、签名、IP限制
### 配置
在 Sentry 面板 Settings > Integrations 中找到 DingTalk 并配置 webhook等信息,添加项目,创建告警规则
### 测试
1. Enable Plugin
2. Test Plugin
Raw data
{
"_id": null,
"home_page": "https://git.17bdc.com/android-apps/sentry-dingtalk",
"name": "sentry-dingtalk-byguonh",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6.13",
"maintainer_email": "",
"keywords": "sentry dingtalk",
"author": "Henryhaoson",
"author_email": "guonh <guoneihui@126.com>",
"download_url": "https://files.pythonhosted.org/packages/b0/0b/e28eebe4aa5ce1607f44ad700d3f7524090f8bb6e4d7e731f45ceae90f1a/sentry-dingtalk-byguonh-1.tar.gz",
"platform": null,
"description": "# Sentry DingTalk\n\nSentry \u96c6\u6210\u9489\u9489\u673a\u5668\u4eba\u901a\u77e5\n\n## Requirments\n- sentry >= 21.5.1\n\n## \u7279\u6027\n- \u53d1\u9001\u5f02\u5e38\u901a\u77e5\u5230\u9489\u9489\n- \u914d\u7f6e @ \u6210\u5458\uff0c\u9017\u53f7\u5206\u9694\n- webhook optional \u53ef\u4ee5\u914d\u7f6e\u4e00\u4e2a\u989d\u5916\u7684 webhook\uff0c\u4f46\u662f\u4f1a\u62b9\u9664 `@\u4fe1\u606f`\n## \u5feb\u901f\u4f7f\u7528\n### \u5b89\u88c5\n1. \u4f7f\u7528 `pip` \u547d\u4ee4\n ```bash\n $ pip install sentry-dingtalk-henryhaoson\n ```\n\n2. \u5199\u5165\u4f9d\u8d56\u6587\u4ef6 `onpremise-xxx/sentry/requirements.txt`\n ```bash\n $ echo sentry-dingtalk-henryhaoson >> requirements.txt\n ```\n\n### \u9489\u9489\u673a\u5668\u4eba\n[\u914d\u7f6e](https://developers.dingtalk.com/document/app/custom-robot-access)\u9489\u9489\u673a\u5668\u4eba\u5e76\u62ff\u5230\u5bf9\u5e94\u7684 webhook, \u53ef\u4ee5\u5bf9\u673a\u5668\u4eba\u8bbe\u7f6e \u5173\u952e\u8bcd\u3001\u7b7e\u540d\u3001IP\u9650\u5236\n\n### \u914d\u7f6e\n\u5728 Sentry \u9762\u677f Settings > Integrations \u4e2d\u627e\u5230 DingTalk \u5e76\u914d\u7f6e webhook\u7b49\u4fe1\u606f\uff0c\u6dfb\u52a0\u9879\u76ee\uff0c\u521b\u5efa\u544a\u8b66\u89c4\u5219\n\n### \u6d4b\u8bd5\n1. Enable Plugin\n2. Test Plugin\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "sentry-dingtalk",
"version": "1",
"split_keywords": [
"sentry",
"dingtalk"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e62b045c9d478df50d2acccb757e9d77c13cb5af43ddf634e502a4c2715e9565",
"md5": "6d3e0be7f91ff4d0be84872010ed2a05",
"sha256": "00f76aabcb1140bf06a22f079dbcc9328f85e78c8b9289cebafbdcbe8857dcd8"
},
"downloads": -1,
"filename": "sentry_dingtalk_byguonh-1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6d3e0be7f91ff4d0be84872010ed2a05",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6.13",
"size": 5269,
"upload_time": "2023-02-10T08:16:02",
"upload_time_iso_8601": "2023-02-10T08:16:02.058000Z",
"url": "https://files.pythonhosted.org/packages/e6/2b/045c9d478df50d2acccb757e9d77c13cb5af43ddf634e502a4c2715e9565/sentry_dingtalk_byguonh-1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b00be28eebe4aa5ce1607f44ad700d3f7524090f8bb6e4d7e731f45ceae90f1a",
"md5": "dda49e56dd02876f6aab7d52f6c98d09",
"sha256": "c509621e36333bb7fbf30f6b36dd5cb38f005969f3728404e533ea494fdbe383"
},
"downloads": -1,
"filename": "sentry-dingtalk-byguonh-1.tar.gz",
"has_sig": false,
"md5_digest": "dda49e56dd02876f6aab7d52f6c98d09",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6.13",
"size": 5886,
"upload_time": "2023-02-10T08:16:04",
"upload_time_iso_8601": "2023-02-10T08:16:04.496196Z",
"url": "https://files.pythonhosted.org/packages/b0/0b/e28eebe4aa5ce1607f44ad700d3f7524090f8bb6e4d7e731f45ceae90f1a/sentry-dingtalk-byguonh-1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-10 08:16:04",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "sentry-dingtalk-byguonh"
}