Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
a5c41fe7
Commit
a5c41fe7
authored
Dec 12, 2016
by
Carl Bergquist
Committed by
GitHub
Dec 12, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6921 from huydx/master
fix(alert): alert test should return error when it failed to dispatch
parents
3cbc325f
015fa82c
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
0 deletions
+7
-0
pkg/services/alerting/notifiers/email.go
+1
-0
pkg/services/alerting/notifiers/opsgenie.go
+1
-0
pkg/services/alerting/notifiers/pagerduty.go
+1
-0
pkg/services/alerting/notifiers/slack.go
+1
-0
pkg/services/alerting/notifiers/victorops.go
+1
-0
pkg/services/alerting/notifiers/webhook.go
+1
-0
public/app/plugins/datasource/imon-datasource
+1
-0
No files found.
pkg/services/alerting/notifiers/email.go
View file @
a5c41fe7
...
...
@@ -89,6 +89,7 @@ func (this *EmailNotifier) Notify(evalContext *alerting.EvalContext) error {
if
err
!=
nil
{
this
.
log
.
Error
(
"Failed to send alert notification email"
,
"error"
,
err
)
return
err
}
return
nil
...
...
pkg/services/alerting/notifiers/opsgenie.go
View file @
a5c41fe7
...
...
@@ -112,6 +112,7 @@ func (this *OpsGenieNotifier) closeAlert(evalContext *alerting.EvalContext) erro
if
err
:=
bus
.
DispatchCtx
(
evalContext
.
Ctx
,
cmd
);
err
!=
nil
{
this
.
log
.
Error
(
"Failed to send notification to OpsGenie"
,
"error"
,
err
,
"body"
,
string
(
body
))
return
err
}
return
nil
...
...
pkg/services/alerting/notifiers/pagerduty.go
View file @
a5c41fe7
...
...
@@ -89,6 +89,7 @@ func (this *PagerdutyNotifier) Notify(evalContext *alerting.EvalContext) error {
if
err
:=
bus
.
DispatchCtx
(
evalContext
.
Ctx
,
cmd
);
err
!=
nil
{
this
.
log
.
Error
(
"Failed to send notification to Pagerduty"
,
"error"
,
err
,
"body"
,
string
(
body
))
return
err
}
return
nil
...
...
pkg/services/alerting/notifiers/slack.go
View file @
a5c41fe7
...
...
@@ -105,6 +105,7 @@ func (this *SlackNotifier) Notify(evalContext *alerting.EvalContext) error {
if
err
:=
bus
.
DispatchCtx
(
evalContext
.
Ctx
,
cmd
);
err
!=
nil
{
this
.
log
.
Error
(
"Failed to send slack notification"
,
"error"
,
err
,
"webhook"
,
this
.
Name
)
return
err
}
return
nil
...
...
pkg/services/alerting/notifiers/victorops.go
View file @
a5c41fe7
...
...
@@ -94,6 +94,7 @@ func (this *VictoropsNotifier) Notify(evalContext *alerting.EvalContext) error {
if
err
:=
bus
.
DispatchCtx
(
evalContext
.
Ctx
,
cmd
);
err
!=
nil
{
this
.
log
.
Error
(
"Failed to send victorops notification"
,
"error"
,
err
,
"webhook"
,
this
.
Name
)
return
err
}
return
nil
...
...
pkg/services/alerting/notifiers/webhook.go
View file @
a5c41fe7
...
...
@@ -74,6 +74,7 @@ func (this *WebhookNotifier) Notify(evalContext *alerting.EvalContext) error {
if
err
:=
bus
.
DispatchCtx
(
evalContext
.
Ctx
,
cmd
);
err
!=
nil
{
this
.
log
.
Error
(
"Failed to send webhook"
,
"error"
,
err
,
"webhook"
,
this
.
Name
)
return
err
}
return
nil
...
...
imon-datasource
@
e8d219fa
Subproject commit e8d219fa68b85dfc20762a584f4c931740ed0efa
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment