diff --git a/public/app/plugins/datasource/mysql/partials/query.editor.html b/public/app/plugins/datasource/mysql/partials/query.editor.html index d01b201b748..f857244b438 100644 --- a/public/app/plugins/datasource/mysql/partials/query.editor.html +++ b/public/app/plugins/datasource/mysql/partials/query.editor.html @@ -100,36 +100,42 @@
{{ctrl.lastQueryMeta.sql}}
- Time series: +
{{ctrl.lastQueryMeta.sql}}
+ Time series: - return column named time or time_sec (in UTC), as a unix time stamp or any sql native date data type. You can use the macros below. - return column(s) with numeric datatype as values Optional: @@ -156,7 +162,7 @@ Macros: Example of group by and order by with $__timeGroup: SELECT - $__timeGroup(timestamp_col, '1h') AS time, + $__timeGroupAlias(timestamp_col, '1h'), sum(value_double) as value FROM yourtable GROUP BY 1 @@ -167,13 +173,13 @@ Or build your own conditionals using these macros which just return the values: - $__timeTo() -> '2017-04-21T05:01:17Z' - $__unixEpochFrom() -> 1492750877 - $__unixEpochTo() -> 1492750877 --
{{ctrl.lastQueryError}}
- {{ctrl.lastQueryError}}
+