After the query is parsed, return to :dashboardTime:
parent
d7dcb06529
commit
ea41394105
|
@ -21,6 +21,10 @@ func Convert(influxQL string) (chronograf.QueryConfig, error) {
|
||||||
return chronograf.QueryConfig{}, err
|
return chronograf.QueryConfig{}, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if itsDashboardTime {
|
||||||
|
influxQL = strings.Replace(influxQL, "now() - 15m", ":dashboardTime:", 1)
|
||||||
|
}
|
||||||
|
|
||||||
raw := chronograf.QueryConfig{
|
raw := chronograf.QueryConfig{
|
||||||
RawText: &influxQL,
|
RawText: &influxQL,
|
||||||
Fields: []chronograf.Field{},
|
Fields: []chronograf.Field{},
|
||||||
|
|
Loading…
Reference in New Issue