notify

package
v0.0.0-...-b9dc9a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send2DingTalk

func Send2DingTalk(content []common.Ready2Send, isRecover bool, sendTime string, url string, secret string)

Send2DingTalk 用来向钉钉软件发送告警和恢复

Types

type DingTalkMarkdownMsg

type DingTalkMarkdownMsg struct {
	Title string `json:"title"`
	Text  string `json:"text"`
}

DingTalkMarkdownMsg the dingTalk markdown request body model

type DingTalkMsg

type DingTalkMsg struct {
	Type     string              `json:"msgtype"`
	Markdown DingTalkMarkdownMsg `json:"markdown"`
}

DingTalkMessage the dingTalk request body model

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL