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
83e90325
Commit
83e90325
authored
Nov 29, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(victorops): remove unused code
parent
a6ea2f4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
pkg/services/alerting/notifiers/victorops.go
+5
-9
No files found.
pkg/services/alerting/notifiers/victorops.go
View file @
83e90325
...
@@ -27,13 +27,10 @@ func NewVictoropsNotifier(model *models.AlertNotification) (alerting.Notifier, e
...
@@ -27,13 +27,10 @@ func NewVictoropsNotifier(model *models.AlertNotification) (alerting.Notifier, e
return
nil
,
alerting
.
ValidationError
{
Reason
:
"Could not find victorops url property in settings"
}
return
nil
,
alerting
.
ValidationError
{
Reason
:
"Could not find victorops url property in settings"
}
}
}
alertOnExecError
:=
model
.
Settings
.
Get
(
"alertOnExecError"
)
.
MustBool
()
return
&
VictoropsNotifier
{
return
&
VictoropsNotifier
{
NotifierBase
:
NewNotifierBase
(
model
.
Id
,
model
.
IsDefault
,
model
.
Name
,
model
.
Type
,
model
.
Settings
),
NotifierBase
:
NewNotifierBase
(
model
.
Id
,
model
.
IsDefault
,
model
.
Name
,
model
.
Type
,
model
.
Settings
),
URL
:
url
,
URL
:
url
,
AlertOnExecError
:
alertOnExecError
,
log
:
log
.
New
(
"alerting.notifier.victorops"
),
log
:
log
.
New
(
"alerting.notifier.victorops"
),
},
nil
},
nil
}
}
...
@@ -42,9 +39,8 @@ func NewVictoropsNotifier(model *models.AlertNotification) (alerting.Notifier, e
...
@@ -42,9 +39,8 @@ func NewVictoropsNotifier(model *models.AlertNotification) (alerting.Notifier, e
// Victorops specifications (http://victorops.force.com/knowledgebase/articles/Integration/Alert-Ingestion-API-Documentation/)
// Victorops specifications (http://victorops.force.com/knowledgebase/articles/Integration/Alert-Ingestion-API-Documentation/)
type
VictoropsNotifier
struct
{
type
VictoropsNotifier
struct
{
NotifierBase
NotifierBase
URL
string
URL
string
AlertOnExecError
bool
log
log
.
Logger
log
log
.
Logger
}
}
// Notify sends notification to Victorops via POST to URL endpoint
// Notify sends notification to Victorops via POST to URL endpoint
...
...
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