MCPcopy
hub / github.com/sourcegraph/checkup / Notify

Method Notify

notifier/slack/slack.go:36–46  ·  view source on GitHub ↗

Notify implements notifier interface

(results []types.Result)

Source from the content-addressed store, hash-verified

34
35// Notify implements notifier interface
36func (s Notifier) Notify(results []types.Result) error {
37 errs := make(types.Errors, 0)
38 for _, result := range results {
39 if !result.Healthy {
40 if err := s.Send(result); err != nil {
41 errs = append(errs, err)
42 }
43 }
44 }
45 return errs
46}
47
48// Send request via Slack API to create incident
49func (s Notifier) Send(result types.Result) error {

Callers

nothing calls this directly

Implementers 3

fakecheckup_test.go
Notifiernotifier/slack/slack.go
Notifiernotifier/mail/mail.go

Calls 1

SendMethod · 0.95

Tested by

no test coverage detected