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
7490c49f
Commit
7490c49f
authored
Nov 01, 2016
by
utkarshcmu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Alert un paused to pending state
parent
d9f25199
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
pkg/api/alerting.go
+1
-1
pkg/services/sqlstore/alert.go
+1
-1
public/app/features/alerting/alert_def.ts
+7
-0
No files found.
pkg/api/alerting.go
View file @
7490c49f
...
...
@@ -264,7 +264,7 @@ func PauseAlert(c *middleware.Context, dto dtos.PauseAlertCommand) Response {
return
ApiError
(
500
,
""
,
err
)
}
var
response
models
.
AlertStateType
=
models
.
AlertState
NoData
var
response
models
.
AlertStateType
=
models
.
AlertState
Pending
pausedState
:=
"un paused"
if
cmd
.
Paused
{
response
=
models
.
AlertStatePaused
...
...
pkg/services/sqlstore/alert.go
View file @
7490c49f
...
...
@@ -260,7 +260,7 @@ func PauseAlertRule(cmd *m.PauseAlertCommand) error {
if
cmd
.
Paused
{
newState
=
m
.
AlertStatePaused
}
else
{
newState
=
m
.
AlertState
NoData
newState
=
m
.
AlertState
Pending
}
alert
.
State
=
newState
...
...
public/app/features/alerting/alert_def.ts
View file @
7490c49f
...
...
@@ -87,6 +87,13 @@ function getStateDisplayModel(state) {
stateClass
:
'alert-state-paused'
};
}
case
'pending'
:
{
return
{
text
:
'PENDING'
,
iconClass
:
"fa fa-exclamation"
,
stateClass
:
'alert-state-warning'
};
}
}
}
...
...
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