TagoIO SDK for JavaScript and TypeScript
    Preparing search index...

    Class Dashboards

    Hierarchy

    Index

    Constructors

    Properties

    widgets: Widgets = ...

    Methods

    • Parameters

      • dashboardID: string

      Returns Promise<string>

      Deletes a dashboard from the application.

      If receive an error "Authorization Denied", check policy Dashboard / Delete in Access Management.

      const result = await Resources.dashboards.delete("dashboard-id-123");
      console.log(result); // Successfully Removed
    • Parameters

      • dashboardID: string
      • OptionaldashboardObj: { new_label?: string; setup?: object }

      Returns Promise<{ dashboard_id: string; message: string }>

      Creates a copy of an existing dashboard.

      If receive an error "Authorization Denied", check policy Dashboard / Duplicate in Access Management.

      const result = await Resources.dashboards.duplicate("dashboard-id-123", { new_label: "Copy of My Dashboard" });
      console.log(result);
    • Parameters

      Returns Promise<string>

      Modifies an existing dashboard's properties.

      If receive an error "Authorization Denied", check policy Dashboard / Edit in Access Management.

      const result = await Resources.dashboards.edit("dashboard-id-123", {
      label: "Updated Dashboard",
      active: false
      });
      console.log(result); // Successfully Updated