Explorar o código

add scoped vars to query options

Erik Sundell %!s(int64=7) %!d(string=hai) anos
pai
achega
97180d5106
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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 },
+      },
     };
   }