in scripts/dashboard-importer/src/dashboards/converter/converter.ts [93:121]
convert() {
logInfo(`\n\nConverting: ${this.title}`);
const dashboardFilters = this.getResult(
createDashboardFilter(this.templating),
[],
);
for (const panel of this.panels) {
this.convertPanel(panel);
}
this.addTroubleshootingTile();
this.converted = {
displayName: this.title,
dashboardFilters: dashboardFilters,
mosaicLayout: {
columns: DEFAULT_COLS,
tiles: this.tiles,
},
labels: {
'goog-imported-via-script': '',
'cloud-monitoring-dashboard-importer': '',
'goog-imported-grafana-dashboard': '',
'goog-imported-grafana-revision': `${this.version}`,
...(this.gnetId && {'goog-imported-grafana-id': `${this.gnetId}`}),
},
};
}