Package com.databricks.sdk.service.sql
Class DashboardsAPI
- java.lang.Object
-
- com.databricks.sdk.service.sql.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. Dashboards can be scheduled using the `sql_task` type of the Jobs API, e.g. :method:jobs/create.
-
-
Constructor Summary
Constructors Constructor Description DashboardsAPI(ApiClient apiClient)Regular-use constructorDashboardsAPI(DashboardsService mock)Constructor for mocks
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dashboardcreate(CreateDashboardRequest request)Create a dashboard object.voiddelete(DeleteDashboardRequest request)Remove a dashboard.voiddelete(String dashboardId)Dashboardget(GetDashboardRequest request)Retrieve a definition.Dashboardget(String dashboardId)DashboardsServiceimpl()Iterable<Dashboard>list(ListDashboardsRequest request)Get dashboard objects.voidrestore(RestoreDashboardRequest request)Restore a dashboard.voidrestore(String dashboardId)
-
-
-
Constructor Detail
-
DashboardsAPI
public DashboardsAPI(ApiClient apiClient)
Regular-use constructor
-
DashboardsAPI
public DashboardsAPI(DashboardsService mock)
Constructor for mocks
-
-
Method Detail
-
create
public Dashboard create(CreateDashboardRequest request)
Create a dashboard object.
-
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.
-
list
public Iterable<Dashboard> list(ListDashboardsRequest request)
Get dashboard objects.Fetch a paginated list of dashboard 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.
-
impl
public DashboardsService impl()
-
-