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
ca7baca2
Commit
ca7baca2
authored
Dec 15, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(alerting): adds ok as no data option
closes #6866
parent
6a161216
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
pkg/models/alert.go
+3
-2
public/app/features/alerting/alert_def.ts
+1
-0
No files found.
pkg/models/alert.go
View file @
ca7baca2
...
@@ -20,9 +20,10 @@ const (
...
@@ -20,9 +20,10 @@ const (
)
)
const
(
const
(
NoDataSetOK
NoDataOption
=
"ok"
NoDataSetNoData
NoDataOption
=
"no_data"
NoDataSetNoData
NoDataOption
=
"no_data"
NoDataSetAlerting
NoDataOption
=
"alerting"
NoDataKeepState
NoDataOption
=
"keep_state"
NoDataKeepState
NoDataOption
=
"keep_state"
NoDataSetAlerting
NoDataOption
=
"alerting"
)
)
const
(
const
(
...
@@ -35,7 +36,7 @@ func (s AlertStateType) IsValid() bool {
...
@@ -35,7 +36,7 @@ func (s AlertStateType) IsValid() bool {
}
}
func
(
s
NoDataOption
)
IsValid
()
bool
{
func
(
s
NoDataOption
)
IsValid
()
bool
{
return
s
==
NoDataSetNoData
||
s
==
NoDataSetAlerting
||
s
==
NoDataKeepState
return
s
==
NoDataSetNoData
||
s
==
NoDataSetAlerting
||
s
==
NoDataKeepState
||
s
==
NoDataSetOK
}
}
func
(
s
NoDataOption
)
ToAlertState
()
AlertStateType
{
func
(
s
NoDataOption
)
ToAlertState
()
AlertStateType
{
...
...
public/app/features/alerting/alert_def.ts
View file @
ca7baca2
...
@@ -47,6 +47,7 @@ var noDataModes = [
...
@@ -47,6 +47,7 @@ var noDataModes = [
{
text
:
'Alerting'
,
value
:
'alerting'
},
{
text
:
'Alerting'
,
value
:
'alerting'
},
{
text
:
'No Data'
,
value
:
'no_data'
},
{
text
:
'No Data'
,
value
:
'no_data'
},
{
text
:
'Keep Last State'
,
value
:
'keep_state'
},
{
text
:
'Keep Last State'
,
value
:
'keep_state'
},
{
text
:
'Ok'
,
value
:
'ok'
},
];
];
var
executionErrorModes
=
[
var
executionErrorModes
=
[
...
...
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