You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
490 B
20 lines
490 B
import { VisualizationSuggestionsBuilder } from '@grafana/data';
|
|
import { AlertListOptions } from './types';
|
|
|
|
export class AlertListSuggestionsSupplier {
|
|
getSuggestionsForData(builder: VisualizationSuggestionsBuilder) {
|
|
const { dataSummary } = builder;
|
|
|
|
if (dataSummary.hasData) {
|
|
return;
|
|
}
|
|
|
|
const list = builder.getListAppender<AlertListOptions, {}>({
|
|
name: 'Dashboard list',
|
|
pluginId: 'dashlist',
|
|
options: {},
|
|
});
|
|
|
|
list.append({});
|
|
}
|
|
}
|
|
|