Commit c00adb44 by Tobias Kaupat

Push Data API for data sources

parent 28509908
Pipeline #4868624 passed with stages
in 6 minutes 52 seconds
......@@ -74,7 +74,8 @@ export class FrameDatasourceInstance {
const props = {
state: this.dsState,
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();
......
......@@ -74,6 +74,7 @@ export interface IDatasourceProps {
state: IDatasourceState
setFetchInterval: (intervalInMs: number) => void
setFetchReplaceData: (replace: boolean) => void
pushData: (data: any) => void
}
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