1import { VisualizationSuggestionsBuilder } from '@grafana/data'; 2import { AlertListOptions } from './types'; 3 4export class AlertListSuggestionsSupplier { 5 getSuggestionsForData(builder: VisualizationSuggestionsBuilder) { 6 const { dataSummary } = builder; 7 8 if (dataSummary.hasData) { 9 return; 10 } 11 12 const list = builder.getListAppender<AlertListOptions, {}>({ 13 name: 'Dashboard list', 14 pluginId: 'dashlist', 15 options: {}, 16 }); 17 18 list.append({}); 19 } 20} 21