Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct {
URL string `yaml:"url"`
}
func (*Alert) SentMessage ¶
func (u *Alert) SentMessage(data *AlertMessage) (request string, err 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" }
type CallAlertmanagerError ¶
func (*CallAlertmanagerError) Error ¶
func (e *CallAlertmanagerError) Error() string
type MatcherDefault ¶
type MatcherDefault struct {
chanhandle.Next
}
func (*MatcherDefault) Do ¶
func (m *MatcherDefault) Do(s *chanhandle.SlienceChan) error
type WebhookLogic ¶
func NewWebhookLogic ¶
func NewWebhookLogic(ctx context.Context, svcCtx *svc.ServiceContext) *WebhookLogic
func (*WebhookLogic) Webhook ¶
func (l *WebhookLogic) Webhook(req *types.AlarmRequest) error
Click to show internal directories.
Click to hide internal directories.