Parcourir la source

add scoped vars to query options

Erik Sundell il y a 7 ans
Parent
commit
97180d5106
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      public/app/features/explore/Explore.tsx

+ 4 - 0
public/app/features/explore/Explore.tsx

@@ -625,6 +625,10 @@ export class Explore extends React.PureComponent<ExploreProps, ExploreState> {
         raw: range,
       },
       rangeRaw: range,
+      scopedVars: {
+        __interval: { text: interval, value: interval },
+        __interval_ms: { text: intervalMs, value: intervalMs },
+      },
     };
   }