Commit c00adb44 authored by Tobias Kaupat's avatar Tobias Kaupat

Push Data API for data sources

parent 28509908
Pipeline #4868624 passed with stages
in 6 minutes and 52 seconds
...@@ -74,7 +74,8 @@ export class FrameDatasourceInstance { ...@@ -74,7 +74,8 @@ export class FrameDatasourceInstance {
const props = { const props = {
state: this.dsState, state: this.dsState,
setFetchInterval: (ms: number) => this.setFetchInterval(ms), setFetchInterval: (ms: number) => this.setFetchInterval(ms),
setFetchReplaceData: (replace: boolean) => this.setFetchReplaceData(replace) setFetchReplaceData: (replace: boolean) => this.setFetchReplaceData(replace),
pushData: (data: any[]) => this.fetchedDatasourceData(data)
}; };
const pluginInstance = new this.datasourceClass(); const pluginInstance = new this.datasourceClass();
......
...@@ -74,6 +74,7 @@ export interface IDatasourceProps { ...@@ -74,6 +74,7 @@ export interface IDatasourceProps {
state: IDatasourceState state: IDatasourceState
setFetchInterval: (intervalInMs: number) => void setFetchInterval: (intervalInMs: number) => void
setFetchReplaceData: (replace: boolean) => void setFetchReplaceData: (replace: boolean) => void
pushData: (data: any) => void
} }
export interface IDatasourcePlugin extends IPlugin { export interface IDatasourcePlugin extends IPlugin {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment