@ThreadSafe public interface DashboardsApi
| Modifier and Type | Method and Description |
|---|---|
Cell |
addCell(CreateCell createCell,
Dashboard dashboard)
Create a dashboard cell.
|
Cell |
addCell(CreateCell createCell,
String dashboardID)
Create a dashboard cell.
|
View |
addCellView(View view,
Cell cell,
Dashboard dashboard)
Add the view to a cell.
|
View |
addCellView(View view,
String cellID,
String dashboardID)
Add the view to a cell.
|
LabelResponse |
addLabel(Label label,
Dashboard dashboard)
Add a label to a dashboard.
|
LabelResponse |
addLabel(String labelID,
String dashboardID)
Add a label to a dashboard.
|
ResourceMember |
addMember(String memberID,
String dashboardID)
Add dashboard member.
|
ResourceMember |
addMember(User member,
Dashboard dashboard)
Add dashboard member.
|
ResourceOwner |
addOwner(String ownerID,
String dashboardID)
Add dashboard owner.
|
ResourceOwner |
addOwner(User owner,
Dashboard dashboard)
Add dashboard owner.
|
Dashboard |
createDashboard(CreateDashboardRequest createDashboardRequest)
Create a dashboard.
|
Dashboard |
createDashboard(String name,
String description,
String orgID)
Create a dashboard.
|
void |
deleteCell(Cell cell,
Dashboard dashboard)
Delete a dashboard cell.
|
void |
deleteCell(String cellID,
String dashboardID)
Delete a dashboard cell.
|
void |
deleteDashboard(Dashboard dashboard)
Delete a dashboard.
|
void |
deleteDashboard(String dashboardID)
Delete a dashboard.
|
void |
deleteLabel(Label label,
Dashboard dashboard)
Delete a label from a dashboard.
|
void |
deleteLabel(String labelID,
String dashboardID)
Delete a label from a dashboard.
|
void |
deleteMember(String memberID,
String dashboardID)
Removes a member from an dashboard.
|
void |
deleteMember(User member,
Dashboard dashboard)
Removes a member from an dashboard.
|
void |
deleteOwner(String ownerID,
String dashboardID)
Removes an owner from a dashboard.
|
void |
deleteOwner(User owner,
Dashboard dashboard)
Removes an owner from a dashboard.
|
Dashboard |
findDashboardByID(String dashboardID)
Get a single Dashboard.
|
List<Dashboard> |
findDashboards()
Get all dashboards.
|
List<Dashboard> |
findDashboardsByOrganization(Organization organization)
Get dashboards.
|
List<Dashboard> |
findDashboardsByOrgName(String orgName)
Get dashboards.
|
View |
getCellView(Cell cell,
Dashboard dashboard)
Retrieve the view for a cell in a dashboard.
|
View |
getCellView(String cellID,
String dashboardID)
Retrieve the view for a cell in a dashboard.
|
List<Label> |
getLabels(Dashboard dashboard)
List all labels for a dashboard.
|
List<Label> |
getLabels(String dashboardID)
List all labels for a dashboard.
|
List<ResourceMember> |
getMembers(Dashboard dashboard)
List all dashboard members.
|
List<ResourceMember> |
getMembers(String dashboardID)
List all dashboard members.
|
List<ResourceOwner> |
getOwners(Dashboard dashboard)
List all dashboard owners.
|
List<ResourceOwner> |
getOwners(String dashboardID)
List all dashboard owners.
|
Dashboard |
replaceCells(List<Cell> cells,
Dashboard dashboard)
Replace a dashboards cells.
|
Dashboard |
replaceCells(List<Cell> cells,
String dashboardID)
Replace a dashboards cells.
|
Cell |
updateCell(CellUpdate cellUpdate,
String cellID,
String dashboardID)
Update the non positional information related to a cell
(because updates to a single cells positional data could cause grid conflicts).
|
View |
updateCellView(View view,
Cell cell,
Dashboard dashboard)
Update the view for a cell.
|
View |
updateCellView(View view,
String cellID,
String dashboardID)
Update the view for a cell.
|
Dashboard |
updateDashboard(Dashboard dashboard)
Update a single dashboard.
|
Dashboard createDashboard(@Nonnull String name, @Nullable String description, @Nonnull String orgID)
name - user-facing name of the dashboarddescription - user-facing description of the dashboardorgID - id of the organization that owns the dashboard@Nonnull Dashboard createDashboard(@Nonnull CreateDashboardRequest createDashboardRequest)
createDashboardRequest - dashboard to create@Nonnull Dashboard updateDashboard(@Nonnull Dashboard dashboard)
dashboard - patching of a dashboardvoid deleteDashboard(@Nonnull Dashboard dashboard)
dashboard - dashboard to deletevoid deleteDashboard(@Nonnull String dashboardID)
dashboardID - ID of dashboard to delete@Nonnull Dashboard findDashboardByID(@Nonnull String dashboardID)
dashboardID - ID of dashboard to get@Nonnull List<Dashboard> findDashboards()
@Nonnull List<Dashboard> findDashboardsByOrganization(@Nonnull Organization organization)
organization - filter dashboards to a specific organization@Nonnull List<Dashboard> findDashboardsByOrgName(@Nullable String orgName)
orgName - filter dashboards to a specific organization name@Nonnull List<ResourceMember> getMembers(@Nonnull Dashboard dashboard)
dashboard - the dashboard@Nonnull List<ResourceMember> getMembers(@Nonnull String dashboardID)
dashboardID - ID of the dashboard@Nonnull ResourceMember addMember(@Nonnull User member, @Nonnull Dashboard dashboard)
member - user to add as memberdashboard - the dashboard@Nonnull ResourceMember addMember(@Nonnull String memberID, @Nonnull String dashboardID)
memberID - user to add as memberdashboardID - ID of the dashboardvoid deleteMember(@Nonnull User member, @Nonnull Dashboard dashboard)
member - member to removedashboard - the dashboardvoid deleteMember(@Nonnull String memberID, @Nonnull String dashboardID)
memberID - ID of member to removedashboardID - ID of the dashboard@Nonnull List<ResourceOwner> getOwners(@Nonnull Dashboard dashboard)
dashboard - the dashboard@Nonnull List<ResourceOwner> getOwners(@Nonnull String dashboardID)
dashboardID - ID of the dashboard@Nonnull ResourceOwner addOwner(@Nonnull User owner, @Nonnull Dashboard dashboard)
owner - user to add as ownerdashboard - the dashboard@Nonnull ResourceOwner addOwner(@Nonnull String ownerID, @Nonnull String dashboardID)
ownerID - user to add as ownerdashboardID - ID of the dashboardvoid deleteOwner(@Nonnull User owner, @Nonnull Dashboard dashboard)
owner - owner to removedashboard - the dashboardvoid deleteOwner(@Nonnull String ownerID, @Nonnull String dashboardID)
ownerID - ID of owner to removedashboardID - ID of the dashboard@Nonnull List<Label> getLabels(@Nonnull Dashboard dashboard)
dashboard - the dashboard@Nonnull List<Label> getLabels(@Nonnull String dashboardID)
dashboardID - ID of the dashboard@Nonnull LabelResponse addLabel(@Nonnull Label label, @Nonnull Dashboard dashboard)
label - label to adddashboard - the dashboard@Nonnull LabelResponse addLabel(@Nonnull String labelID, @Nonnull String dashboardID)
labelID - label ID to adddashboardID - ID of the dashboardvoid deleteLabel(@Nonnull Label label, @Nonnull Dashboard dashboard)
label - the label to deletedashboard - the dashboardvoid deleteLabel(@Nonnull String labelID, @Nonnull String dashboardID)
labelID - the label id to deletedashboardID - ID of the dashboard@Nonnull Cell addCell(@Nonnull CreateCell createCell, @Nonnull Dashboard dashboard)
createCell - cell that will be addeddashboard - dashboard to update@Nonnull Cell addCell(@Nonnull CreateCell createCell, @Nonnull String dashboardID)
createCell - cell that will be addeddashboardID - ID of dashboard to update@Nonnull Cell updateCell(@Nonnull CellUpdate cellUpdate, @Nonnull String cellID, @Nonnull String dashboardID)
cellUpdate - updates the non positional information related to a cellcellID - ID of cell to updatedashboardID - ID of dashboard to updatevoid deleteCell(@Nonnull Cell cell, @Nonnull Dashboard dashboard)
cell - cell to deletedashboard - dashboard to deletevoid deleteCell(@Nonnull String cellID, @Nonnull String dashboardID)
cellID - ID of cell to deletedashboardID - ID of dashboard to delete@Nonnull Dashboard replaceCells(@Nonnull List<Cell> cells, @Nonnull Dashboard dashboard)
cells - batch replaces all of a dashboards cells (this is used primarily to update
the positional information of all of the cells)dashboard - dashboard to update@Nonnull Dashboard replaceCells(@Nonnull List<Cell> cells, @Nonnull String dashboardID)
cells - batch replaces all of a dashboards cells (this is used primarily to update
the positional information of all of the cells)dashboardID - ID of dashboard to update@Nonnull View addCellView(@Nonnull View view, @Nonnull Cell cell, @Nonnull Dashboard dashboard)
view - the view for a cellcell - cell to updatedashboard - dashboard to update@Nonnull View addCellView(@Nonnull View view, @Nonnull String cellID, @Nonnull String dashboardID)
view - the view for a cellcellID - ID of cell to updatedashboardID - ID of dashboard to update@Nonnull View updateCellView(@Nonnull View view, @Nonnull Cell cell, @Nonnull Dashboard dashboard)
view - updates the view for a cellcell - cell to updatedashboard - dashboard to update@Nonnull View updateCellView(@Nonnull View view, @Nonnull String cellID, @Nonnull String dashboardID)
view - updates the view for a cellcellID - ID of cell to updatedashboardID - ID of dashboard to update@Nonnull View getCellView(@Nonnull Cell cell, @Nonnull Dashboard dashboard)
cell - celldashboard - dashboardCopyright © 2018–2023 InfluxData, Inc.. All rights reserved.