private addTroubleshootingTile()

in scripts/dashboard-importer/src/dashboards/converter/converter.ts [212:228]


  private addTroubleshootingTile() {
    const warningSummary = `##### Generated Warnings\n\n${generateWarningSummary(this.warnings, this.panels.length)}`;
    const troubleshootingDocsText = 'For conversion issues such as no data in charts or missing tiles, please see our [troubleshooting docs](https://github.com/GoogleCloudPlatform/monitoring-dashboard-samples/blob/master/scripts/dashboard-importer/README.md#conversion-issues)';
    const date = new Date();
    const dateTimeText = `Converted from ${this.fileName} on ${getDateString(date)} at ${createReportId(date)}`;

    const text = [dateTimeText, troubleshootingDocsText, warningSummary].join('\n\n');
    const height = 4 + Math.floor(warningSummary.split("\n").length / 2);

    this.tiles.push({
      widget: createTextWidget('Conversion info', text),
      xPos: 0,
      yPos: this.dashboardHeight,
      height,
      width: 24,
    });
  }