@gdacm/dashboard-manager 0.1.22 → 0.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4438,12 +4438,16 @@ var DashboardManager = class {
4438
4438
  this.#log(`📊 Creating dashboard on Grafana: ${title} in folder vid: ${folderVid}`);
4439
4439
  const response = await grafanaApi.createDashboard(content, folderVid, `Autogenerated dashboard for project: ${projectName}, dashboard: ${title}`);
4440
4440
  this.#log(`👌 Dashboard created: ${JSON.stringify(response)}`);
4441
- updatedDashboardUrls.push(`${apiUrl}/d/${dashboardToCreate.uid}`);
4441
+ updatedDashboardUrls.push({
4442
+ url: `${apiUrl}/d/${dashboardToCreate.uid}`,
4443
+ uid: dashboardToCreate.uid,
4444
+ vid: dashboardToCreate.vid
4445
+ });
4442
4446
  }
4443
4447
  }
4444
4448
  if (updatedDashboardUrls.length > 0) {
4445
4449
  this.#log(`📝 Updated dashboard URLs:`);
4446
- for (const url of updatedDashboardUrls) this.#log(` 🔀 ${url}`);
4450
+ for (const urlInfo of updatedDashboardUrls) this.#log(` 🔀 ${urlInfo.url}${urlInfo.uid !== urlInfo.vid ? ` (${urlInfo.vid})` : ""}`);
4447
4451
  }
4448
4452
  }
4449
4453
  return this;