Skip to content
This repository has been archived by the owner on Dec 30, 2019. It is now read-only.

Zeran123/pipeflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pipeflow

Logo

该项目主要用于使用Webhook的方式接收来源系统(Source)的数据,并转换为目标系统(Target)的格式,并推送到目标系统。

Screenshots

AlertManager 告警数据

AlertManager

Gitlab WebHook 数据

Merge Request

Gitlab_MergeRequest

Push

Gitlab_Push

Features

  • 支持AlertManager系统
  • 支持Gitlab系统
    • MergeRequest事件
    • Push事件
    • Comment事件
  • 支持Azure DevOps系统
    • WorkItem
      • Create
      • Update
      • Comment
    • Build Completed
    • Release
      • Start
      • Completed

Installation

go get -u github.com/gin-gonic/gin

Quick Start

go run main.go

API

Path Method Parameters Description
/bots GET 列出所有机器人配置信息
/bot POST body: BotConfig 创建新的机器人配置
/bot/:id DELETE id: String 删除机器人配置
/bot/:id POST id: String, body: JSON 通过机器人推送消息

BotConfig

{
	"source": "alertmanager|gitlab|devops", // 来源支持Prometheus的AlertManager、Gitlab和Azure DevOps
	"target": "wechat", // 推送消息的目标支持 企业微信的Bot
	"url": "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=a194021e-3de1-4e74-9610-b02931afa6cc" // 推送目标的URL地址
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages