Adding support for Grafana 7.x

Rename kbn.interval_to_seconds to kbn.intervalToSeconds
function for kbn.interval_to_seconds was renamed in Grafana 7.x to kbn.intervalToSeconds

Change-Id: I0e81f102534b30e0dbba2d4e5ed137611ed53e90
This commit is contained in:
Adrian Czarnecki 2021-03-05 15:35:45 +01:00
parent e076ee51d2
commit ab821ad180
2 changed files with 4 additions and 4 deletions

View File

@ -463,7 +463,7 @@ function (angular, _, moment, sdk, dateMath, kbn) {
var period = regex[0].substring('period='.length);
var matches = period.match(kbn.interval_regex);
if (matches) {
period = kbn.interval_to_seconds(period);
period = kbn.intervalToSeconds(period);
target = target.replace(regex, 'period='+period);
}
}

View File

@ -26,12 +26,12 @@
{"name": "GitHub", "url": "https://github.com/openstack/monasca-grafana-datasource"},
{"name": "License", "url": "https://github.com/openstack/monasca-grafana-datasource/LICENSE"}
],
"version": "1.3.0",
"updated": "2017-10-23"
"version": "1.4.0",
"updated": "2021-03-09"
},
"dependencies": {
"grafanaVersion": "3.x.x",
"grafanaVersion": "7.x.x",
"plugins": [ ]
}
}