2015-09-18 01:17:19 -05:00
|
|
|
# Plugin API
|
|
|
|
|
|
|
|
## Changelog
|
|
|
|
|
2015-10-29 08:05:05 -05:00
|
|
|
2.5.1
|
|
|
|
datasource annotationQuery changed. now single options parameter with:
|
|
|
|
- range
|
|
|
|
- rangeRaw
|
|
|
|
- annotation
|
|
|
|
|
2015-09-18 01:17:19 -05:00
|
|
|
2.5 changed the `range` parameter in the `datasource.query` function's options parameter. This
|
|
|
|
parameter now holds a parsed range with `moment` dates `form` and `to`. To get
|
2015-10-30 04:07:08 -05:00
|
|
|
millisecond epoch from a `moment` you the function `valueOf`. The raw date range as represented
|
2015-09-18 01:17:19 -05:00
|
|
|
internally in grafana (which may be relative expressions like `now-5h`) is included in the
|
|
|
|
new property `rangeRaw` (on the options object).
|