# Sentry DingTalk
Sentry 集成钉钉机器人通知
## Requirments
- sentry >= 21.5.1
## 特性
- 发送异常通知到钉钉
- 配置 @ 成员,逗号分隔
- webhook optional 可以配置一个额外的 webhook,但是会抹除 `@信息`
## 快速使用
### 安装
1. 写入依赖文件 `onpremise-xxx/sentry/requirements.txt`
```bash
$ echo sentry-dingtalk-henryhaoson2 >> 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-henryhaoson2",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6.13",
"maintainer_email": "",
"keywords": "sentry dingtalk",
"author": "Henryhaoson",
"author_email": "hao.zhu@shanbay.com",
"download_url": "https://files.pythonhosted.org/packages/b5/c5/12d10c23cdb0a4031e4da65e53ec0e5cf5e5d8a3b47d328e4e58d2dc292f/sentry-dingtalk-henryhaoson2-9.0.3.tar.gz",
"platform": null,
"description": "\n# 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. \u5199\u5165\u4f9d\u8d56\u6587\u4ef6 `onpremise-xxx/sentry/requirements.txt`\n ```bash\n $ echo sentry-dingtalk-henryhaoson2 >> 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": "A sentry extension integrates DingTalk robot webhook forked from Jedore/sentry-dingtalk",
"version": "9.0.3",
"project_urls": {
"Homepage": "https://git.17bdc.com/android-apps/sentry-dingtalk"
},
"split_keywords": [
"sentry",
"dingtalk"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "eef269962ec97de099f22d26d890d7aecc562e2f776544da2e1a65d07c57440b",
"md5": "8ff66d148a660548a8cacbe8a880ba77",
"sha256": "fba615a7134b325f1c339efffb1e8cf371c71af8122398042826c07e6d221f06"
},
"downloads": -1,
"filename": "sentry_dingtalk_henryhaoson2-9.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8ff66d148a660548a8cacbe8a880ba77",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6.13",
"size": 5790,
"upload_time": "2023-11-13T08:38:57",
"upload_time_iso_8601": "2023-11-13T08:38:57.666040Z",
"url": "https://files.pythonhosted.org/packages/ee/f2/69962ec97de099f22d26d890d7aecc562e2f776544da2e1a65d07c57440b/sentry_dingtalk_henryhaoson2-9.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b5c512d10c23cdb0a4031e4da65e53ec0e5cf5e5d8a3b47d328e4e58d2dc292f",
"md5": "0e79fbf1d4730757b3a1144747ffc732",
"sha256": "8cd4eabd96050d74ab79f20c3dcec108065d75b74706611376db967f4dc34430"
},
"downloads": -1,
"filename": "sentry-dingtalk-henryhaoson2-9.0.3.tar.gz",
"has_sig": false,
"md5_digest": "0e79fbf1d4730757b3a1144747ffc732",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6.13",
"size": 6121,
"upload_time": "2023-11-13T08:38:59",
"upload_time_iso_8601": "2023-11-13T08:38:59.683329Z",
"url": "https://files.pythonhosted.org/packages/b5/c5/12d10c23cdb0a4031e4da65e53ec0e5cf5e5d8a3b47d328e4e58d2dc292f/sentry-dingtalk-henryhaoson2-9.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-13 08:38:59",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "sentry-dingtalk-henryhaoson2"
}