Package org.azd.dashboard.dashboards
Class DashboardsRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.dashboard.dashboards.DashboardsRequestBuilder
Provides functionality to work with Dashboard dashboards Api.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.azd.abstractions.BaseRequestBuilder
BaseRequestBuilder.ProjectExcludeParameter -
Field Summary
Fields inherited from class org.azd.abstractions.BaseRequestBuilder
accessTokenCredential, apiVersion, area, locationId, organizationUrl, serializer -
Constructor Summary
ConstructorsConstructorDescriptionDashboardsRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionCreate the supplied dashboard.createAsync(String team, Dashboard dashboard) Create the supplied dashboard.Delete a dashboard given its ID.deleteAsync(String team, String dashboardId) Delete a dashboard given its ID.Get a dashboard by its ID.Get a dashboard by its ID.Get a list of dashboards under a project for the specified team.Get a list of dashboards under a project for the specified team.Replace configuration for the specified dashboard.replaceAsync(String team, String dashboardId, Dashboard dashboard) Replace configuration for the specified dashboard.replaceDashboards(String team, DashboardGroup group) Update the name and position of dashboards in the supplied group, and remove omitted dashboards.replaceDashboardsAsync(String team, DashboardGroup group) Update the name and position of dashboards in the supplied group, and remove omitted dashboards.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
DashboardsRequestBuilder
public DashboardsRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl- Represents organization location request url.accessTokenCredential- Access token credential object.
-
-
Method Details
-
createAsync
public CompletableFuture<Dashboard> createAsync(String team, Dashboard dashboard) throws AzDException Create the supplied dashboard.- Parameters:
team- Team name or ID.dashboard- The initial state of the dashboard.- Returns:
- Dashboard object
Dashboard - Throws:
AzDException- Default Api Exception handler.
-
deleteAsync
Delete a dashboard given its ID. This also deletes the widgets associated with this dashboard.- Parameters:
team- Team name or ID.dashboardId- ID of the dashboard to delete.- Throws:
AzDException- Default Api Exception handler.
-
getAsync
Get a dashboard by its ID.- Parameters:
team- Team name or ID.dashboardId- ID of the dashboard.- Returns:
- Dashboard object
Dashboard - Throws:
AzDException- Default Api Exception handler.
-
listAsync
Get a list of dashboards under a project for the specified team.- Parameters:
team- Team name or ID.- Returns:
- DashboardList
DashboardList - Throws:
AzDException- Default Api Exception handler.
-
replaceAsync
public CompletableFuture<Dashboard> replaceAsync(String team, String dashboardId, Dashboard dashboard) throws AzDException Replace configuration for the specified dashboard. Replaces Widget list on Dashboard, only if property is supplied.- Parameters:
team- Team name or ID.dashboardId- ID of the dashboard to replace.dashboard- The configuration of the dashboard to replace.- Returns:
- Dashboard object
Dashboard - Throws:
AzDException- Default Api Exception handler.
-
replaceDashboardsAsync
public CompletableFuture<DashboardGroup> replaceDashboardsAsync(String team, DashboardGroup group) throws AzDException Update the name and position of dashboards in the supplied group, and remove omitted dashboards. Does not modify dashboard content.- Parameters:
team- Team name or ID.group- Dashboard group.- Returns:
- DashboardGroup object
DashboardGroup - Throws:
AzDException- Default Api Exception handler.
-
create
Create the supplied dashboard.- Parameters:
team- Team name or ID.dashboard- The initial state of the dashboard.- Returns:
- Dashboard object
Dashboard - Throws:
AzDException- Default Api Exception handler.
-
delete
Delete a dashboard given its ID. This also deletes the widgets associated with this dashboard.- Parameters:
team- Team name or ID.dashboardId- ID of the dashboard to delete.- Throws:
AzDException- Default Api Exception handler.
-
get
Get a dashboard by its ID.- Parameters:
team- Team name or ID.dashboardId- ID of the dashboard.- Returns:
- Dashboard object
Dashboard - Throws:
AzDException- Default Api Exception handler.
-
list
Get a list of dashboards under a project for the specified team.- Parameters:
team- Team name or ID.- Returns:
- DashboardList
DashboardList - Throws:
AzDException- Default Api Exception handler.
-
replace
Replace configuration for the specified dashboard. Replaces Widget list on Dashboard, only if property is supplied.- Parameters:
team- Team name or ID.dashboardId- ID of the dashboard to replace.dashboard- The configuration of the dashboard to replace.- Returns:
- Dashboard object
Dashboard - Throws:
AzDException- Default Api Exception handler.
-
replaceDashboards
Update the name and position of dashboards in the supplied group, and remove omitted dashboards. Does not modify dashboard content.- Parameters:
team- Team name or ID.group- Dashboard group.- Returns:
- DashboardGroup object
DashboardGroup - Throws:
AzDException- Default Api Exception handler.
-