Chore: Move StreamingDataFrame to @grafana/data (#72014)

This commit is contained in:
Andres Martinez Gotor
2023-07-24 13:30:52 +02:00
committed by GitHub
parent 3c48701f08
commit 987624f8cf
22 changed files with 75 additions and 69 deletions

View File

@ -7,6 +7,7 @@ import {
LiveChannelAddress,
LiveChannelEvent,
LiveChannelPresenceStatus,
StreamingFrameOptions,
} from '@grafana/data';
/**
@ -16,27 +17,8 @@ export interface LiveDataFilter {
fields?: string[];
}
/**
* Indicate if the frame is appened or replace
*
* @alpha
*/
export enum StreamingFrameAction {
Append = 'append',
Replace = 'replace',
}
/**
* @alpha
*/
export interface StreamingFrameOptions {
maxLength: number; // 1000
maxDelta: number; // how long to keep things
action: StreamingFrameAction; // default will append
/** optionally format field names based on labels */
displayNameFormat?: string;
}
// StreamingFrameAction and StreamingFrameOptions are now in @grafana/data
export { StreamingFrameAction, type StreamingFrameOptions } from '@grafana/data';
/**
* @alpha