GithubHelp home page GithubHelp logo

hclasmn / wechat-work-message-push-go Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloverzrg/wechat-work-message-push-go

0.0 0.0 0.0 1.19 MB

企业微信消息推送,支持grafana webhook通知

Go 95.35% Dockerfile 4.65%

wechat-work-message-push-go's Introduction

wechat-work-message-push-go

Build Status

使用:

1.创建企业号(200人以下不需要认证),获取 WechatWorkCorpId https://work.weixin.qq.com/

2.创建自建应用,获取 WechatWorkAgentIdWechatWorkCorpSecret

3.到通讯录查看自己的账号,获取 DefaultReceiverUserId

3.复制 docker-compose.yaml 到本地,编辑文件,补充以上环境变量和随机字符串token,然后执行

docker-compose up -d

4.到 企业微信->我的企业->微信插件,扫二维码关注企业微信 https://work.weixin.qq.com/wework_admin/frame#profile/wxPlugin

5.发送以下请求

curl -X POST \
  http://127.0.0.1:60009/push \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'token: your_token' \
  -d 'message=1234'

6.刚才在微信上的关注的微工作台应收到第五步发送的消息

7.grafana 报警通知功能 设置GrafanaWebhookUser和GrafanaWebhookPassword两个环境变量就可以用了

开发

使用 drone ^1.0 构建镜像

https://drone.io/

wechat-work-message-push-go's People

Contributors

cloverzrg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.