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
6bf42dde
Commit
6bf42dde
authored
Jun 27, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tech(alerting): remove some logging
parent
4ed6b99d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
4 deletions
+1
-4
pkg/services/alerting/notifier.go
+0
-1
pkg/services/alerting/result_handler.go
+0
-2
pkg/services/sqlstore/alert_state.go
+1
-1
No files found.
pkg/services/alerting/notifier.go
View file @
6bf42dde
...
...
@@ -150,7 +150,6 @@ func buildGetNotifiers(log log.Logger) func(orgId int64, notificationGroups []in
}
var
result
[]
*
Notification
log
.
Info
(
"notifiriring"
,
"count"
,
len
(
query
.
Result
),
"groups"
,
notificationGroups
)
for
_
,
notification
:=
range
query
.
Result
{
not
,
err
:=
NewNotificationFromDBModel
(
notification
)
if
err
==
nil
{
...
...
pkg/services/alerting/result_handler.go
View file @
6bf42dde
...
...
@@ -59,8 +59,6 @@ func (handler *ResultHandlerImpl) shouldUpdateState(result *AlertResult) bool {
return
true
}
//now := time.Now()
//olderThen15Min := query.Result.Created.Before(now.Add(time.Minute * -15))
lastExecution
:=
query
.
Result
.
Created
asdf
:=
result
.
ExeuctionTime
.
Add
(
time
.
Minute
*
-
15
)
olderThen15Min
:=
lastExecution
.
Before
(
asdf
)
...
...
pkg/services/sqlstore/alert_state.go
View file @
6bf42dde
...
...
@@ -24,7 +24,7 @@ func GetLastAlertStateQuery(cmd *m.GetLastAlertStateQuery) error {
if
len
(
states
)
==
0
{
cmd
.
Result
=
nil
return
fmt
.
Errorf
(
"invalid amount of alertstates. Expected 1 got %v"
,
len
(
states
))
return
nil
}
cmd
.
Result
=
&
states
[
0
]
...
...
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