Add slack

This commit is contained in:
Mac Chiang
2019-12-18 11:54:43 +08:00
parent df31238a1f
commit 43510e18e2
8 changed files with 126 additions and 7 deletions

View File

@@ -12,6 +12,7 @@ import (
type CachetMonitor struct {
SystemName string `json:"system_name" yaml:"system_name"`
DateFormat string `json:"date_format" yaml:"date_format"`
SlackWebhook string `json:"slack_webhook" yaml:"slack_webhook"`
API CachetAPI `json:"api"`
RawMonitors []map[string]interface{} `json:"monitors" yaml:"monitors"`