Change direction of shift for relative rules (#717)

* Change direction of shift for relative rules

* Update changelog

* Fix tests

* Fix tests

* Update changelog for 718
pull/726/head
Nathan Haugo 2017-01-04 16:03:41 -08:00 committed by Chris Goller
parent 561d73ea22
commit cc0ea821f0
3 changed files with 9 additions and 3 deletions

View File

@ -4,6 +4,12 @@
## v1.1.0-beta4 [2016-12-30]
### Features
### Bug Fixes
1. [#714](https://github.com/influxdata/chronograf/issues/714): Relative rules check data in the wrong direction
2. [#718](https://github.com/influxdata/chronograf/issues/718): Fix bug that stopped apps from displaying
### Features
1. [#691](https://github.com/influxdata/chronograf/issues/691): Add server-side dashboard API
2. [#709](https://github.com/influxdata/chronograf/pull/709): Add kapacitor range alerting to API

View File

@ -569,7 +569,7 @@ var outputMeasurement = 'alerts'
var triggerType = 'relative'
var shift = -1m
var shift = 1m
var crit = 90
@ -727,7 +727,7 @@ var outputMeasurement = 'alerts'
var triggerType = 'relative'
var shift = -1m
var shift = 1m
var crit = 90

View File

@ -56,7 +56,7 @@ func Vars(rule chronograf.AlertRule) (string, error) {
case Relative:
vars := `
%s
var shift = -%s
var shift = %s
var crit = %s
`
return fmt.Sprintf(vars,