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:
parent
e076ee51d2
commit
ab821ad180
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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": [ ]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user