Fixed #133 - Annotations don't work at Grafana 2.6.

This commit is contained in:
Alexander Zobnin
2015-12-28 14:15:21 +03:00
parent acedb806d9
commit 7aa38e22db

View File

@@ -336,9 +336,10 @@ function (angular, _, dateMath) {
// Annotations //
/////////////////
ZabbixAPIDatasource.prototype.annotationQuery = function(annotation, rangeUnparsed) {
var from = Math.ceil(dateMath.parse(rangeUnparsed.from) / 1000);
var to = Math.ceil(dateMath.parse(rangeUnparsed.to) / 1000);
ZabbixAPIDatasource.prototype.annotationQuery = function(options) {
var from = Math.ceil(dateMath.parse(options.range.from) / 1000);
var to = Math.ceil(dateMath.parse(options.range.to) / 1000);
var annotation = options.annotation;
var self = this;
var params = {