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
37895830
Commit
37895830
authored
Nov 05, 2018
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
for: use 0m as default for existing alerts and 5m for new
parent
ae2d5367
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
public/app/features/alerting/AlertTabCtrl.ts
+2
-1
No files found.
public/app/features/alerting/AlertTabCtrl.ts
View file @
37895830
...
@@ -169,7 +169,7 @@ export class AlertTabCtrl {
...
@@ -169,7 +169,7 @@ export class AlertTabCtrl {
alert
.
frequency
=
alert
.
frequency
||
'1m'
;
alert
.
frequency
=
alert
.
frequency
||
'1m'
;
alert
.
handler
=
alert
.
handler
||
1
;
alert
.
handler
=
alert
.
handler
||
1
;
alert
.
notifications
=
alert
.
notifications
||
[];
alert
.
notifications
=
alert
.
notifications
||
[];
alert
.
for
=
alert
.
for
||
'
5
m'
;
alert
.
for
=
alert
.
for
||
'
0
m'
;
const
defaultName
=
this
.
panel
.
title
+
' alert'
;
const
defaultName
=
this
.
panel
.
title
+
' alert'
;
alert
.
name
=
alert
.
name
||
defaultName
;
alert
.
name
=
alert
.
name
||
defaultName
;
...
@@ -355,6 +355,7 @@ export class AlertTabCtrl {
...
@@ -355,6 +355,7 @@ export class AlertTabCtrl {
enable
()
{
enable
()
{
this
.
panel
.
alert
=
{};
this
.
panel
.
alert
=
{};
this
.
initModel
();
this
.
initModel
();
this
.
panel
.
alert
.
for
=
'5m'
;
//default value for new alerts. for existing alerts we use 0m to avoid breaking changes
}
}
evaluatorParamsChanged
()
{
evaluatorParamsChanged
()
{
...
...
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