mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 16:45:43 -06:00
18 lines
451 B
TypeScript
18 lines
451 B
TypeScript
import { LiveChannelSupport, LiveChannelConfig, LiveChannelType } from '@grafana/data';
|
|
|
|
/**
|
|
* Generic description of channels that support streams
|
|
*
|
|
* @alpha
|
|
*/
|
|
export class LiveMeasurementsSupport implements LiveChannelSupport {
|
|
/**
|
|
* Get the channel handler for the path, or throw an error if invalid
|
|
*/
|
|
getChannelConfig(path: string): LiveChannelConfig | undefined {
|
|
return {
|
|
type: LiveChannelType.DataStream,
|
|
};
|
|
}
|
|
}
|