Class DashboardsAPI


  • @Generated
    public class DashboardsAPI
    extends Object
    In general, there is little need to modify dashboards using the API. However, it can be useful to use dashboard objects to look-up a collection of related query IDs. The API can also be used to duplicate multiple dashboards at once since you can get a dashboard definition with a GET request and then POST it to create a new one.
    • Constructor Detail

      • DashboardsAPI

        public DashboardsAPI​(ApiClient apiClient)
        Regular-use constructor
      • DashboardsAPI

        public DashboardsAPI​(DashboardsService mock)
        Constructor for mocks
    • Method Detail

      • delete

        public void delete​(String dashboardId)
      • delete

        public void delete​(DeleteDashboardRequest request)
        Remove a dashboard.

        Moves a dashboard to the trash. Trashed dashboards do not appear in list views or searches, and cannot be shared.

      • get

        public Dashboard get​(GetDashboardRequest request)
        Retrieve a definition.

        Returns a JSON representation of a dashboard object, including its visualization and query objects.

      • restore

        public void restore​(String dashboardId)
      • restore

        public void restore​(RestoreDashboardRequest request)
        Restore a dashboard.

        A restored dashboard appears in list views and searches and can be shared.