Package com.influxdb.client
Interface DashboardsApi
@ThreadSafe
public interface DashboardsApi
The client of the InfluxDB 2.x that implement Dashboards HTTP API endpoint.
- Author:
- Jakub Bednar (bednar@github) (01/04/2019 10:47)
-
Method Summary
Modifier and TypeMethodDescriptionaddCell(CreateCell createCell, Dashboard dashboard) Create a dashboard cell.addCell(CreateCell createCell, String dashboardID) Create a dashboard cell.addCellView(View view, Cell cell, Dashboard dashboard) Add the view to a cell.addCellView(View view, String cellID, String dashboardID) Add the view to a cell.Add a label to a dashboard.Add a label to a dashboard.Add dashboard member.Add dashboard member.Add dashboard owner.Add dashboard owner.createDashboard(CreateDashboardRequest createDashboardRequest) Create a dashboard.createDashboard(String name, String description, String orgID) Create a dashboard.voiddeleteCell(Cell cell, Dashboard dashboard) Delete a dashboard cell.voiddeleteCell(String cellID, String dashboardID) Delete a dashboard cell.voiddeleteDashboard(Dashboard dashboard) Delete a dashboard.voiddeleteDashboard(String dashboardID) Delete a dashboard.voiddeleteLabel(Label label, Dashboard dashboard) Delete a label from a dashboard.voiddeleteLabel(String labelID, String dashboardID) Delete a label from a dashboard.voiddeleteMember(User member, Dashboard dashboard) Removes a member from an dashboard.voiddeleteMember(String memberID, String dashboardID) Removes a member from an dashboard.voiddeleteOwner(User owner, Dashboard dashboard) Removes an owner from a dashboard.voiddeleteOwner(String ownerID, String dashboardID) Removes an owner from a dashboard.findDashboardByID(String dashboardID) Get a single Dashboard.Get all dashboards.findDashboardsByOrganization(Organization organization) Get dashboards.findDashboardsByOrgName(String orgName) Get dashboards.getCellView(Cell cell, Dashboard dashboard) Retrieve the view for a cell in a dashboard.getCellView(String cellID, String dashboardID) Retrieve the view for a cell in a dashboard.List all labels for a dashboard.List all labels for a dashboard.getMembers(Dashboard dashboard) List all dashboard members.getMembers(String dashboardID) List all dashboard members.List all dashboard owners.List all dashboard owners.replaceCells(List<Cell> cells, Dashboard dashboard) Replace a dashboards cells.replaceCells(List<Cell> cells, String dashboardID) Replace a dashboards cells.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).updateCellView(View view, Cell cell, Dashboard dashboard) Update the view for a cell.updateCellView(View view, String cellID, String dashboardID) Update the view for a cell.updateDashboard(Dashboard dashboard) Update a single dashboard.
-
Method Details
-
createDashboard
Dashboard createDashboard(@Nonnull String name, @Nullable String description, @Nonnull String orgID) Create a dashboard.- Parameters:
name- user-facing name of the dashboarddescription- user-facing description of the dashboardorgID- id of the organization that owns the dashboard- Returns:
- created Dashboard
-
createDashboard
Create a dashboard.- Parameters:
createDashboardRequest- dashboard to create- Returns:
- created Dashboard
-
updateDashboard
Update a single dashboard.- Parameters:
dashboard- patching of a dashboard- Returns:
- Updated dashboard
-
deleteDashboard
Delete a dashboard.- Parameters:
dashboard- dashboard to delete
-
deleteDashboard
Delete a dashboard.- Parameters:
dashboardID- ID of dashboard to delete
-
findDashboardByID
Get a single Dashboard.- Parameters:
dashboardID- ID of dashboard to get- Returns:
- a single dashboard
-
findDashboards
Get all dashboards.- Returns:
- a list of dashboard
-
findDashboardsByOrganization
Get dashboards.- Parameters:
organization- filter dashboards to a specific organization- Returns:
- a list of dashboard
-
findDashboardsByOrgName
Get dashboards.- Parameters:
orgName- filter dashboards to a specific organization name- Returns:
- a list of dashboard
-
getMembers
List all dashboard members.- Parameters:
dashboard- the dashboard- Returns:
- a list of users who have member privileges for a dashboard
-
getMembers
List all dashboard members.- Parameters:
dashboardID- ID of the dashboard- Returns:
- a list of users who have member privileges for a dashboard
-
addMember
Add dashboard member.- Parameters:
member- user to add as memberdashboard- the dashboard- Returns:
- added to dashboard members
-
addMember
Add dashboard member.- Parameters:
memberID- user to add as memberdashboardID- ID of the dashboard- Returns:
- added to dashboard members
-
deleteMember
Removes a member from an dashboard.- Parameters:
member- member to removedashboard- the dashboard
-
deleteMember
Removes a member from an dashboard.- Parameters:
memberID- ID of member to removedashboardID- ID of the dashboard
-
getOwners
List all dashboard owners.- Parameters:
dashboard- the dashboard- Returns:
- a list of users who have owner privileges for a dashboard
-
getOwners
List all dashboard owners.- Parameters:
dashboardID- ID of the dashboard- Returns:
- a list of users who have owner privileges for a dashboard
-
addOwner
Add dashboard owner.- Parameters:
owner- user to add as ownerdashboard- the dashboard- Returns:
- added to dashboard owners
-
addOwner
Add dashboard owner.- Parameters:
ownerID- user to add as ownerdashboardID- ID of the dashboard- Returns:
- added to dashboard owners
-
deleteOwner
Removes an owner from a dashboard.- Parameters:
owner- owner to removedashboard- the dashboard
-
deleteOwner
Removes an owner from a dashboard.- Parameters:
ownerID- ID of owner to removedashboardID- ID of the dashboard
-
getLabels
List all labels for a dashboard.- Parameters:
dashboard- the dashboard- Returns:
- a list of all labels for a dashboard
-
getLabels
List all labels for a dashboard.- Parameters:
dashboardID- ID of the dashboard- Returns:
- a list of all labels for a dashboard
-
addLabel
Add a label to a dashboard.- Parameters:
label- label to adddashboard- the dashboard- Returns:
- the label added to the dashboard
-
addLabel
Add a label to a dashboard.- Parameters:
labelID- label ID to adddashboardID- ID of the dashboard- Returns:
- the label added to the dashboard
-
deleteLabel
Delete a label from a dashboard.- Parameters:
label- the label to deletedashboard- the dashboard
-
deleteLabel
Delete a label from a dashboard.- Parameters:
labelID- the label id to deletedashboardID- ID of the dashboard
-
addCell
Create a dashboard cell.- Parameters:
createCell- cell that will be addeddashboard- dashboard to update- Returns:
- Cell successfully added
-
addCell
Create a dashboard cell.- Parameters:
createCell- cell that will be addeddashboardID- ID of dashboard to update- Returns:
- Cell successfully added
-
updateCell
@Nonnull Cell updateCell(@Nonnull CellUpdate cellUpdate, @Nonnull String cellID, @Nonnull String dashboardID) Update the non positional information related to a cell (because updates to a single cells positional data could cause grid conflicts).- Parameters:
cellUpdate- updates the non positional information related to a cellcellID- ID of cell to updatedashboardID- ID of dashboard to update- Returns:
- Updated dashboard cell
-
deleteCell
Delete a dashboard cell.- Parameters:
cell- cell to deletedashboard- dashboard to delete
-
deleteCell
Delete a dashboard cell.- Parameters:
cellID- ID of cell to deletedashboardID- ID of dashboard to delete
-
replaceCells
Replace a dashboards cells.- Parameters:
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- Returns:
- Replaced dashboard cells
-
replaceCells
Replace a dashboards cells.- Parameters:
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- Returns:
- Replaced dashboard cells
-
addCellView
Add the view to a cell.- Parameters:
view- the view for a cellcell- cell to updatedashboard- dashboard to update- Returns:
- Added cell view
-
addCellView
Add the view to a cell.- Parameters:
view- the view for a cellcellID- ID of cell to updatedashboardID- ID of dashboard to update- Returns:
- Added cell view
-
updateCellView
Update the view for a cell.- Parameters:
view- updates the view for a cellcell- cell to updatedashboard- dashboard to update- Returns:
- Updated cell view
-
updateCellView
@Nonnull View updateCellView(@Nonnull View view, @Nonnull String cellID, @Nonnull String dashboardID) Update the view for a cell.- Parameters:
view- updates the view for a cellcellID- ID of cell to updatedashboardID- ID of dashboard to update- Returns:
- Updated cell view
-
getCellView
Retrieve the view for a cell in a dashboard.- Parameters:
cell- celldashboard- dashboard- Returns:
- A dashboard cells view
-
getCellView
Retrieve the view for a cell in a dashboard.- Parameters:
cellID- ID of celldashboardID- ID of dashboard- Returns:
- A dashboard cells view
-