grafana/public/app/features/live/measurements/measurementsSupport.ts
2021-04-23 23:21:38 +02:00

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,
};
}
}