mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 16:53:19 +08:00
Chore: Move StreamingDataFrame to @grafana/data (#72014)
This commit is contained in:

committed by
GitHub

parent
3c48701f08
commit
987624f8cf
@ -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
|
||||
|
Reference in New Issue
Block a user