Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SentMessage ¶
func SentMessage(u string, slience types.SlienceName)
Types ¶
type Alert ¶
type Alert struct {
URL string `yaml:"url"`
}
func (*Alert) SentMessage ¶
func (u *Alert) SentMessage(data *AlertMessage) (string, error)
type AlertMessage ¶
type AlertMessage struct { Message string `json:"message"` NoticeName string `json:"notice_name"` Serverity string `json:"serverity"` Title string `json:"summary"` DBName string `json:"-"` }
{ "notice_name": "test2", "serverity": "P0", "summary": "test_summary", "message": "test_message" }
Click to show internal directories.
Click to hide internal directories.